From 90864aabb7d4a6fe7d02c0af89cbf151b42ea5a5 Mon Sep 17 00:00:00 2001 From: mrsang Date: Sun, 18 Apr 2021 18:49:53 +0200 Subject: [PATCH] first release of libantosdk --- About/build/debug/main.js | 36 +- About/project.json | 1 + Antedit/assets/scheme.html | 39 +- Antedit/build/debug/README.md | 15 + .../extensions/EditorExtensionMaker/main.tpl | 19 + .../extensions/EditorExtensionMaker/meta.tpl | 15 + .../build/debug/extensions/extensions.json | 33 + Antedit/build/debug/main.css | 168 + Antedit/build/debug/main.js | 1 + Antedit/build/debug/package.json | 24 + Antedit/build/debug/scheme.html | 38 + Antedit/build/release/Antedit.zip | Bin 0 -> 31775 bytes Antedit/coffees/main.coffee | 7 - Antedit/css/main.css | 167 + .../extensions/EditorExtensionMaker/main.tpl | 19 + .../extensions/EditorExtensionMaker/meta.tpl | 15 + Antedit/extensions/extensions.json | 33 + Antedit/package.json | 26 +- Antedit/project.json | 14 +- Antedit/ts/BaseEditorModel.ts | 570 + Antedit/ts/EditorExtensionMaker.ts | 472 + Antedit/ts/MonacoEditorModel.ts | 271 + Antedit/ts/main.ts | 1106 +- Antedit/ts/monaco.d.ts | 7370 ++++ Blogger/main.coffee | 1 + libantosdk/README.md | 15 + libantosdk/build.json | 70 + libantosdk/build/debug/README.md | 15 + libantosdk/build/debug/core/coffee.worker.js | 52 + libantosdk/build/debug/core/coffeescript.js | 8 + libantosdk/build/debug/core/terser.min.js | 2 + libantosdk/build/debug/core/terser.worker.js | 50 + libantosdk/build/debug/core/ts.worker.js | 131 + libantosdk/build/debug/core/ts/antos.d.ts | 10079 +++++ libantosdk/build/debug/core/ts/core.d.ts | 27299 +++++++++++++ libantosdk/build/debug/core/ts/jquery.d.ts | 33483 ++++++++++++++++ libantosdk/build/debug/core/typescript.min.js | 15 + libantosdk/build/debug/core/worker.js | 464 + libantosdk/build/debug/core/zip.worker.js | 98 + libantosdk/build/debug/main.js | 1 + libantosdk/build/debug/package.json | 15 + libantosdk/build/debug/scheme.html | 16 + libantosdk/build/release/libantosdk.zip | Bin 0 -> 6321277 bytes libantosdk/core/coffee.worker.js | 52 + libantosdk/core/coffeescript.js | 8 + libantosdk/core/terser.min.js | 2 + libantosdk/core/terser.worker.js | 50 + libantosdk/core/ts.worker.js | 131 + libantosdk/core/ts/antos.d.ts | 10079 +++++ libantosdk/core/ts/core.d.ts | 27299 +++++++++++++ libantosdk/core/ts/jquery.d.ts | 33483 ++++++++++++++++ libantosdk/core/typescript.min.js | 15 + libantosdk/core/worker.js | 464 + libantosdk/core/zip.worker.js | 98 + libantosdk/package.json | 15 + libantosdk/project.json | 8 + libantosdk/scheme.html | 16 + libantosdk/ts/main.ts | 213 + libantosdk/ts/test.ts | 47 + libpdfjs/build/release/libpdfjs.zip | Bin 6441816 -> 6441816 bytes packages.json | 20 + 61 files changed, 154246 insertions(+), 27 deletions(-) create mode 100644 Antedit/build/debug/README.md create mode 100644 Antedit/build/debug/extensions/EditorExtensionMaker/main.tpl create mode 100644 Antedit/build/debug/extensions/EditorExtensionMaker/meta.tpl create mode 100644 Antedit/build/debug/extensions/extensions.json create mode 100644 Antedit/build/debug/main.css create mode 100644 Antedit/build/debug/main.js create mode 100644 Antedit/build/debug/package.json create mode 100644 Antedit/build/debug/scheme.html create mode 100644 Antedit/build/release/Antedit.zip delete mode 100644 Antedit/coffees/main.coffee create mode 100644 Antedit/css/main.css create mode 100644 Antedit/extensions/EditorExtensionMaker/main.tpl create mode 100644 Antedit/extensions/EditorExtensionMaker/meta.tpl create mode 100644 Antedit/extensions/extensions.json create mode 100644 Antedit/ts/BaseEditorModel.ts create mode 100644 Antedit/ts/EditorExtensionMaker.ts create mode 100644 Antedit/ts/MonacoEditorModel.ts create mode 100644 Antedit/ts/monaco.d.ts create mode 100644 libantosdk/README.md create mode 100644 libantosdk/build.json create mode 100644 libantosdk/build/debug/README.md create mode 100644 libantosdk/build/debug/core/coffee.worker.js create mode 100644 libantosdk/build/debug/core/coffeescript.js create mode 100644 libantosdk/build/debug/core/terser.min.js create mode 100644 libantosdk/build/debug/core/terser.worker.js create mode 100644 libantosdk/build/debug/core/ts.worker.js create mode 100644 libantosdk/build/debug/core/ts/antos.d.ts create mode 100644 libantosdk/build/debug/core/ts/core.d.ts create mode 100644 libantosdk/build/debug/core/ts/jquery.d.ts create mode 100644 libantosdk/build/debug/core/typescript.min.js create mode 100644 libantosdk/build/debug/core/worker.js create mode 100644 libantosdk/build/debug/core/zip.worker.js create mode 100644 libantosdk/build/debug/main.js create mode 100644 libantosdk/build/debug/package.json create mode 100644 libantosdk/build/debug/scheme.html create mode 100644 libantosdk/build/release/libantosdk.zip create mode 100644 libantosdk/core/coffee.worker.js create mode 100644 libantosdk/core/coffeescript.js create mode 100644 libantosdk/core/terser.min.js create mode 100644 libantosdk/core/terser.worker.js create mode 100644 libantosdk/core/ts.worker.js create mode 100644 libantosdk/core/ts/antos.d.ts create mode 100644 libantosdk/core/ts/core.d.ts create mode 100644 libantosdk/core/ts/jquery.d.ts create mode 100644 libantosdk/core/typescript.min.js create mode 100644 libantosdk/core/worker.js create mode 100644 libantosdk/core/zip.worker.js create mode 100644 libantosdk/package.json create mode 100644 libantosdk/project.json create mode 100644 libantosdk/scheme.html create mode 100644 libantosdk/ts/main.ts create mode 100644 libantosdk/ts/test.ts diff --git a/About/build/debug/main.js b/About/build/debug/main.js index 08ab2a9..091e4e8 100644 --- a/About/build/debug/main.js +++ b/About/build/debug/main.js @@ -1 +1,35 @@ -(function(){var t;(t=class extends this.OS.application.BaseApplication{constructor(t){super("About",t)}main(){var t,n;return t=this,this.container=this.find("container"),(n="https://raw.githubusercontent.com/lxsang/antos/master/README.md").asFileHandle().read().then((function(n){var i;return i=new showdown.Converter,$(t.container).html(i.makeHtml(n))})).catch(()=>this.notify(__("Unable to read: {0}",n))),this.find("btnclose").onbtclick=()=>this.quit()}}).singleton=!0,t.dependencies=["os://scripts/showdown.min.js"],this.OS.register("About",t)}).call(this); \ No newline at end of file + +(function() { + var About; + + About = class About extends this.OS.application.BaseApplication { + constructor(args) { + super("About", args); + } + + main() { + var me, path; + me = this; + this.container = this.find("container"); + path = "https://raw.githubusercontent.com/lxsang/antos/master/README.md"; + path.asFileHandle().read().then(function(txt) { + var converter; + converter = new showdown.Converter(); + return ($(me.container)).html(converter.makeHtml(txt)); + }).catch(() => { + return this.notify(__("Unable to read: {0}", path)); + }); + return this.find("btnclose").onbtclick = () => { + return this.quit(); + }; + } + + }; + + About.singleton = true; + + About.dependencies = ["os://scripts/showdown.min.js"]; + + this.OS.register("About", About); + +}).call(this); diff --git a/About/project.json b/About/project.json index be8d487..56d6eaf 100644 --- a/About/project.json +++ b/About/project.json @@ -2,6 +2,7 @@ "name": "About", "css": ["css/main.css"], "javascripts": [], + "ts": [], "coffees": ["coffees/main.coffee"], "copies": ["assets/scheme.html", "package.json", "README.md"] } \ No newline at end of file diff --git a/Antedit/assets/scheme.html b/Antedit/assets/scheme.html index 8dd5026..4ce75ad 100644 --- a/Antedit/assets/scheme.html +++ b/Antedit/assets/scheme.html @@ -1,3 +1,38 @@ - - + + + + +
+ + +
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+
+
+
+ + + +
+
\ No newline at end of file diff --git a/Antedit/build/debug/README.md b/Antedit/build/debug/README.md new file mode 100644 index 0000000..e914dba --- /dev/null +++ b/Antedit/build/debug/README.md @@ -0,0 +1,15 @@ +# Antedit +This is an example project, generated by AntOS Development Kit + +## Howto +Use the CodePad command palette to access to the SDK functionalities: + +1. Create new project +2. Init the project from the current folder located in side bar +3. Build and run the project +4. Release the project in zip package + +## Set up build target + +Open the `project.json` file from the current project tree and add/remove +build target entries. Save the file \ No newline at end of file diff --git a/Antedit/build/debug/extensions/EditorExtensionMaker/main.tpl b/Antedit/build/debug/extensions/EditorExtensionMaker/main.tpl new file mode 100644 index 0000000..f5a4487 --- /dev/null +++ b/Antedit/build/debug/extensions/EditorExtensionMaker/main.tpl @@ -0,0 +1,19 @@ +(function() { + // import the CodePad application module + const App = this.OS.application.Antedit; + + // define the extension + App.extensions.{0} = class {0} extends App.EditorBaseExtension { + constructor(app) { + super("{0}",app); + } + + test() { + return this.notify("Test action is invoked"); + } + + cleanup() {} + + }; + +}).call(this); \ No newline at end of file diff --git a/Antedit/build/debug/extensions/EditorExtensionMaker/meta.tpl b/Antedit/build/debug/extensions/EditorExtensionMaker/meta.tpl new file mode 100644 index 0000000..d6b24d2 --- /dev/null +++ b/Antedit/build/debug/extensions/EditorExtensionMaker/meta.tpl @@ -0,0 +1,15 @@ +{ + "javascripts": ["{0}.js"], + "copies": [], + "meta": { + "name": "{0}", + "text": "{0}", + "version": "0.0.1-a", + "actions" : [ + { + "text": "__(Example action)", + "name": "test" + } + ] + } +} \ No newline at end of file diff --git a/Antedit/build/debug/extensions/extensions.json b/Antedit/build/debug/extensions/extensions.json new file mode 100644 index 0000000..a18686f --- /dev/null +++ b/Antedit/build/debug/extensions/extensions.json @@ -0,0 +1,33 @@ +[ + { + "name": "EditorExtensionMaker", + "text": "Antedit Extension", + "version": "0.0.1-a", + "actions" : [ + { + "text": "__(New Extension)", + "name": "create" + }, + { + "text": "__(Build)", + "name": "build" + }, + { + "text": "__(Run)", + "name": "run" + }, + { + "text": "__(Build release)", + "name": "release" + }, + { + "text": "__(Install extension from file)", + "name": "install" + }, + { + "text": "__(Install extension from URL)", + "name": "installFromURL" + } + ] + } +] diff --git a/Antedit/build/debug/main.css b/Antedit/build/debug/main.css new file mode 100644 index 0000000..953338c --- /dev/null +++ b/Antedit/build/debug/main.css @@ -0,0 +1,168 @@ + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container +{ + /*border-top: 1px solid #272822;*/ + overflow: hidden; + overflow-x: auto; + font-size: 12px; + scrollbar-width: none; + /*scrollbar-color: #656565 transparent;*/ +} + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar { + height: 0; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-track { + background: transparent; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-thumb { + background-color: #656565; + border: 0; + } + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul +{ + width: intrinsic; + width: -moz-max-content; + width: -webkit-max-content; + width: max-content; +} + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected, +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{ + background-color:#272822; + color:white; + border: 0; + border-radius: 0; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view afx-list-view i.closable:before { + color:afafaf; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li, +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul li{ + background-color:#333333; + color:#afafaf; + border-radius: 0; + border: 0; + padding-top: 5px; + padding-bottom: 5px; + padding-right: 20px; + border-right: 1px solid #272822; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-vbox[data-id = "sidebar"]{ + background-color:#272822; +} +afx-app-window[data-id = "antedit"] div.afx-window-content { + background-color:#333333; +} +afx-app-window[data-id = "antedit"] afx-resizer { + background-color:#272822; + border-right: 1px solid #656565; + border-bottom: 1px solid #656565; +} + +afx-app-window[data-id = "antedit"] .bottom-tab-content { + background-color:#272822; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view{ + color: white; + padding: 0; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view afx-tree-view-item ul li{ + padding-left: 10px; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper .afx_tree_item_selected ul{ + background-color: #116cd6; +} + +afx-app-window[data-id = "antedit"] afx-file-view afx-tree-view .afx-tree-view-item:before{ + color: white; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"]{ + color: white; + background-color: #007acc; + padding-right: 10px; + padding-top: 5px; + font-size: 11px; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"] afx-label { + padding-left: 10px; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper{ + border-radius: 0px; + border: 0; + /*border: 1px solid #37373d;*/ + background-color: transparent; + box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.65); +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li +{ + background-color: transparent; +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view afx-list-item li{ + background-color: transparent; + color:#afafaf; +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper div.list-container > ul li:hover{ + background-color: #37373d; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li.selected, +afx-app-window[data-id = "cmd-win"] .afx-window-wrappe dafx-list-viewafx-list-view ul li.selected +{ + background-color: #116cd6; + color:white; +} +afx-app-window[data-id = "cmd-win"] .afx-window-top{ + height: 0; + border:0; +} +afx-app-window[data-id = "cmd-win"] input{ + border: 1px solid #007acc; + border-radius: 0; + font-size: 12px; + color:#afafaf; + background-color:#272822; + padding-left: 5px; + margin: 3px; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-content{ + background-color:#272822; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] { + overflow-y: auto; + overflow-x: hidden; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre { + margin: 3px; + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + font-family: monospace; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-error { + color: red; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-warn { + color: orange; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-info { + color: white; +} + +afx-app-window[data-id = "antedit"] afx-button[ data-id="logger-clear" ] button{ + border: 0; + background: transparent; +} \ No newline at end of file diff --git a/Antedit/build/debug/main.js b/Antedit/build/debug/main.js new file mode 100644 index 0000000..6dc4a04 --- /dev/null +++ b/Antedit/build/debug/main.js @@ -0,0 +1 @@ +var t;!function(t){let e;!function(t){t.BaseEditorModel=class{constructor(t,e,i){this.container=i,this.currfile="Untitled".asFileHandle(),this.tabbar=e,this.editorSetup(i),this.app=t,this.editormux=!1,this.onstatuschange=void 0,this.on("focus",()=>{this.onstatuschange&&this.onstatuschange(this.getEditorStatus())}),this.on("input",()=>this.editormux?(this.editormux=!1,!1):this.currfile.dirty?void 0:(this.currfile.dirty=!0,this.currfile.text+="*",this.tabbar.update(void 0))),this.on("changeCursor",()=>{this.onstatuschange&&this.onstatuschange(this.getEditorStatus())}),this.tabbar.ontabselect=t=>this.selecteTab($(t.data.item).index()),this.tabbar.ontabclose=t=>{const e=t.data.item;return!!e&&(e.data.dirty?(this.app.openDialog("YesNoDialog",{title:__("Close tab"),text:__("Close without saving ?")}).then(t=>t?this.closeTab(e):this.focus()),!1):this.closeTab(e))}}findTabByFile(t){const e=this.tabbar.items,i=(()=>{const i=[];for(let a=0;a(t.cache=e||"",this.newTab(t))).catch(e=>this.app.error(__("Unable to open: {0}",t.path),e)):this.newTab(t):this.tabbar.selected=e}write(t){this.currfile.cache=this.getValue(),t.write("text/plain").then(e=>{t.dirty=!1,t.text=t.basename,this.tabbar.update(void 0)}).catch(e=>this.app.error(__("Unable to save file: {0}",t.path),e))}save(){return this.currfile.cache=this.getValue(),this.currfile.basename?this.write(this.currfile):this.saveAs()}saveAs(){this.app.openDialog("FileDialog",{title:__("Save as"),file:this.currfile}).then(t=>{let e=t.file.path.asFileHandle();"file"===t.file.type&&(e=e.parent()),this.currfile.setPath(`${e.path}/${t.name}`),this.write(this.currfile)})}dirties(){const t=[];for(let e of Array.from(this.tabbar.items))e.dirty&&t.push(e);return t}set contextmenuHandle(t){this.container.contextmenuHandle=t}closeAll(){this.tabbar.items=[],this.resetEditor()}isDirty(){return this.dirties().length>0}}}(e=t.application||(t.application={}))}(t||(t={})),function(t){let e;!function(t){class e extends t.BaseEditorModel{constructor(t,e,i){super(t,e,i)}resetEditor(){this.setValue("")}getTexModel(){return{model:this.editor.getModel(),position:this.editor.getPosition()}}setTextModel(t){this.editor.setModel(t.model),t.position&&this.editor.setPosition(t.position)}newTextModelFrom(t){if("Untitled"===t.path.toString())return{model:monaco.editor.createModel(t.cache,"textplain")};const e=monaco.Uri.parse(t.path),i=monaco.editor.getModel(e);return i?{model:i}:{model:monaco.editor.createModel(t.cache,void 0,e)}}getModes(){return monaco.languages.getLanguages()}setTheme(t){}setMode(t){}editorSetup(t){this.editor=monaco.editor.create(t,{value:"",language:"textplain"}),e.modes||(e.modes={},monaco.languages.getLanguages().forEach(t=>{e.modes[t.id]=t}))}on(t,e){switch(t){case"input":this.editor.onDidChangeModelContent(e);break;case"focus":this.editor.onDidFocusEditorText(e);break;case"changeCursor":this.editor.onDidChangeCursorPosition(e)}}resize(){this.editor&&this.editor.layout()}focus(){this.editor&&this.editor.focus()}getModeForPath(t){return{}}getEditorStatus(){const t=this.editor.getPosition(),i=e.modes[this.editor.getModel().getModeId()];return{row:t.lineNumber,column:t.column,line:this.editor.getModel().getLineCount(),langmode:{text:i.aliases[0],mode:i},file:this.currfile.path}}getValue(){return this.editor.getValue()}setValue(t){this.editor.setValue(t)}getEditor(){return this.editor}}t.MonacoEditorModel=e}(e=t.application||(t.application={}))}(t||(t={})),function(t){let e;!function(t){class e extends t.BaseApplication{constructor(t){super("Antedit",t),this.currdir=void 0}main(){this.extensions={},this.eum=new i,this.fileview=this.find("fileview"),this.sidebar=this.find("sidebar"),this.bottombar=this.find("bottombar"),this.langstat=this.find("langstat"),this.editorstat=this.find("editorstat"),this.filestat=this.find("current-file-lbl"),this.logger=new a(this.find("output-tab")),this.split_mode=!0,this.fileview.fetch=t=>new Promise((async function(e,i){let a;a="string"==typeof t?t.asFileHandle():t;try{const t=await a.read();return t.error?i(t.error):e(t.result)}catch(t){return i(__e(t))}}));let e="Untitled".asFileHandle();this.args&&this.args.length>0&&(this.addRecent(this.args[0].path),"dir"===this.args[0].type?this.currdir=this.args[0].path.asFileHandle():(e=this.args[0].path.asFileHandle(),this.currdir=e.parent())),this.setting.recent||(this.setting.recent=[]);const s=this.find("wrapper");$(s).css("visibility","hidden"),this.load(new Promise((i,a)=>{require.config({paths:{vs:"pkg://MonacoCore/vs".asFileHandle().getlink()}}),require(["vs/editor/editor.main"],()=>{monaco.editor.setTheme("vs-dark"),this.eum.add(new t.MonacoEditorModel(this,this.find("left-tabbar"),this.find("left-editorarea"))).add(new t.MonacoEditorModel(this,this.find("right-tabbar"),this.find("right-editorarea"))),this.eum.onstatuschange=t=>this.updateStatus(t),$(s).css("visibility","visible"),this.setup(),this.eum.active.openFile(e),i(void 0)})}))}setup(){this.fileview.onfileopen=t=>{if(t.data&&t.data.path&&"dir"!==t.data.type)return this.addRecent(t.data.path),this.eum.active.openFile(t.data.path.asFileHandle())},this.fileview.onfileselect=t=>{t.data&&t.data.path&&"dir"!==t.data.type&&this.eum.active.selectFile(t.data.path)},this.on("resize",()=>this.eum.resize()),this.on("focus",()=>this.eum.active.focus()),this.fileview.contextmenuHandle=(t,e)=>(e.items=[{text:"__(New file)",id:"new"},{text:"__(New folder)",id:"newdir"},{text:"__(Rename)",id:"rename"},{text:"__(Delete)",id:"delete"}],e.onmenuselect=t=>this.ctxFileMenuHandle(t),e.show(t)),this.bindKey("ALT-N",()=>this.menuAction("new")),this.bindKey("ALT-O",()=>this.menuAction("open")),this.bindKey("ALT-F",()=>this.menuAction("opendir")),this.bindKey("CTRL-S",()=>this.menuAction("save")),this.bindKey("ALT-W",()=>this.menuAction("saveas")),this.fileview.ondragndrop=t=>{const e=t.data.from.data.path.asFileHandle(),i=t.data.to.data.path;return e.move(`${i}/${e.basename}`).then((function(a){const s=i,n=e.parent().path;s.lengththis.error(__("Unable to move file/folder"),t))},this.on("filechange",t=>{let{path:e}=t.file;return"file"===t.type&&({path:e}=t.file.parent()),this.fileview.update(e)}),this.find("logger-clear").onbtclick=()=>{this.logger.clear()},void 0===this.setting.showBottomBar&&(this.setting.showBottomBar=!1),this.loadExtensionMetaData(),this.toggleSideBar(),this.toggleSplitMode(),this.applyAllSetting()}updateStatus(t){t||(t=this.eum.active.getEditorStatus()),this.editorstat.text=__("Row {0}, col {1}, lines: {2}",t.row,t.column,t.line),t.langmode&&(this.langstat.text=t.langmode.text),this.filestat.text=t.file;let e=this.scheme;e.apptitle!=t.file&&(e.apptitle=t.file)}toggleSideBar(){this.currdir?($(this.sidebar).show(),this.fileview.path=this.currdir.path):$(this.sidebar).hide(),this.trigger("resize")}showOutput(t=!1){t&&this.showBottomBar(!0),this.bottombar.selectedIndex=0}applySetting(t){"showBottomBar"==t&&this.showBottomBar(this.setting.showBottomBar)}showBottomBar(t){this.setting.showBottomBar=t,t?$(this.bottombar).show():$(this.bottombar).hide(),this.trigger("resize")}toggleBottomBar(){this.showBottomBar(!this.setting.showBottomBar)}toggleSplitMode(){const t=this.find("right-panel"),e=this.eum.editors[1],i=this.eum.editors[0];if(this.split_mode){if(e.isDirty())return void this.notify(__("Unable to disable split view: Please save changes of modified files on the right panel"));e.closeAll(),$(t).hide(),this.split_mode=!1,i.focus()}else $(t).show(),this.split_mode=!0,e.openFile("Untitled".asFileHandle()),e.focus();this.trigger("resize")}fileMenu(){const t=this.setting.recent.map(t=>({text:t}));return{text:__("File"),nodes:[{text:__("New"),dataid:"new",shortcut:"A-N"},{text:__("Open Recent"),dataid:"recent",nodes:t,onchildselect:(t,e)=>{const i=t.data.item.data.text.asFileHandle();i.onready().then(t=>{t&&("dir"==t.type?(this.currdir=i,this.toggleSideBar()):this.eum.active.openFile(i))})}},{text:__("Open"),dataid:"open",shortcut:"A-O"},{text:__("Open Folder"),dataid:"opendir",shortcut:"A-F"},{text:__("Save"),dataid:"save",shortcut:"C-S"},{text:__("Save as"),dataid:"saveas",shortcut:"A-W"}],onchildselect:(t,e)=>this.menuAction(t.data.item.data.dataid,e)}}ctxFileMenuHandle(t){const e=t.data.item;if(!e)return;const i=e.data;if(!i)return;let a=this.fileview.selectedFile,s=this.currdir;switch(a&&"dir"===a.type&&(s=a.path.asFileHandle()),a&&"file"===a.type&&(s=a.path.asFileHandle().parent()),i.id){case"new":if(!s)return;this.openDialog("PromptDialog",{title:"__(New file)",label:"__(File name)"}).then(async t=>{const e=`${s.path}/${t}`.asFileHandle();try{return await e.write("text/plain"),this.fileview.update(s.path)}catch(t){return this.error(__("Fail to create: {0}",t.stack),t)}});break;case"newdir":if(!s)return;this.openDialog("PromptDialog",{title:"__(New folder)",label:"__(Folder name)"}).then(async t=>{try{return await s.mk(t),this.fileview.update(s.path)}catch(t){return this.error(__("Fail to create: {0}",s.path),t)}});break;case"rename":if(!a)return;this.openDialog("PromptDialog",{title:"__(Rename)",label:"__(File name)",value:a.filename}).then(async t=>{if(t!==a.filename){a=a.path.asFileHandle(),s=a.parent();try{return await a.move(`${s.path}/${t}`),this.fileview.update(s.path)}catch(t){return this.error(__("Fail to rename: {0}",a.path),t)}}});break;case"delete":if(!a)return;this.openDialog("YesNoDialog",{title:"__(Delete)",iconclass:"fa fa-question-circle",text:__("Do you really want to delete: {0}?",a.filename)}).then(async t=>{if(t){a=a.path.asFileHandle(),s=a.parent();try{return await a.remove(),this.fileview.update(s.path)}catch(t){return this.error(__("Fail to delete: {0}",a.path),t)}}})}}addRecent(t){this.setting.recent||(this.setting.recent=[]),this.setting.recent.includes(t)||(this.setting.recent.push(t),this.setting.recent.length>10&&(this.setting.recent=this.setting.recent.slice(0,10)))}menuAction(t,e){let i=this;switch(e&&(i=e),t){case"new":return i.eum.active.openFile("Untitled".asFileHandle());case"open":return i.openDialog("FileDialog",{title:__("Open file"),mimes:Array.from(i.meta().mimes).filter(t=>"dir"!==t)}).then(t=>{this.addRecent(t.file.path),i.eum.active.openFile(t.file.path.asFileHandle())});case"opendir":return i.openDialog("FileDialog",{title:__("Open folder"),mimes:["dir"]}).then((function(t){return i.addRecent(t.file.path),i.currdir=t.file.path.asFileHandle(),i.toggleSideBar()}));case"save":return i.eum.active.save();case"saveas":return i.eum.active.saveAs();default:return console.log(t)}}cleanup(t){let e;const i=this.eum.dirties();if(0!==i.length)t.preventDefault(),this.openDialog("YesNoDialog",{title:"__(Quit)",text:__("Ignore all unsaved files: {0} ?",(()=>{const t=[];for(e of Array.from(i))t.push(e.filename);return t})().join(", "))}).then(t=>{if(t){for(e of Array.from(i))e.dirty=!1;return this.quit(!1)}});else for(let t in this.extensions)this.extensions[t]&&this.extensions[t].cleanup&&this.extensions[t].cleanup()}menu(){return[this.fileMenu(),{text:"__(View)",nodes:[{text:"__(Toggle bottom bar)",dataid:"bottombar"},{text:"__(Toggle split view)",dataid:"splitview"}],onchildselect:(t,e)=>{switch(t.data.item.data.dataid){case"bottombar":return this.toggleBottomBar();case"splitview":return this.toggleSplitMode()}}}]}loadExtensionMetaData(){this.loadExtensionMetaFromFile(this.meta().path+"/extensions/extensions.json").catch(t=>this.error(__("Cannot load extension meta data"),t))}loadExtensionMetaFromFile(t){return new Promise((e,i)=>{t.asFileHandle().read("json").then(t=>{for(let e of t)for(let t of e.actions)this.eum.addAction(e,t,(t,i)=>{this.loadAndRunExtensionAction(t,i,e.root)});e()}).catch(t=>{i(__e(t))})})}loadAndRunExtensionAction(t,i,a){if(e.extensions[t])this.runExtensionAction(t,i);else{let e=`${this.meta().path}/extensions/${t}/main.js`;a&&(e=a+"/main.js"),this._api.requires(e,!0).then(()=>this.runExtensionAction(t,i)).catch(e=>this.error(__("unable to load extension: {0}",t),e))}}runExtensionAction(t,i){if(!this.extensions[t]){if(!e.extensions[t])return this.error(__("Unable to find extension: {0}",t));this.extensions[t]=new e.extensions[t](this)}if(!this.extensions[t][i])return this.error(__("Unable to find action: {0}",i));this.extensions[t].preload().then(()=>this.extensions[t][i]()).catch(t=>this.error(__("Unable to preload extension"),t))}}t.Antedit=e;class i{constructor(){this.active_editor=void 0,this.models=[]}get editors(){return this.models}set contextmenuHandle(t){for(let e of this.models)e.contextmenuHandle=t}get active(){return this.active_editor}add(t){return this.models.push(t),this.active_editor||(this.active_editor=t),t.on("focus",()=>{this.active_editor=t}),this}addAction(t,e,i){const a={id:`${t.name}:${e.name}`,label:`${t.text.__()}: ${e.text.__()}`,precondition:null,keybindingContext:null,contextMenuGroupId:t.name,run:()=>i(t.name,e.name)};for(let t of this.models){const e=t.getEditor();e.getAction(a.id)||e.addAction(a)}}set onstatuschange(t){for(let e of this.models)e.onstatuschange=t}dirties(){let t=[];for(let e of this.models)t=t.concat(e.dirties());return t}resize(){for(let t of this.models)t.resize()}}class a{constructor(t){this.target=t}info(t){this.log("info",t,!0)}warn(t){this.log("warn",t,!0)}error(t){this.log("error",t,!0)}log(t,e,i){let a=$("
").attr("class","code-pad-log-"+t);if(i){let t=new Date,i=t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();a.text(`[${i}]: ${e.__()}`)}else a.text(e.__());$(this.target).append(a),$(this.target).scrollTop($(this.target)[0].scrollHeight)}print(t){this.log("info",t,!1)}clear(){$(this.target).empty()}}e.Logger=a,e.dependencies=["pkg://MonacoCore/vs/loader.js"]}(e=t.application||(t.application={}))}(t||(t={})),function(t){class e{constructor(t,e){this.app=e,this.name=t}preload(){return t.API.require(t.application.Antedit.extensions[this.name].dependencies)}basedir(){return`${this.app.meta().path}/extensions/${this.name}`}notify(t){return this.app.notify(t)}error(t,e){return this.app.error(t,e)}logger(){return this.app.setting.showBottomBar?this.app.showOutput(!1):this.app.showOutput(!0),this.app.logger}metadata(e){return new Promise((i,a)=>{if(!this.app.currdir)return a(t.API.throwe(__("Current folder is not found")));`${this.app.currdir.path}/${e}`.asFileHandle().read("json").then(t=>{!t.root&&this.app.currdir&&(t.root=this.app.currdir.path),i(t)}).catch(s=>{this.app.openDialog("FileDialog",{title:__("Select build directory"),root:this.app.currdir.path,mimes:["dir"]}).then(t=>{`${t.file.path}/${e}`.asFileHandle().read("json").then(e=>{e.root||(e.root=t.file.path),i(e)}).catch(t=>a(t))}).catch(e=>a(t.API.throwe(__("Unable to read meta-data"))))})})}}e.dependencies=[],t.application.Antedit.extensions={},t.application.Antedit.EditorBaseExtension=e,t.application.Antedit.extensions.EditorExtensionMaker=class extends e{constructor(t){super("EditorExtensionMaker",t)}create(){this.logger().clear(),this.app.openDialog("FileDialog",{title:"__(New CodePad extension at)",file:{basename:__("ExtensionName")},mimes:["dir"]}).then(t=>this.mktpl(t.file.path,t.name))}build(e){this.logger().clear(),this.metadata("extension.json").then(async i=>{try{const a=await t.API.VFS.cat(i.javascripts.map(t=>`${i.root}/${t}`),"");await(i.root+"/build/debug/main.js").asFileHandle().setCache(a).write("text/plain"),await(i.root+"/build/debug/extension.json").asFileHandle().setCache(i.meta).write("object"),await t.API.VFS.copy(i.copies.map(t=>`${i.root}/${t}`),i.root+"/build/debug"),this.logger().info(__("Files generated in {0}",i.root+"/build/debug")),e&&e()}catch(t){return this.logger().error(__("Unable to build extension:{0}",t.stack))}}).catch(t=>this.logger().error(__("Unable to read meta-data:{0}",t.stack)))}run(){this.logger().clear(),this.metadata("extension.json").then(async e=>{if(!e||!e.meta||!e.meta.name)return this.logger().error(__("Invalid extension meta-data"));try{const i=e.root+"/build/debug/main.js";t.API.shared[i]&&delete t.API.shared[i],await t.API.requires(i),this.app.extensions[e.meta.name]&&this.app.extensions[e.meta.name].cleanup&&this.app.extensions[e.meta.name].cleanup(),this.app.extensions[e.meta.name]=new t.application.Antedit.extensions[e.meta.name](this.app);for(let t of e.meta.actions)this.app.eum.addAction(e.meta,t,(t,i)=>{this.app.loadAndRunExtensionAction(t,i,e.root+"/build")});this.app.eum.active.getEditor().trigger(e.meta.name,"editor.action.quickCommand")}catch(t){return this.logger().error(__("Unable to run extension:{0}",t.stack))}}).catch(t=>this.logger().error(__("Unable to read meta-data:{0}",t.stack)))}release(){this.logger().clear(),this.metadata("extension.json").then(e=>{this.build(async()=>{try{t.API.VFS.mkar(e.root+"/build/debug",`${e.root}/build/release/${e.meta.name}.zip`),this.logger().info(__("Archive created at {0}",`${e.root}/build/release/${e.meta.name}.zip`))}catch(t){return this.logger().error(__("Unable to create archive: {0}",t.stack))}})}).catch(t=>this.logger().error(__("Unable to read meta-data: {0}",t.stack)))}install(){this.logger().clear(),this.app.openDialog("FileDialog",{title:"__(Select extension archive)",mimes:[".*/zip"]}).then(async t=>{try{return await this.installZip(t.file.path),this.logger().info(__("Extension installed")),this.app.loadExtensionMetaData()}catch(t){return this.logger().error(__("Unable to install extension: {0}",t.stack))}})}installFromURL(){this.logger().clear(),this.app.openDialog("PromptDialog",{title:__("Enter URI"),label:__("Please enter extension URI:")}).then(async t=>{if(t)try{return await this.installZip(t),this.logger().info(__("Extension installed")),this.app.loadExtensionMetaData()}catch(e){return this.app.error(__("Unable to install extension: {0}",t))}})}mktpl(e,i){const a=`${e}/${i}`,s=[a,a+"/build",a+"/build/release",a+"/build/debug"],n=[["main.tpl",`${a}/${i}.js`],["meta.tpl",a+"/extension.json"]];t.API.VFS.mkdirAll(s).then(async()=>{try{return await t.API.VFS.mktpl(n,this.basedir(),t=>t.format(i,`${e}/${i}`)),this.app.currdir=a.asFileHandle(),this.app.toggleSideBar(),this.app.eum.active.openFile(`${a}/${i}.js`.asFileHandle())}catch(t){return this.logger().error(__("Unable to create extension template: {0}",t.stack))}}).catch(t=>this.logger().error(__("Unable to create extension directories: {0}",t.stack)))}installZip(e){return new Promise((i,a)=>{t.API.requires("os://scripts/jszip.min.js").then(()=>{e.asFileHandle().read("binary").then(e=>{JSZip.loadAsync(e).then(e=>{e.file("extension.json").async("uint8array").then(s=>{const n=JSON.parse(new TextDecoder("utf-8").decode(s)),r=this.ext_dir(n.name),o=[r],l=[];for(let t in e.files)e.files[t].dir?o.push(r+"/"+t):"extension.json"!=t&&l.push(t);o.length>0?t.API.VFS.mkdirAll(o).then(()=>{this.installFiles(l,e,n).then(()=>i()).catch(t=>a(__e(t)))}).catch(t=>a(__e(t))):this.installFiles(l,e,n).then(()=>i()).catch(t=>a(__e(t)))}).catch(t=>a(__e(t)))}).catch(t=>a(__e(t)))}).catch(t=>a(__e(t)))}).catch(t=>a(__e(t)))})}ext_dir(t){return`${this.app.meta().path}/extensions/${t}`}installFiles(t,e,i){return 0===t.length?this.installMeta(i):new Promise((a,s)=>{const n=t.splice(0,1)[0],r=`${this.ext_dir(i.name)}/${n}`;return e.file(n).async("uint8array").then(n=>r.asFileHandle().setCache(new Blob([n],{type:"octet/stream"})).write("text/plain").then(n=>n.error?s(n.error):this.installFiles(t,e,i).then(()=>a()).catch(t=>s(__e(t)))).catch(t=>s(__e(t)))).catch(t=>s(__e(t)))})}installMeta(t){return new Promise(async(e,i)=>{const a=(this.ext_dir("")+"/extensions.json").asFileHandle();try{const s=await a.read("json"),n=[];for(let t of s)n.push(t.name);const r=n.indexOf(t.name);r>=0&&s.splice(r,1),s.push(t);try{return await a.setCache(s).write("object"),e()}catch(t){return i(__e(t))}}catch(s){try{return await a.setCache([t]).write("object"),e()}catch(t){return i(__e(t))}}})}}}(t||(t={}));
\ No newline at end of file
diff --git a/Antedit/build/debug/package.json b/Antedit/build/debug/package.json
new file mode 100644
index 0000000..ee38376
--- /dev/null
+++ b/Antedit/build/debug/package.json
@@ -0,0 +1,24 @@
+{
+    "pkgname": "Antedit",
+    "app":"Antedit",
+    "name":"Antos Editor",
+    "description":"Antos text/code editor",
+    "info":{
+        "author": "Xuan Sang LE",
+        "email": "mrsang@iohub.dev"
+    },
+    "version":"0.1.0-a",
+    "category":"Development",
+    "iconclass":"bi bi-journal-code",
+    "mimes":[
+        "text/.*",
+        "[^/]*/json.*",
+        "[^/]*/.*ml",
+        "[^/]*/javascript",
+        "dir"
+    ],
+    "dependencies":[
+        "MonacoCore@0.23.0-r"
+    ],
+    "locale": {}
+}
\ No newline at end of file
diff --git a/Antedit/build/debug/scheme.html b/Antedit/build/debug/scheme.html
new file mode 100644
index 0000000..4ce75ad
--- /dev/null
+++ b/Antedit/build/debug/scheme.html
@@ -0,0 +1,38 @@
+
+    
+        
+            
+                
+ + +
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+
+
+
+ + + +
+
+
\ No newline at end of file diff --git a/Antedit/build/release/Antedit.zip b/Antedit/build/release/Antedit.zip new file mode 100644 index 0000000000000000000000000000000000000000..9062b656aa61235cc61a6d4b60889a7b4f0f5e37 GIT binary patch literal 31775 zcmchA&yO5go|ku*p9KdFs}%wvg~KhA(ay}Oa!>cnWOmx)_7BF}?Y76|9vDi69hDhX z746K3+K9-qYijd=5C?>`;)KM31A;pedqUhnh<{@DvIlM)IC0_g`F`Jf@gg#^T(-N{ z9`|HMyr19SzuwDdU;o};*}BF*|M0*3$@72z7svm3^!wMY@!#LTvqhX{!)aM=#Yb-k z@#*Q{O`6T}H~X`=iU;W|m;_;*Rmm)^!h?Wqs`zkl7#DZs%RDWs!C9KT3GM{5^lT{K zr+HRk)TG$D*b4Ax`_sd`m?g!a%1=kZ?&;g0%;y;T#_gZp{@Lx@<4?DxS$>ujNAvv6 zC^$)Hvm_fgo(|rQf_Pcw`t%4>49fJk3C6p9`c@y7(;}bGu{P{sR-KH3EYA{swf$-R za+=TcVier?;&c8Dsv^$H)3`{oiYr-d{TPrKjRtR$!`CSmZ5J6_$o@`}^!TJ21v_I* z{UhL@W99+2Jbi8EKg7r5B41{+Q3DiziK{tTE)LgLGiaho(WrDJzzTvN2U8&A<=hai zA)_>_iZm4i9W3(S4i@oSEEN0!;t_P(mj>IL-Z!3q{6?1Znj6z9S&XvkWH3ER z=d)gNmSj;dPlshPPo`kx{*OUr0yX@H1S~RutH5_}UM2UM+zf)P5D@4o&flD%cL&0Q zz{rszo~6t3hv6BwVv%C$a5~S+_;8+#4wIw2NDN)-!r~+T{Q(&D3i$eHGy(eS5?S#C zv~0r0XYxmZubaMMcTG{gj)3~9Vap&mjc2noJ63W3xs}fL>0w?~`C=5Ty(m-=-rli2 z>}2|UU2j}bL=A~z)oOz`1yo#82%VlC=5Kv9SEjQB$|F431RJBSt~jkg-<#TqiA{p; zhK2mqwLpr)uBC*`q-?B zBoRwQv1hc0CrS+cy@%A;L^y6LAtU!~ATkfEZMn-*{5&~=g5MRoz8ZGBX6Cb(oa`m% zd1=KtwABWB4Q}l2eleYWL3wp$nSYed6^zZj1+t>%R*i)0g7+0C?Aj(|mSxIGSXOa0 ztuo7!>quQwC&7)Kou9^2qpB?iEZIBJVqb_w>LihGRf71h47jWBLltCvn9L2=+J!V} ztY8cI-W+iA(BJauB)n&l0X{Ij3p@64Ly>)`dRWl`A>qJ#1zhRc9~ zVcLI&e_!AqKNrV`ac`$De}`Xu9$l_EFWs2}&UqVGP@u+!d&d?o zj>##QTS|5nd?@ZWYWsOQI-zg1QA`+|UoIxz2N+kt&Xvs3%jOJb4&=1l8ebq21K;%A zND59u)|fCF{I}_R9`}PX&8A7P`}3dwyt}K{&CK%@hHo7FWbj3IhkVfJg1NNAPhE4U68z^H@L`>DtP$z6cH8}rk@W#zh!$1SsulUbPi-J@+=pCyn~49$kS$2 zW7WfHK1&85*}*(N9wbGPTcg-m3`H{gF=l!b7nvb7Gf|FU(lLD3AA+8myGpa8yg8SX zRF`Os8h{j#hfBC#**-+4#P%j3z;%qc+;pD6?+Fe9ZO{}x5L_gnT9viqM9&)W#ee?a z|M#E$*WbBzjsN~8;)~B8-h1%m;czj#5!}-_;?|3kv<&dSI17@u@#1uzfGzUx5uNA< z#|h$wF~StV;W;}z-3uNdgfY)g7l^S0U#Hd9){Ps%FY`B5zV%(11l36r+z0xf#WU#A z#UjpTa6sotRpDJ8z!Xf%lAqXc@4?r>(K4G>X`aRNv`Uk5w6(Q64DN%V(IG=1(=27{ z_Aq#yrIqwE&w`^OU&w>$vS7dv!gh|pW-!mEvgR}cU(ON$tJwN%7<{!v1P0rj1;sM+ z2ip3{FnEr5Ol&q_$4CF)rl(l{^mTlk$WHgbP|H(bhC@{lzX>1!&eZWkAPBeoaRcnA07!9rND%yZ-0h;w|bK3=fv{GYHQUblK=SUfBrx2{p#8^{`>1T z$?$!778gM^zHT|NS49_K)F5d-s)k>IFO(3T08;abK=A_LEURKU1x9N%&n>rPVx{g~PafgeSiQFV2%*r0rlTfKexjep6}!yDd+9sc8Xv zomBqo#q#as`mR3Va^h-PPERQFCuccQ8awt?FFeYp%QEcuqRAayXS4myo3hsC!=5|? zi|g+9Wc*$ft;~AztQU%XsN+g&T{jkXS9`nfTcK$(=ta0LbWmFXq%d0?hbZG>Hf~a3W}Cn!s4nSVS>>P!SqxGck7R%YIqt~C;e(T zji)EcAOA7%DxW4HVJSUTLde!QD8`Z}kD#eByrSGuvJILE4?7psQM`eT?52uVLLGLQ z9_%2J5>S2>jWN8@P2hLCiyBQ z89u*`#k8NbVF?)oSPCeuxa@|aNMI{)69aHh1{q;e%6N(!FcWbugPRUbG5B7xQBiD} z!T_d|^jnP4(h1Rculv0$ zCU+ctgVsYMZXK&c5s1H02tO*}Sl2;-(M zfegIbMjv^z39R)V1xcQZKko|S{(7Qfr{V40F?9GD|?Yl$PcRQ+sc6i z*`XWuxP!QaG?Q&Kmg%ViHIo26wi1-Kh<6Dkl)!^tyW;XY6!&6Q;;Vd0?|j__sPWyrdqG!bNSqVhoviaZ2(8+ zEeZ%`aBbR_uY$K}^Oj4*af|`HYV1WJgv}{?LPxF|V%#vp#ezn)^1lk|A(~lHf0~!@ zi}S4g{+W3WkP$^Mux9OIF=K|pJM(-f^MH_sc1$DJ>y~cNx=kdufgRnb@r(3`0?ruo zLgh3JJXsnkqno`Uz69T8XeOG9b8lBA21H*ZmJwJhr^ijd?+TbSaZy4J8u^({nnOB( z)s&mwHIt{S(Uq5BoQ4EIHA9lAjL|7hRMvgV_qw1U8^?a2oWN!^oc97e7nTc%SkCG7Zp|P~=!Ts>ik7 z@ew_-hY~Cx*|vH$yp{FNI;%P}j$DZ^&AwYnqabe*_&h#`aSucp<3#zhtEFjRY2Z;_ zh-3yt3|R|#=oYL~=tQr`MIDtC;uaafymwHi?5x`;FGQB_AHxPY7@MgIWb!H$@@2`l zsLM)^xFEJ`;u0tOknv1sWFyeD==xM9wCiage%N5 zI#whWQw`%cu>~@wh1Pg5f+8Js828YQLwUkDiQmXRvu%_x+pX%SwjI~lZbfqjqF}&x zgZbgyw$;$K>^fExL>K6#iEKomghsDkk{+EWXrVDYN+6mTAt3mk!JJ8<6?$=bo=sgO zxhJtGahk_5ixz0!!xp0r22%)re9KxJRpY8ScMKfAi4kXxjWb~Q5XOMm_IFb#A^8-I zsE;6amUB9%;tDtk5u|VeDE%RsqG&8(waxLbv0x0rbFF6^6f~;*Aw;itMeB%Yj_4V*mQ)e!2gCsyE|%7p z5OCuutUv3nmp&<)5~45~f6^=Aca&u>JWI>;Fa=GVhy749gf&&cUu%#;+K(CGE0RB2 zrjm)uj?&}a1-DU-F3!pk!{MXtZ51yJr*5B>?RX>wF~sU?8dp)@jMdu@&&qA(0`q@E z@_BfmF*T!owE=~l8UyGwn8n3wyX0iK7y^^B>JBLqqV90^zc|uoP;)gI$HFQXyMnZ+8fSWgkO~m<^hhz|A zsv;jm&Z&8DtWQ|u{ptWL1I0_vdMBw8sz|P31v|2-cSQ@>p ziDdS}c50&u0n7e96c{7OGv((D<9{d6`8!KvX2 zu~-@(?zN=s>IRf!ew*hKg*5M>TA0c5-#?J(pLwsLz;JZ{13Ay=uh#IE{Y|U41ltqe zlSSL|B!5F;tyF#p4g7U--V5)2^J4I=2Sg5dPqLLg*-K}KryDwuHo>GFQ#`t)2f?w{ z>Hdr7-wgIP^kM{Ly$iSUk1y%Lphp|kc{VHJWBeya+GRZ`&uBu;BrWoXv1>@P%Iii} znbHnMJP4tVlu?evMVk@n(13f-`RcKaYLrMQWuCqf%{R7s^2^KywGHRP8?{N15MuWes{JW3)H6=Q0EqN6MH$6X2oY-?tkVhq(s;QkxAW z_$Wt!D(tIwOn2W`=;WQRq=@{hxUjYggtXWIjh6^KnkCHhc=piR#ZQtdet>L_RRa}P zHc$4DxW|C4hcpf84cNyF_nafbw5Ri7l`TDVq2ZslaC82LQCODtRq4^Fm6-U1k=*C` z8%A&YtPKn~L%k#<=m^GA$=~)H?e}g`l?(x+KD5if_|T z?afiUGwd>l6d2sBV{uvtIvX_dR0_fnd;k?(R7R;a=%aUi$4u|s7MB!y%%tIDXC(-? z*oL_sHb$V8-#PMTiq*wA0%q7_b7N+o@0zWkqMCE3ahA{xR zG)UVluhOIQRtjX6$|0UWT)TjTH42_-y$#h>pdzqjq#7)f9;GNaBJJae7S_lfP>3UY zh`<1n43y9^EX^t!`jGY=$lZR5xEBIW5Dm#3iC<|=qOl^xZ@oji;R*@C#Ez+++d9E> z@ia1Er`nLbLbBln!GAbqG_I#65uu%#I2lrI`GBU{q@-8(@Es7_$-noXToIEC3 z_KoXq@HjSsa#JKg|Ulwwf0P$6k%%-rt{fn|SrkW1C9#fKi)n?`+RLe2HtXTt>bA|CTeGNUz*o7aC2b@UU9|bDw zt9iiEipx#lS_4BlT)c+7{^2)nfVRGG<1@;>L$@e+|3Q(Cvu6J@e-13P*CigrUvExFtAi886r|%RT^p%k#Vr!0nDz_E3#Yd zt3&KawsjO9#lcZL_@gBv$%v5;rfC6x1I`d*1eEL#@&IX@07_*(KM&r-sPYBP>pEn) zcf-C1+jWj5{68GzT9<2Wg^%P^Z`E8h1)>G=YUPEVtRdJi7B&Y`m6@!|rCJ?TcGLM1 zHUl=_-BVNjmK9sQwao0!?vC|dn(vz)pqa6R`m*TIJ&MkS1U@~)+qW4E`2ww+Ks<$+NH5|m$gjSc@-;q};kq#H| zO<~H&n}|$~GZnPhTpSUGh-c`~SoZKJQo*3PdqbN`NHB1{ClTE5zb$Lv=*ISC(FbsnD|it*sm6ZAAMe zpQA1kC7)Dz3|3@_4`WY~ba4ibDo^+~fTb48(Ae35WVY3i5vmIc-p^1y&^avE`((69 zwEb$CR)rImR#=nN^2rxIiA!?Qv5;MYm z2)xXI=RMHKn%vGGcc!`5qxML>9`cYD*+#?M6-m@~wSLk`jX|J$vT|KfzYoLxy;;xc-w9zG8f46g*lsPomOO>RtH^$> z7)C%eOak?mPQmyPZ6lTenhU*`&7Lo_hn9FvQ?x=%pvZFw7jOkg)dR{! zo#n-I+3x015XS~nCLRlcJ(P=Z9I0boWkMBW6ZjiKJ09*<9==#AxZ0M>qrNX+jp0=x zksAZM<`EIXjlPUeQ$SOaqa_mMh`5<}JK!!YHmt?&+7`RkZphLVx;Cl7IwVr*2=I={sb>f*8zf=KT?e()M;Ks6REch6!Ft zH6mb27>%9D6`v(9H5}MDIK%k$yhO5|1v}<|msb%dYt}YQ%XZg^TDDX!B@t>5RGmV3 zQ(;p0Yh5V{(KwMV$ms)83fQ9l{;Cf|Vk}g~vEVaX z&gcEt$vLx;D5touu+ql{a8!@~2$zMOKAxc-jC1wDW+Rdl%T(lnt|3~vlO!S@JD}Fa%aFGwQ)ktdFM{xhHul z$BN`!BlHI(=ZXi8n{W99R-n993DxK>4jf{1nzvf&HqBv#Z`qY ziYyeRFO5^x;VqnZfuzEzJ9e%_o;|<`FiE@ubNt+kpaH^LAO$=?#S5y-qg%WBP@X*k zjr~Tld$+;>L$cj3aVio#ehbGW^}&-gTUM+tuOICRozfgf%nlsfd$rG0?tzlDQ1>en zZ#NB+A)m6W#{)2Si0hw_jf`0@(s-fw^1aAUZJJ6^60xjF-~Cc<>WfyVDDOf^R40yL z%bM)vMQi*70YL<*SF2?BjbuV6G4#BD`f{@0RVuVixt$cSkHUkGtVdJ=Oqv8pS6Ki7 z$k?NhMRwn5KB=`cE{oR|DVFzxo-Kc&A8%k1#>uqcRqLJ^@;x^91$0oz*&f&G6 z+w3Br>pbu~s+cA_>Wu8F8V0E;CvzqNyBbf}S_3F&6g*TXNCYR6_`0t}koGt_&eqdd zKH{y8aMPl(4`4HzizVZ*M=Q3m!TP-pVFt6*I9A@m7_yO98l~~x*iZzx#hI}s?QNox z?R-y{{z6B5Mp)|Tr~yFIjBp2V+{Vqzo-AL7_bOQN`<<*u&KMG%qLFqMVVa!lR> zdRq6Pj>8qG!zNVh^$%{$dSNq!NzDY$OyR(8cTObPm#X^a5y6 zoB^|PZ31~%8d@3B+<{~D&@Ie*xpKr;BlaoT!4(4|P%p*6%Hh9$v`3QarNi&tVSZS% zn!^Pt!?OZOnuJi)$AO=*bVmoifG(DGZsT6V<#Fwqwb>n#?mo}gLMwLWj4l~-ZD-BO zT~?*)&>Govn9Lt~Pr@V+_<5s&iXkAW+4Y8$Q1xQM}^sW{`a7j)_ zc8>!8@#alhY$g`r1a%YFszW$@&B%J2h6BpToWax#8Ti?g5bqwWDHU2{Mf7hk=b)?6 zA4MCr4NjcG{be8bL5bbhoes41<{xLsNa5xKx9Nr;^XlB0^1XyA$4c_JN)DIxz!SZB zQJ^$u%zTonFTfVaZhPv`00&qp}-SfxL)>`1er=~OynJ~Pp zF@RcP?5$sT>0J^b9Z8n@dz){K`5`=GM4JN|E+WI#b?{?4q+IO?3W+#Yug#{~ zW?UQB`nWKF+e161q)4ghuq%R~%ElQ;VP4`8n%)Oi;wCZ3F%%hO3@aG~3vLl`ZCsRP zLIDT~$Mm_C6sY9>a1TpRlY(aVMk<4K)E2B{Ndiy zZ{bz*^gZ|W0sw!2=pSNWy>M9_4St4BGkE~oL=?aj62GlpGNhEL(b~@^`^7*}a=<6u$shFwi+_uN`IYH*d~usDGThvywR5N%OS9GPw^?UlEWn z%ibIz*vxB^Hj*x}J;zD8XY3`056tOKQ>1Ey%MUSN_cZVKbOj^{_+3B_?B}E-r4G!+ zu8FDL^4{Mb#;B}~!TQTj?X9bB# zn_I=D9*c!4!Vtc4DQ(cBDOo(v5LJl&322jcr#7pvBa_TZ8D)kA6>(!-KrzYmj<=_< z3(TA1&IF}oIL59tQ1o#U2vv-%Y(XAl&31_ENCgz0xzxx7DY}9Ibtc}}UnPP;?HXKf zSmv1DcVLD9{rhCb&07}#TlpvdC&Ohh zR9!c64cS*4%GCUMsol>%4+H2T{ne(4emC>;y}fpzIhu@!TY+^jyY}6k5ZNp|?r2Pq zQ0VLLRZUMI_a~?Z#TgB^T~5a)QWPV{MkXO|O$`IsWBk}t=o3*TDu;B&|_$`(tSyL_OqG>?Mt_U*76 zZ8E2bHuR9BC{qra^^3wFa5wyN30hY!0)|>W1dA}=?-nPx=i+%Ls(U_1o_Y_rTy@L= z95=OZ>~;&FAY)lOex9Q|G0lx^zrAbeT1UNPYVw?g>Lm1TN_odlFB!617T099fs}*< z8`y5n(Irp2X!A=aMl1o`_LUo@I)7iLH8?p{f)j#)2`UvVREP~as=#4=;|!F;IVB-} zyfCgtlvQI3av5dg=uXMnqq@{H-cZ7}W1K?N-_w$>=7)sda{^_3Zntxa4WoIQ)CahJ zuC0qZwOP``FHFJ`aeru*fEmnvMBAGi2F->VV}59RO4hN}`#=1P-~8MEgiFZzuXlys zHZD?^p-1LE{q5}_U7X@5BdUMu%jB^?Tin1iqRV+A7Lb~p_fAhi3gY2B-RnxB>ZSS8 z1H+?+94EMCcn1x6hjF}o#Sr--46A~JpQSM}tZb$rY2yO=i@jx!g#_tH2Iq_z>IDN zzNzQqH~x_;_&6`L&O`G{3ECY&=|*2^ZC6PQ>Lu?o3jR~0`9QigE^H@=|J~y6zqs{# z*RJv3-)l0HBUp9hbj|fz9c;Q-)?209i>VOBuY?$};5YhFK=&;iayQ$hkkeRP3wBLN z*E_esbvpx=zT(d`Tsnoua~sGrzcXORyL^V{%k0wekudw%^@HCf#C-WYCJg=IJ9(^0 z4lmx%+feNFJ&kb*8b@d*2J{iT+%Pk;9G7m{Ol%S&t@+)0Er%U!J^T81e)spUZT{(H z@R|2V^b_tMYxipZpi1546@J3m{k%%MTl;r9>TbXIgXXVxw0pLHyrJ%y{9W^V(ciDF zvK@=4JN>V;5t;C3>#`QK@?OEgDoTN7@;Yya~K zqgmUcJ!)HX)uaAt)!1C;8mWhvt!a - super "Antedit", args - - main: () -> - -this.OS.register "Antedit", Antedit \ No newline at end of file diff --git a/Antedit/css/main.css b/Antedit/css/main.css new file mode 100644 index 0000000..d2f8c33 --- /dev/null +++ b/Antedit/css/main.css @@ -0,0 +1,167 @@ +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container +{ + /*border-top: 1px solid #272822;*/ + overflow: hidden; + overflow-x: auto; + font-size: 12px; + scrollbar-width: none; + /*scrollbar-color: #656565 transparent;*/ +} + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar { + height: 0; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-track { + background: transparent; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-thumb { + background-color: #656565; + border: 0; + } + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul +{ + width: intrinsic; + width: -moz-max-content; + width: -webkit-max-content; + width: max-content; +} + +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected, +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{ + background-color:#272822; + color:white; + border: 0; + border-radius: 0; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view afx-list-view i.closable:before { + color:afafaf; +} +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li, +afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul li{ + background-color:#333333; + color:#afafaf; + border-radius: 0; + border: 0; + padding-top: 5px; + padding-bottom: 5px; + padding-right: 20px; + border-right: 1px solid #272822; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-vbox[data-id = "sidebar"]{ + background-color:#272822; +} +afx-app-window[data-id = "antedit"] div.afx-window-content { + background-color:#333333; +} +afx-app-window[data-id = "antedit"] afx-resizer { + background-color:#272822; + border-right: 1px solid #656565; + border-bottom: 1px solid #656565; +} + +afx-app-window[data-id = "antedit"] .bottom-tab-content { + background-color:#272822; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view{ + color: white; + padding: 0; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view afx-tree-view-item ul li{ + padding-left: 10px; +} +afx-app-window[data-id = "antedit"] .afx-window-wrapper .afx_tree_item_selected ul{ + background-color: #116cd6; +} + +afx-app-window[data-id = "antedit"] afx-file-view afx-tree-view .afx-tree-view-item:before{ + color: white; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"]{ + color: white; + background-color: #007acc; + padding-right: 10px; + padding-top: 5px; + font-size: 11px; +} + +afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"] afx-label { + padding-left: 10px; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper{ + border-radius: 0px; + border: 0; + /*border: 1px solid #37373d;*/ + background-color: transparent; + box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.65); +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li +{ + background-color: transparent; +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view afx-list-item li{ + background-color: transparent; + color:#afafaf; +} +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper div.list-container > ul li:hover{ + background-color: #37373d; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li.selected, +afx-app-window[data-id = "cmd-win"] .afx-window-wrappe dafx-list-viewafx-list-view ul li.selected +{ + background-color: #116cd6; + color:white; +} +afx-app-window[data-id = "cmd-win"] .afx-window-top{ + height: 0; + border:0; +} +afx-app-window[data-id = "cmd-win"] input{ + border: 1px solid #007acc; + border-radius: 0; + font-size: 12px; + color:#afafaf; + background-color:#272822; + padding-left: 5px; + margin: 3px; +} + +afx-app-window[data-id = "cmd-win"] .afx-window-content{ + background-color:#272822; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] { + overflow-y: auto; + overflow-x: hidden; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre { + margin: 3px; + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + font-family: monospace; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-error { + color: red; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-warn { + color: orange; +} + +afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-info { + color: white; +} + +afx-app-window[data-id = "antedit"] afx-button[ data-id="logger-clear" ] button{ + border: 0; + background: transparent; +} \ No newline at end of file diff --git a/Antedit/extensions/EditorExtensionMaker/main.tpl b/Antedit/extensions/EditorExtensionMaker/main.tpl new file mode 100644 index 0000000..f5a4487 --- /dev/null +++ b/Antedit/extensions/EditorExtensionMaker/main.tpl @@ -0,0 +1,19 @@ +(function() { + // import the CodePad application module + const App = this.OS.application.Antedit; + + // define the extension + App.extensions.{0} = class {0} extends App.EditorBaseExtension { + constructor(app) { + super("{0}",app); + } + + test() { + return this.notify("Test action is invoked"); + } + + cleanup() {} + + }; + +}).call(this); \ No newline at end of file diff --git a/Antedit/extensions/EditorExtensionMaker/meta.tpl b/Antedit/extensions/EditorExtensionMaker/meta.tpl new file mode 100644 index 0000000..d6b24d2 --- /dev/null +++ b/Antedit/extensions/EditorExtensionMaker/meta.tpl @@ -0,0 +1,15 @@ +{ + "javascripts": ["{0}.js"], + "copies": [], + "meta": { + "name": "{0}", + "text": "{0}", + "version": "0.0.1-a", + "actions" : [ + { + "text": "__(Example action)", + "name": "test" + } + ] + } +} \ No newline at end of file diff --git a/Antedit/extensions/extensions.json b/Antedit/extensions/extensions.json new file mode 100644 index 0000000..a18686f --- /dev/null +++ b/Antedit/extensions/extensions.json @@ -0,0 +1,33 @@ +[ + { + "name": "EditorExtensionMaker", + "text": "Antedit Extension", + "version": "0.0.1-a", + "actions" : [ + { + "text": "__(New Extension)", + "name": "create" + }, + { + "text": "__(Build)", + "name": "build" + }, + { + "text": "__(Run)", + "name": "run" + }, + { + "text": "__(Build release)", + "name": "release" + }, + { + "text": "__(Install extension from file)", + "name": "install" + }, + { + "text": "__(Install extension from URL)", + "name": "installFromURL" + } + ] + } +] diff --git a/Antedit/package.json b/Antedit/package.json index 7ab6a8c..ee38376 100644 --- a/Antedit/package.json +++ b/Antedit/package.json @@ -1,16 +1,24 @@ { "pkgname": "Antedit", "app":"Antedit", - "name":"Antedit", - "description":"Antedit", + "name":"Antos Editor", + "description":"Antos text/code editor", "info":{ - "author": "", - "email": "" + "author": "Xuan Sang LE", + "email": "mrsang@iohub.dev" }, - "version":"0.0.1-a", - "category":"Other", - "iconclass":"fa fa-adn", - "mimes":["none"], - "dependencies":[], + "version":"0.1.0-a", + "category":"Development", + "iconclass":"bi bi-journal-code", + "mimes":[ + "text/.*", + "[^/]*/json.*", + "[^/]*/.*ml", + "[^/]*/javascript", + "dir" + ], + "dependencies":[ + "MonacoCore@0.23.0-r" + ], "locale": {} } \ No newline at end of file diff --git a/Antedit/project.json b/Antedit/project.json index 80dab3d..3db738e 100644 --- a/Antedit/project.json +++ b/Antedit/project.json @@ -1,8 +1,14 @@ { "name": "Antedit", - "css": [], + "css": ["css/main.css"], "javascripts": [], - "coffees": ["coffees/main.coffee"], - "ts": [], - "copies": ["assets/scheme.html", "package.json", "README.md"] + "coffees": [], + "ts": [ + "ts/monaco.d.ts", + "ts/BaseEditorModel.ts", + "ts/MonacoEditorModel.ts", + "ts/main.ts", + "ts/EditorExtensionMaker.ts" + ], + "copies": ["extensions","assets/scheme.html", "package.json", "README.md"] } \ No newline at end of file diff --git a/Antedit/ts/BaseEditorModel.ts b/Antedit/ts/BaseEditorModel.ts new file mode 100644 index 0000000..8e459ef --- /dev/null +++ b/Antedit/ts/BaseEditorModel.ts @@ -0,0 +1,570 @@ +namespace OS { + export namespace application { + + /** + * Extends the [[RemoteFileHandle]] interface with some useful + * properties used by [[BaseEditorModel]] + */ + export type EditorFileHandle = API.VFS.RemoteFileHandle & { + /** + * The text will be displayed on the tab bar when opened + * + * @type {string} + */ + text: string; + + /** + * Editor text model attached to the file + * modification history of the file + * + * @type {any} + */ + textModel: any; + + /** + * Indicate whether the file is selected + * + * @type {boolean} + */ + selected: boolean; + + }; + + export abstract class BaseEditorModel { + /** + * Reference to the current editing file handle + * + * @protected + * @type {EditorFileHandle} + * @memberof BaseEditorModel + */ + protected currfile: EditorFileHandle; + + + /** + * Referent to the parent app + * + * @private + * @type {BaseApplication} + * @memberof BaseEditorModel + */ + private app: BaseApplication; + + /** + * Reference to the editor tab bar UI + * + * @private + * @type {GUI.tag.TabBarTag} + * @memberof BaseEditorModel + */ + private tabbar: GUI.tag.TabBarTag; + + + /** + * Referent to the editor container + * + * @private + * @type {HTMLElement} + * @memberof BaseEditorModel + */ + private container: HTMLElement; + + onstatuschange: (stat: GenericObject) => void; + + /** + * Editor mutex + * + * @private + * @type {boolean} + * @memberof BaseEditorModel + */ + private editormux: boolean; + + + /** + * Creates an instance of BaseEditorModel. + * + * @param {Antedit} app parent app + * @param {GUI.tag.TabBarTag} tabbar tabbar DOM element + * @param {HTMLElement} editorarea editor container DOM element + * @memberof BaseEditorModel + */ + constructor(app: BaseApplication, tabbar: GUI.tag.TabBarTag, editorarea: HTMLElement) { + this.container = editorarea; + this.currfile = "Untitled".asFileHandle() as EditorFileHandle; + this.tabbar = tabbar; + this.editorSetup(editorarea); + this.app = app; + this.editormux = false; + this.onstatuschange = undefined; + + this.on("focus", () => { + if (this.onstatuschange) + this.onstatuschange(this.getEditorStatus()); + }); + this.on("input", () => { + if (this.editormux) { + this.editormux = false; + return false; + } + if (!this.currfile.dirty) { + this.currfile.dirty = true; + this.currfile.text += "*"; + return this.tabbar.update(undefined); + } + }); + + this.on("changeCursor", () => { + if (this.onstatuschange) + this.onstatuschange(this.getEditorStatus()); + }); + + this.tabbar.ontabselect = (e) => { + return this.selecteTab($(e.data.item).index()); + }; + this.tabbar.ontabclose = (e) => { + const it = e.data.item; + if (!it) { + return false; + } + if (!it.data.dirty) { + return this.closeTab(it); + } + this.app.openDialog("YesNoDialog", { + title: __("Close tab"), + text: __("Close without saving ?"), + }).then((d) => { + if (d) { + return this.closeTab(it); + } + return this.focus(); + }); + return false; + }; + } + + /** + * Find a tab on the tabbar corresponding to a file handle + * + * @private + * @param {EditorFileHandle} file then file handle to search + * @returns {number} + * @memberof BaseEditorModel + */ + private findTabByFile(file: EditorFileHandle): number { + const lst = this.tabbar.items; + const its = (() => { + const result = []; + for (let i = 0; i < lst.length; i++) { + const d = lst[i]; + if (d.hash() === file.hash()) { + result.push(i); + } + } + return result; + })(); + if (its.length === 0) { + return -1; + } + return its[0]; + } + + /** + * Create new tab when opening a file + * + * @private + * @param {EditorFileHandle} file + * @memberof BaseEditorModel + */ + private newTab(file: EditorFileHandle): void { + file.text = file.basename ? file.basename : file.path; + if (!file.cache) { + file.cache = ""; + } + file.textModel = this.newTextModelFrom(file); + this.currfile.selected = false; + file.selected = true; + //console.log cnt + this.tabbar.push(file); + } + + /** + * Close a tab when a file is closed + * + * @private + * @param {GUI.tag.ListViewItemTag} it reference to the tab to close + * @returns {boolean} + * @memberof BaseEditorModel + */ + private closeTab(it: GUI.tag.ListViewItemTag): boolean { + this.tabbar.delete(it); + const cnt = this.tabbar.items.length; + + if (cnt === 0) { + this.openFile( + "Untitled".asFileHandle() as EditorFileHandle + ); + return false; + } + this.tabbar.selected = cnt - 1; + return false; + } + + /** + * Select a tab by its index + * + * @private + * @param {number} i tab index + * @returns {void} + * @memberof BaseEditorModel + */ + private selecteTab(i: number): void { + //return if i is @tabbar.get "selidx" + const file = this.tabbar.items[i] as EditorFileHandle; + if (!file) { + return; + } + //return if file is @currfile + if (this.currfile !== file) { + this.currfile.textModel = this.getTexModel(); + this.currfile.selected = false; + this.currfile = file; + } + + this.editormux = true; + this.setTextModel(file.textModel); + if (this.onstatuschange) + this.onstatuschange(this.getEditorStatus()); + this.focus(); + } + + + /** + * Select an opened file, this will select the corresponding tab + * + * @param {(EditorFileHandle | string)} file + * @memberof BaseEditorModel + */ + selectFile(file: EditorFileHandle | string): void { + const i = this.findTabByFile( + file.asFileHandle() as EditorFileHandle + ); + if (i !== -1) { + this.tabbar.selected = i; + } + } + /** + * Open a file in new tab. If the file is already opened, + * the just select the tab + * + * + * @param {EditorFileHandle} file file to open + * @returns {void} + * @memberof BaseEditorModel + */ + openFile(file: EditorFileHandle): void { + //find tab + const i = this.findTabByFile(file); + if (i !== -1) { + this.tabbar.selected = i; + return; + } + if (file.path.toString() === "Untitled") { + this.newTab(file); + return; + } + + file.read() + .then((d) => { + file.cache = d || ""; + return this.newTab(file); + }) + .catch((e) => { + return this.app.error( + __("Unable to open: {0}", file.path), + e + ); + }); + } + + /** + * write a file + * + * @private + * @param {EditorFileHandle} file + * @memberof BaseEditorModel + */ + private write(file: EditorFileHandle): void { + this.currfile.cache = this.getValue(); + file.write("text/plain") + .then((d) => { + file.dirty = false; + file.text = file.basename; + this.tabbar.update(undefined); + }) + .catch((e) => + this.app.error(__("Unable to save file: {0}", file.path), e) + ); + } + + + /** + * Save the current opened file + * + * @return {*} {void} + * @memberof BaseEditorModel + */ + save(): void { + this.currfile.cache = this.getValue(); + if (this.currfile.basename) { + return this.write(this.currfile); + } + return this.saveAs(); + } + + /** + * Save the current file as another file + * + * @public + * @memberof BaseEditorModel + */ + saveAs(): void { + this.app.openDialog("FileDialog", { + title: __("Save as"), + file: this.currfile, + }).then((f) => { + let d = f.file.path.asFileHandle(); + if (f.file.type === "file") { + d = d.parent(); + } + this.currfile.setPath(`${d.path}/${f.name}`); + this.write(this.currfile); + }); + } + + /** + * Get all dirty file handles in the editor + * + * @return {*} {EditorFileHandle[]} + * @memberof BaseEditorModel + */ + dirties(): EditorFileHandle[] { + const result = []; + for (let v of Array.from(this.tabbar.items)) { + if (v.dirty) { + result.push(v); + } + } + return result; + } + + /** + * Context menu handle for the editor + * + * @memberof BaseEditorModel + */ + set contextmenuHandle(cb: (e: any, m: any) => void) { + this.container.contextmenuHandle = cb; + } + + + /** + * Close all opened files + * + * @memberof BaseEditorModel + */ + closeAll(): void { + this.tabbar.items = []; + this.resetEditor(); + } + + /** + * Check whether the editor is dirty + * + * @return {*} {boolean} + * @memberof BaseEditorModel + */ + isDirty(): boolean { + return this.dirties().length > 0; + } + + + /** + * Set up the editor instance + * Should be implemented by subclass + * + * @protected + * @abstract + * @param {HTMLElement} el + * @memberof BaseEditorModel + */ + protected abstract editorSetup(el: HTMLElement): void; + + + /** + * Listen to editor event + * + * Should be implemented by subclasses + * + * @abstract + * @param {string} evt_str + * @param {() => void} callback + * @memberof BaseEditorModel + */ + abstract on(evt_str: string, callback: () => void): void; + + + /** + * Resize the editor + * + * Should be implemented by subclasses + * + * @abstract + * @memberof BaseEditorModel + */ + abstract resize(): void; + + + /** + * Make the editor focused + * + * Should be implemented by subclasses + * + * @abstract + * @memberof BaseEditorModel + */ + abstract focus(): void; + + + /** + * Get language mode from file extension + * + * Should be implemented by subclasses + * + * @protected + * @abstract + * @param {string} path + * @return {*} {GenericObject} + * @memberof BaseEditorModel + */ + protected abstract getModeForPath(path: string): GenericObject; + + + /** + * Query the editor status + * + * Should be implemented by subclasses + * + * @abstract + * @return {*} {GenericObject} + * @memberof BaseEditorModel + */ + abstract getEditorStatus(): GenericObject; + + + /** + * Get the editor value + * + * Should be implemented by subclasses + * + * @abstract + * @return {*} {string} + * @memberof BaseEditorModel + */ + abstract getValue(): string; + + + /** + * Set the editor value + * + * Should be implemented by subclasses + * + * @abstract + * @param {string} value + * @memberof BaseEditorModel + */ + abstract setValue(value: string): void; + + /** + * Set the editor language mode + * + * Should be implemented by subclasses + * + * @abstract + * @param {GenericObject} m + * @memberof BaseEditorModel + */ + abstract setMode(m: GenericObject): void; + + + /** + * Get textModel from the current editor session + * + * @protected + * @abstract + * @return {*} {*} + * @memberof BaseEditorModel + */ + protected abstract getTexModel(): any; + + + /** + * Set text model to the current editor session + * + * @protected + * @abstract + * @param {*} model + * @memberof BaseEditorModel + */ + protected abstract setTextModel(model: any): void; + + + /** + * Create new text model from the VFS file + * + * @protected + * @abstract + * @param {EditorFileHandle} file + * @return {*} {*} + * @memberof BaseEditorModel + */ + protected abstract newTextModelFrom(file: EditorFileHandle): any; + + + /** + * Reset the editor + * + * @protected + * @abstract + * @memberof BaseEditorModel + */ + protected abstract resetEditor(): void; + + /** + * Set the current editor theme + * + * Should be implemented by subclasses + * + * @abstract + * @param {string} theme + * @memberof BaseEditorModel + */ + abstract setTheme(theme: string): void; + + + /** + * Get all language modes supported by the editor + * + * @abstract + * @return {*} {GenericObject[]} + * @memberof BaseEditorModel + */ + abstract getModes(): GenericObject[]; + + /** + * Get the real editor model + */ + abstract getEditor(): any; + } + } +} \ No newline at end of file diff --git a/Antedit/ts/EditorExtensionMaker.ts b/Antedit/ts/EditorExtensionMaker.ts new file mode 100644 index 0000000..8f81a6b --- /dev/null +++ b/Antedit/ts/EditorExtensionMaker.ts @@ -0,0 +1,472 @@ + +namespace OS { + + declare var JSZip: any; + + export namespace application { + export type AnteditBaseExtension = typeof EditorBaseExtension; + } + /** + * + * + * @class EditorBaseExtension + */ + class EditorBaseExtension { + static dependencies: string[]; + + protected app: OS.application.Antedit; + protected name: string; + constructor(name:string, app: OS.application.Antedit) { + this.app = app; + this.name = name; + } + + /** + * + * + * @returns {Promise} + * @memberof EditorBaseExtension + */ + preload(): Promise { + return API.require(OS.application.Antedit.extensions[this.name].dependencies); + } + + + /** + * + * + * @protected + * @returns {string} + * @memberof EditorBaseExtension + */ + protected basedir(): string { + return `${this.app.meta().path}/extensions/${this.name}`; + } + + /** + * + * + * @protected + * @param {(string | FormattedString)} m + * @returns {void} + * @memberof EditorBaseExtension + */ + protected notify(m: string | FormattedString): void { + return this.app.notify(m); + } + + /** + * + * + * @protected + * @param {(string | FormattedString)} m + * @param {Error} e + * @returns {void} + * @memberof EditorBaseExtension + */ + protected error(m: string | FormattedString, e: Error): void { + return this.app.error(m, e); + } + + + /** + * + * + * @protected + * @return {AnteditLogger} editor logger + * @memberof EditorBaseExtension + */ + protected logger(): any { + if (!this.app.setting.showBottomBar) { + this.app.showOutput(true); + } + else { + this.app.showOutput(false); + } + return this.app.logger; + } + + /** + * + * + * @protected + * @param {string} file + * @returns {Promise>} + * @memberof EditorBaseExtension + */ + protected metadata(file: string): Promise> { + return new Promise((resolve, reject) => { + if (!this.app.currdir) { + return reject( + API.throwe(__("Current folder is not found")) + ); + } + `${this.app.currdir.path}/${file}` + .asFileHandle() + .read("json") + .then((data) => { + if (!data.root && this.app.currdir) { + data.root = this.app.currdir.path; + } + resolve(data); + }) + .catch((e) => { + // try to ask user to select a folder + this.app.openDialog("FileDialog", { + title: __("Select build directory"), + root: this.app.currdir.path, + mimes: ["dir"] + }) + .then((d) => { + `${d.file.path}/${file}` + .asFileHandle() + .read("json") + .then((data) => { + if (!data.root) { + data.root = d.file.path; + } + resolve(data); + }) + .catch((e1) => reject(e1)) + }) + .catch( + (e1) => reject(API.throwe(__("Unable to read meta-data")) + )) + }); + }); + } + } + + EditorBaseExtension.dependencies = []; + OS.application.Antedit.extensions = {}; + OS.application.Antedit.EditorBaseExtension = EditorBaseExtension; + + class EditorExtensionMaker extends EditorBaseExtension { + constructor(app: OS.application.Antedit) { + super("EditorExtensionMaker", app); + } + + create(): void { + this.logger().clear(); + this.app + .openDialog("FileDialog", { + title: "__(New CodePad extension at)", + file: { basename: __("ExtensionName") }, + mimes: ["dir"], + }) + .then((d) => { + return this.mktpl(d.file.path, d.name); + }); + } + + build(callback?: () => void): void { + this.logger().clear(); + this.metadata("extension.json") + .then(async (meta) => { + try { + const jsrc = await API.VFS.cat(meta.javascripts.map(v => `${meta.root}/${v}`),""); + + await `${meta.root}/build/debug/main.js` + .asFileHandle() + .setCache(jsrc) + .write("text/plain"); + + await `${meta.root}/build/debug/extension.json` + .asFileHandle() + .setCache(meta.meta) + .write("object"); + + await API.VFS.copy( meta.copies.map(v => `${meta.root}/${v}`),`${meta.root}/build/debug`); + this.logger().info(__("Files generated in {0}", `${meta.root}/build/debug`)); + if(callback) + callback(); + } catch (e) { + return this.logger().error(__("Unable to build extension:{0}", e.stack)); + } + }) + .catch((e) => this.logger().error(__("Unable to read meta-data:{0}", e.stack))); + } + + run(): void { + this.logger().clear(); + this.metadata("extension.json") + .then(async (meta) => { + if(!meta || !meta.meta || !meta.meta.name) + return this.logger().error(__("Invalid extension meta-data")); + try { + const path = `${meta.root}/build/debug/main.js`; + if (API.shared[path]) { + delete API.shared[path]; + } + await API.requires(path); + if (this.app.extensions[meta.meta.name] && this.app.extensions[meta.meta.name].cleanup) + { + this.app.extensions[meta.meta.name].cleanup(); + } + this.app.extensions[meta.meta.name] = new OS.application.Antedit.extensions[meta.meta.name](this.app); + for (let v of meta.meta.actions) { + this.app.eum.addAction(meta.meta, v, (e_name, a_name) => { + this.app.loadAndRunExtensionAction(e_name, a_name, `${meta.root}/build`); + }); + } + this.app.eum.active.getEditor().trigger(meta.meta.name, 'editor.action.quickCommand'); + } catch (e) { + return this.logger().error(__("Unable to run extension:{0}", e.stack)); + } + }) + .catch((e) => this.logger().error(__("Unable to read meta-data:{0}", e.stack))); + } + + release(): void { + this.logger().clear(); + this.metadata("extension.json") + .then((meta) => { + this.build(async () => { + try { + API.VFS.mkar( + `${meta.root}/build/debug`, + `${meta.root}/build/release/${meta.meta.name}.zip` + ); + this.logger().info(__("Archive created at {0}", `${meta.root}/build/release/${meta.meta.name}.zip`)); + } catch (e) { + return this.logger().error( + __("Unable to create archive: {0}", + e.stack + )); + } + }); + }) + .catch((e) => this.logger().error(__("Unable to read meta-data: {0}", e.stack))); + } + + install(): void { + this.logger().clear(); + this.app + .openDialog("FileDialog", { + title: "__(Select extension archive)", + mimes: [".*/zip"], + }) + .then(async (d) => { + try { + await this.installZip(d.file.path); + this.logger().info(__("Extension installed")); + return this.app.loadExtensionMetaData(); + } catch (e) { + return this.logger().error(__("Unable to install extension: {0}", e.stack)); + } + }); + } + + installFromURL(): void + { + this.logger().clear(); + this.app + .openDialog("PromptDialog", { + title: __("Enter URI"), + label: __("Please enter extension URI:") + }) + .then(async (v) => { + if(!v) return; + try { + await this.installZip(v); + this.logger().info(__("Extension installed")); + return this.app.loadExtensionMetaData(); + } catch (e) { + return this.app.error(__("Unable to install extension: {0}", v)); + } + + }); + } + + /** + * + * + * @private + * @param {string} path + * @param {string} name + * @memberof EditorExtensionMaker + */ + private mktpl(path: string, name: string): void { + const rpath = `${path}/${name}`; + const dirs = [ + rpath, + `${rpath}/build`, + `${rpath}/build/release`, + `${rpath}/build/debug`, + ]; + const files = [ + ["main.tpl", `${rpath}/${name}.js`], + ["meta.tpl", `${rpath}/extension.json`], + ]; + API.VFS.mkdirAll(dirs) + .then(async () => { + try { + await API.VFS.mktpl(files, this.basedir(), (data)=>{ + return data.format(name, `${path}/${name}`); + }); + this.app.currdir = rpath.asFileHandle(); + this.app.toggleSideBar(); + return this.app.eum.active.openFile( + `${rpath}/${name}.js`.asFileHandle() as application.EditorFileHandle + ); + } catch (e) { + return this.logger().error( + __("Unable to create extension template: {0}", + e.stack) + ); + } + }) + .catch((e) => + this.logger().error(__("Unable to create extension directories: {0}", e.stack)) + ); + } + + + /** + * + * + * @private + * @param {string} path + * @returns {Promise} + * @memberof EditorExtensionMaker + */ + private installZip(path: string): Promise { + return new Promise((resolve, reject) => { + API.requires("os://scripts/jszip.min.js") + .then(() => { + path.asFileHandle() + .read("binary") + .then((data) => { + JSZip.loadAsync(data) + .then((zip: any) => { + zip.file("extension.json").async("uint8array") + .then((d) =>{ + const meta = JSON.parse(new TextDecoder("utf-8").decode(d)); + const pth = this.ext_dir(meta.name); + const dir = [pth]; + const files = []; + for (let name in zip.files) { + const file = zip.files[name]; + if (file.dir) { + dir.push(pth + "/" + name); + } else if(name != "extension.json") { + files.push(name); + } + } + if (dir.length > 0) { + API.VFS.mkdirAll(dir) + .then(() => { + this.installFiles(files, zip, meta) + .then(() => resolve()) + .catch((e) => + reject(__e(e)) + ); + }) + .catch((e) => reject(__e(e))); + } else { + this.installFiles(files, zip, meta) + .then(() => resolve()) + .catch((e) => reject(__e(e))); + } + }) + .catch(e => reject(__e(e))); + }) + .catch((e: Error) => reject(__e(e))); + }) + .catch((e) => reject(__e(e))); + }) + .catch((e) => reject(__e(e))); + }); + } + + + private ext_dir(en: string): string + { + return `${this.app.meta().path}/extensions/${en}`; + } + + /** + * + * + * @private + * @param {string[]} files + * @param {*} zip + * @param {GenericObject} meta + * @returns {Promise} + * @memberof EditorExtensionMaker + */ + private installFiles( + files: string[], + zip: any, + meta: GenericObject + ): Promise { + if (files.length === 0) { + return this.installMeta(meta); + } + return new Promise((resolve, reject) => { + const file = files.splice(0, 1)[0]; + const path = `${this.ext_dir(meta.name)}/${file}`; + return zip + .file(file) + .async("uint8array") + .then((d: Uint8Array) => { + return path + .asFileHandle() + .setCache(new Blob([d], { type: "octet/stream" })) + .write("text/plain") + .then((r) => { + if (r.error) { + return reject(r.error); + } + return this.installFiles(files, zip, meta) + .then(() => resolve()) + .catch((e) => reject(__e(e))); + }) + .catch((e) => reject(__e(e))); + }) + .catch((e: Error) => reject(__e(e))); + }); + } + + /** + * + * + * @private + * @param {GenericObject} meta + * @returns {Promise} + * @memberof EditorExtensionMaker + */ + private installMeta(meta: GenericObject): Promise { + return new Promise(async (resolve, reject) => { + const file = `${this.ext_dir("")}/extensions.json`.asFileHandle(); + try { + const data = await file.read("json"); + const names = []; + for (let v of data) { + names.push(v.name); + } + const idx = names.indexOf(meta.name); + if (idx >= 0) { + data.splice(idx, 1); + } + data.push(meta); + try { + await file.setCache(data).write("object"); + return resolve(); + } catch (e) { + return reject(__e(e)); + } + } catch (e_1) { + // try to create new file + try { + await file.setCache([meta]).write("object"); + return resolve(); + } catch (e_2) { + return reject(__e(e_2)); + } + } + }); + } + } + OS.application.Antedit.extensions.EditorExtensionMaker = EditorExtensionMaker; +} diff --git a/Antedit/ts/MonacoEditorModel.ts b/Antedit/ts/MonacoEditorModel.ts new file mode 100644 index 0000000..1e6d54a --- /dev/null +++ b/Antedit/ts/MonacoEditorModel.ts @@ -0,0 +1,271 @@ +namespace OS { + export namespace application { + /** + * Wrapper model for the ACE text editor + * + * @export + * @class MonacoEditorModel + * @extends {BaseEditorModel} + */ + export class MonacoEditorModel extends BaseEditorModel { + + static modes: GenericObject; + + /** + * Creates an instance of MonacoEditorModel. + * @param {MonacoEditorModel} app MonacoEditorModel instance + * @param {GUI.tag.TabBarTag} tabbar tabbar element + * @param {HTMLElement} editorarea main editor container element + * @memberof MonacoEditorModel + */ + constructor(app: BaseApplication, tabbar: GUI.tag.TabBarTag, editorarea: HTMLElement) { + super(app, tabbar, editorarea); + } + + /** + * Reset the editor + * + * @protected + * @memberof MonacoEditorModel + */ + protected resetEditor(): void { + this.setValue(""); + // TODO create new textmodel + } + + + /** + * Get a text model from the current editor session + * + * @protected + * @return {*} + * @memberof MonacoEditorModel + */ + protected getTexModel() { + return { + model: this.editor.getModel(), + position: this.editor.getPosition() + } + } + + + /** + * Set text model to current editor session + * + * @protected + * @param {*} model + * @memberof MonacoEditorModel + */ + protected setTextModel(model: any): void { + this.editor.setModel(model.model); + if(model.position) + this.editor.setPosition(model.position); + } + + + /** + * Create new editor model from file + * + * @protected + * @param {EditorFileHandle} file + * @return {*} {*} + * @memberof MonacoEditorModel + */ + protected newTextModelFrom(file: EditorFileHandle): any { + if(file.path.toString() === "Untitled") { + return { + model: monaco.editor.createModel(file.cache, "textplain") + } + } + const uri = monaco.Uri.parse(file.path); + const model = monaco.editor.getModel(uri); + if(model) + { + return { model: model }; + } + return { + model: monaco.editor.createModel(file.cache, undefined, uri) + } + } + + /** + * Get language modes + * + * @return {*} {GenericObject[]} + * @memberof MonacoEditorModel + */ + getModes(): GenericObject[] { + //const list = []; + //return list; + return monaco.languages.getLanguages(); + } + + + /** + * Set the editor theme + * + * @param {string} theme theme name + * @memberof MonacoEditorModel + */ + setTheme(theme: string): void { + } + + + /** + * Set editor language mode + * + * The mode object should be in the following format: + * ```ts + * { + * text: string, + * mode: string + * } + * ``` + * + * @param {GenericObject} m language mode object + * @memberof MonacoEditorModel + */ + setMode(m: GenericObject): void { + } + + + + /** + * Reference to the editor instance + * + * @private + * @type {GenericObject} + * @memberof MonacoEditorModel + */ + private editor: GenericObject; + + + /** + * Setup the editor + * + * @protected + * @param {HTMLElement} el editor container DOM + * @memberof MonacoEditorModel + */ + protected editorSetup(el: HTMLElement): void { + this.editor = monaco.editor.create(el, { + value: "", + language: 'textplain' + }); + if(!MonacoEditorModel.modes) + { + MonacoEditorModel.modes = {}; + monaco.languages.getLanguages().forEach((el) =>{ + MonacoEditorModel.modes[el.id] = el; + }) + } + } + + + /** + * Register to editor event + * + * @param {string} evt_str event name + * @param {() => void} callback callback function + * @memberof MonacoEditorModel + */ + on(evt_str: string, callback: () => void): void { + switch (evt_str) { + case "input": + this.editor.onDidChangeModelContent(callback); + break; + case "focus": + this.editor.onDidFocusEditorText(callback); + break; + case "changeCursor": + this.editor.onDidChangeCursorPosition(callback); + break; + default: + break; + } + } + + + /** + * Resize the editor + * + * @memberof MonacoEditorModel + */ + resize(): void { + if(this.editor) + this.editor.layout(); + } + + + /** + * Focus on the editor + * + * @memberof MonacoEditorModel + */ + focus(): void { + if(this.editor) + this.editor.focus(); + } + + + /** + * Get language mode from path + * + * @protected + * @param {string} path + * @return {*} {GenericObject} + * @memberof MonacoEditorModel + */ + protected getModeForPath(path: string): GenericObject { + return {}; + } + + /** + * Get the editor status + * + * @return {*} {GenericObject} + * @memberof MonacoEditorModel + */ + getEditorStatus(): GenericObject { + const pos = this.editor.getPosition(); + const mode = MonacoEditorModel.modes[this.editor.getModel().getModeId()]; + return { + row: pos.lineNumber, + column: pos.column, + line: this.editor.getModel().getLineCount(), + langmode: { + text: mode.aliases[0], + mode: mode + }, + file: this.currfile.path + } + } + + + /** + * Get editor value + * + * @return {*} {string} + * @memberof MonacoEditorModel + */ + getValue(): string { + return this.editor.getValue(); + } + + + /** + * Set editor value + * + * @param {string} value + * @memberof MonacoEditorModel + */ + setValue(value: string): void { + this.editor.setValue(value); + } + + getEditor(): any { + return this.editor; + } + } + } +} \ No newline at end of file diff --git a/Antedit/ts/main.ts b/Antedit/ts/main.ts index aad92b9..ca1f8d4 100644 --- a/Antedit/ts/main.ts +++ b/Antedit/ts/main.ts @@ -1,19 +1,1117 @@ - namespace OS { - export namespace application { + + declare var require: any; + export type AnteditLogger = typeof Logger; /** + * A simple yet powerful code/text editor. * + * Antedit is the default text editor shipped with + * AntOS base system. It is based on the Monaco editor + * which power the VS Code IDE. + * + * @export * @class Antedit * @extends {BaseApplication} */ export class Antedit extends BaseApplication { + + static EditorBaseExtension: AnteditBaseExtension; + /** + * Reference to the editor manager instance + * + * @private + * @type {EditorModelManager} + * @memberof Antedit + */ + eum: EditorModelManager; + + /** + * Reference to the current working directory + * + * @type {API.VFS.BaseFileHandle} + * @memberof Antedit + */ + currdir: API.VFS.BaseFileHandle; + + /** + * Placeholder stores all extension actions loaded from + * extensions.json + * + * @type {GenericObject} + * @memberof Antedit + */ + extensions: GenericObject; + + /** + * Reference to the sidebar file view UI + * + * @private + * @type {GUI.tag.FileViewTag} + * @memberof Antedit + */ + private fileview: GUI.tag.FileViewTag; + + /** + * Reference to the sidebar + * + * @private + * @type {GUI.tag.VBoxTag} + * @memberof Antedit + */ + private sidebar: GUI.tag.VBoxTag; + + /** + * Reference to the bottom bar + * + * @private + * @type {GUI.tag.TabContainerTag} + * @memberof Antedit + */ + private bottombar: GUI.tag.TabContainerTag; + + + /** + * Reference to the language status bar + * + * @private + * @type {GUI.tag.LabelTag} + * @memberof Antedit + */ + private langstat: GUI.tag.LabelTag; + + /** + * Reference to the editor status bar + * + * @private + * @type {GUI.tag.LabelTag} + * @memberof Antedit + */ + private editorstat: GUI.tag.LabelTag; + + /** + * Reference to the file status bar + * + * @private + * @type {GUI.tag.LabelTag} + * @memberof Antedit + */ + private filestat: GUI.tag.LabelTag; + + + /** + * Is the split mode enabled + * + * @private + * @type {boolean} + * @memberof Antedit + */ + private split_mode: boolean; + + /** + * Reference to the editor logger + * + * @type {Logger} + * @memberof Antedit + */ + logger: Logger; + + /** + * Extension prototype definition will be stored + * in this class variable + * + * @static + * @type {GenericObject} + * @memberof Antedit + */ + static extensions: GenericObject; + + /** + * Prototype definition of a Logger + * + * @static + * @type {AnteditLogger} + * @memberof Antedit + */ + static Logger: AnteditLogger; + + /** + *Creates an instance of Antedit. + * @param {AppArgumentsType[]} args application arguments + * @memberof Antedit + */ constructor(args: AppArgumentsType[]) { super("Antedit", args); + this.currdir = undefined; } + + /** + * Main application entry point + * + * @returns {void} + * @memberof Antedit + */ main(): void { - // YOUR CODE HERE + this.extensions = {}; + this.eum = new EditorModelManager(); + this.fileview = this.find("fileview") as GUI.tag.FileViewTag; + this.sidebar = this.find("sidebar") as GUI.tag.VBoxTag; + this.bottombar = this.find("bottombar") as GUI.tag.TabContainerTag; + this.langstat = this.find("langstat") as GUI.tag.LabelTag; + this.editorstat = this.find("editorstat") as GUI.tag.LabelTag; + this.filestat = this.find("current-file-lbl") as GUI.tag.LabelTag; + this.logger = new Logger(this.find("output-tab")); + + this.split_mode = true; + + this.fileview.fetch = (path) => + new Promise(async function (resolve, reject) { + let dir: API.VFS.BaseFileHandle; + if (typeof path === "string") { + dir = path.asFileHandle(); + } else { + dir = path; + } + try { + const d = await dir + .read(); + if (d.error) { + return reject(d.error); + } + return resolve(d.result); + } catch (e) { + return reject(__e(e)); + } + }); + let file = "Untitled".asFileHandle() as EditorFileHandle; + if (this.args && this.args.length > 0) { + this.addRecent(this.args[0].path); + if (this.args[0].type === "dir") { + this.currdir = this.args[0].path.asFileHandle() as EditorFileHandle; + } else { + file = this.args[0].path.asFileHandle() as EditorFileHandle; + this.currdir = file.parent(); + } + } + if (!this.setting.recent) + this.setting.recent = []; + + const wrapper = this.find("wrapper"); + $(wrapper).css('visibility', 'hidden'); + + this.load(new Promise((resolve, reject) => { + require.config({ paths: { 'vs': "pkg://MonacoCore/vs".asFileHandle().getlink() }}); + require(['vs/editor/editor.main'], () => { + monaco.editor.setTheme("vs-dark"); + // add editor instance + this.eum + .add(new MonacoEditorModel( + this, + this.find("left-tabbar") as GUI.tag.TabBarTag, + this.find("left-editorarea")) as BaseEditorModel) + .add(new MonacoEditorModel( + this, + this.find("right-tabbar") as GUI.tag.TabBarTag, + this.find("right-editorarea")) as BaseEditorModel); + this.eum.onstatuschange = (st) => + this.updateStatus(st) + $(wrapper).css('visibility', 'visible'); + this.setup(); + this.eum.active.openFile(file); + resolve(undefined); + }); + })) + } + + /** + * Set up the text editor + * + * @private + * @returns {void} + * @memberof Antedit + */ + private setup(): void { + this.fileview.onfileopen = (e) => { + if (!e.data || !e.data.path) { + return; + } + if (e.data.type === "dir") { + return; + } + this.addRecent(e.data.path); + return this.eum.active.openFile( + e.data.path.asFileHandle() as EditorFileHandle + ); + }; + + this.fileview.onfileselect = (e) => { + if (!e.data || !e.data.path) { + return; + } + if (e.data.type === "dir") { + return; + } + this.eum.active.selectFile(e.data.path); + }; + + this.on("resize", () => this.eum.resize()); + this.on("focus", () => this.eum.active.focus()); + + this.fileview.contextmenuHandle = (e, m) => { + m.items = [ + { text: "__(New file)", id: "new" }, + { text: "__(New folder)", id: "newdir" }, + { text: "__(Rename)", id: "rename" }, + { text: "__(Delete)", id: "delete" }, + ]; + m.onmenuselect = (e) => { + return this.ctxFileMenuHandle(e); + }; + return m.show(e); + }; + + this.bindKey("ALT-N", () => this.menuAction("new")); + this.bindKey("ALT-O", () => this.menuAction("open")); + this.bindKey("ALT-F", () => this.menuAction("opendir")); + this.bindKey("CTRL-S", () => this.menuAction("save")); + this.bindKey("ALT-W", () => this.menuAction("saveas")); + + this.fileview.ondragndrop = (e) => { + const src = e.data.from.data.path.asFileHandle(); + const des = e.data.to.data.path; + return src + .move(`${des}/${src.basename}`) + .then(function (d: any) { + const p1 = des; + const p2 = src.parent().path; + if (p1.length < p2.length) { + e.data.to.update(p1); + (e.data + .from as GUI.tag.TreeViewTag).parent.update( + p2 + ); + } else { + (e.data + .from as GUI.tag.TreeViewTag).parent.update( + p2 + ); + e.data.to.update(p1); + } + }) + .catch((e: Error) => + this.error(__("Unable to move file/folder"), e) + ); + }; + + this.on("filechange", (data) => { + let { path } = data.file; + if (data.type === "file") { + ({ path } = data.file.parent()); + } + return this.fileview.update(path); + }); + + (this.find("logger-clear") as GUI.tag.ButtonTag).onbtclick = () => { + this.logger.clear() + } + + if (this.setting.showBottomBar === undefined) { + this.setting.showBottomBar = false; + } + + this.loadExtensionMetaData(); + this.toggleSideBar(); + this.toggleSplitMode(); + this.applyAllSetting(); + } + + /** + * Update the editor status bar + * + * @private + * @memberof Antedit + */ + private updateStatus(stat: GenericObject = undefined): void { + if (!stat) + stat = this.eum.active.getEditorStatus(); + this.editorstat.text = __( + "Row {0}, col {1}, lines: {2}", + stat.row , + stat.column, + stat.line + ); + if (stat.langmode) + this.langstat.text = stat.langmode.text; + this.filestat.text = stat.file + let win = this.scheme as GUI.tag.WindowTag; + if (win.apptitle != stat.file) + win.apptitle = stat.file; + } + + /** + * Show or hide the SideBar + * + * @memberof Antedit + */ + toggleSideBar(): void { + if (this.currdir) { + $(this.sidebar).show(); + this.fileview.path = this.currdir.path; + } else { + $(this.sidebar).hide(); + } + this.trigger("resize"); + } + + showOutput(toggle: boolean = false): void { + if (toggle) + this.showBottomBar(true); + this.bottombar.selectedIndex = 0; + } + + /** + * Apply [[showBottomBar]] from user setting value + * + * @protected + * @param {string} k + * @memberof Antedit + */ + protected applySetting(k: string): void { + if (k == "showBottomBar") { + this.showBottomBar(this.setting.showBottomBar); + } + } + + /** + * Show or hide the bottom bar and + * save the value to user setting + * + * @param {boolean} v + * @memberof Antedit + */ + public showBottomBar(v: boolean): void { + this.setting.showBottomBar = v; + if (v) { + $(this.bottombar).show(); + } + else { + $(this.bottombar).hide(); + } + this.trigger("resize"); + } + + /** + * toggle the bottom bar + * + * @memberof Antedit + */ + private toggleBottomBar(): void { + this.showBottomBar(!this.setting.showBottomBar); + } + + private toggleSplitMode(): void { + const right_pannel = this.find("right-panel"); + const right_editor = this.eum.editors[1]; + const left_editor = this.eum.editors[0]; + if (this.split_mode) { + // before hide check if there is dirty files + if (right_editor.isDirty()) { + this.notify(__("Unable to disable split view: Please save changes of modified files on the right panel")); + return; + } + right_editor.closeAll(); + $(right_pannel).hide(); + this.split_mode = false; + left_editor.focus(); + } + else { + $(right_pannel).show(); + this.split_mode = true; + right_editor.openFile("Untitled".asFileHandle() as EditorFileHandle); + right_editor.focus(); + } + this.trigger("resize"); + } + + /** + * File menu definition + * + * @private + * @returns {GUI.BasicItemType} + * @memberof Antedit + */ + private fileMenu(): GUI.BasicItemType { + const recent = this.setting.recent.map((i: string) => { + return { text: i }; + }); + return { + text: __("File"), + nodes: [ + { text: __("New"), dataid: "new", shortcut: "A-N" }, + { + text: __("Open Recent"), + dataid: "recent", + nodes: recent, + onchildselect: ( + e: GUI.TagEventType, + r: Antedit + ) => { + const handle = e.data.item.data.text.asFileHandle(); + handle.onready().then((meta: any) => { + if (!meta) { + return; + } + if (meta.type == "dir") { + this.currdir = handle; + this.toggleSideBar(); + } + else { + this.eum.active.openFile(handle); + } + }); + } + }, + { text: __("Open"), dataid: "open", shortcut: "A-O" }, + { + text: __("Open Folder"), + dataid: "opendir", + shortcut: "A-F", + }, + { text: __("Save"), dataid: "save", shortcut: "C-S" }, + { + text: __("Save as"), + dataid: "saveas", + shortcut: "A-W", + }, + ], + onchildselect: ( + e: GUI.TagEventType, + r: Antedit + ) => { + return this.menuAction(e.data.item.data.dataid, r); + }, + }; + } + + /** + * Context menu definition + * + * @private + * @param {GUI.TagEventType} e + * @returns {void} + * @memberof Antedit + */ + private ctxFileMenuHandle( + e: GUI.TagEventType + ): void { + const el = e.data.item as GUI.tag.MenuEntryTag; + if (!el) { + return; + } + const data = el.data; + if (!data) { + return; + } + let file: API.VFS.BaseFileHandle | API.FileInfoType = this + .fileview.selectedFile; + let dir = this.currdir; + if (file && file.type === "dir") { + dir = file.path.asFileHandle(); + } + if (file && file.type === "file") { + dir = file.path.asFileHandle().parent(); + } + + switch (data.id) { + case "new": + if (!dir) { + return; + } + this.openDialog("PromptDialog", { + title: "__(New file)", + label: "__(File name)", + }).then(async (d) => { + const fp = `${dir.path}/${d}`.asFileHandle(); + try { + const r = await fp.write("text/plain"); + return this.fileview.update(dir.path); + } catch (e) { + return this.error( + __("Fail to create: {0}", e.stack), + e + ); + } + }); + break; + + case "newdir": + if (!dir) { + return; + } + this.openDialog("PromptDialog", { + title: "__(New folder)", + label: "__(Folder name)", + }).then(async (d) => { + try { + const r = await dir.mk(d); + return this.fileview.update(dir.path); + } catch (e) { + return this.error( + __("Fail to create: {0}", dir.path), + e + ); + } + }); + break; + + case "rename": + if (!file) { + return; + } + this.openDialog("PromptDialog", { + title: "__(Rename)", + label: "__(File name)", + value: file.filename, + }).then(async (d) => { + if (d === file.filename) { + return; + } + file = file.path.asFileHandle(); + dir = file.parent(); + try { + const r = await file.move(`${dir.path}/${d}`); + return this.fileview.update(dir.path); + } catch (e) { + return this.error( + __("Fail to rename: {0}", file.path), + e + ); + } + }); + break; + + case "delete": + if (!file) { + return; + } + this.openDialog("YesNoDialog", { + title: "__(Delete)", + iconclass: "fa fa-question-circle", + text: __( + "Do you really want to delete: {0}?", + file.filename + ), + }).then(async (d) => { + if (!d) { + return; + } + file = file.path.asFileHandle(); + dir = file.parent(); + try { + const r = await file.remove(); + return this.fileview.update(dir.path); + } catch (e) { + return this.error( + __("Fail to delete: {0}", file.path), + e + ); + } + }); + break; + default: + } + } + + + /** + * Add a file to recent files setting + * + * @private + * @param {string} file + * @memberof Antedit + */ + private addRecent(file: string): void { + if (!this.setting.recent) + this.setting.recent = []; + if (this.setting.recent.includes(file)) { + return; + } + this.setting.recent.push(file); + if(this.setting.recent.length > 10) + this.setting.recent = this.setting.recent.slice(0, 10); + + } + + /** + * Menu action definition + * + * @private + * @param {string} dataid + * @param {Antedit} [r] + * @returns {void} + * @memberof Antedit + */ + private menuAction(dataid: string, r?: Antedit): any { + let me: Antedit = this; + if (r) { + me = r; + } + switch (dataid) { + case "new": + return me.eum.active.openFile("Untitled".asFileHandle() as EditorFileHandle); + case "open": + return me + .openDialog("FileDialog", { + title: __("Open file"), + mimes: Array.from(me.meta().mimes).filter( + (v) => v !== "dir" + ), + }) + .then((f: API.FileInfoType) => { + this.addRecent(f.file.path); + me.eum.active.openFile(f.file.path.asFileHandle()); + }); + case "opendir": + return me + .openDialog("FileDialog", { + title: __("Open folder"), + mimes: ["dir"], + }) + .then(function (f: API.FileInfoType) { + me.addRecent(f.file.path); + me.currdir = f.file.path.asFileHandle(); + return me.toggleSideBar(); + }); + case "save": + return me.eum.active.save(); + + case "saveas": + return me.eum.active.saveAs(); + default: + return console.log(dataid); + } + } + + /** + * Cleanup the editor before exiting. + * + * @param {BaseEvent} evt + * @returns {void} + * @memberof Antedit + */ + cleanup(evt: BaseEvent): void { + let v: GenericObject; + const dirties = this.eum.dirties(); + if (dirties.length === 0) { + // cleanup all extension + for (let k in this.extensions) { + if (this.extensions[k] && this.extensions[k].cleanup) { + this.extensions[k].cleanup(); + } + } + return; + } + evt.preventDefault(); + this.openDialog("YesNoDialog", { + title: "__(Quit)", + text: __( + "Ignore all unsaved files: {0} ?", + (() => { + const result1 = []; + for (v of Array.from(dirties)) { + result1.push(v.filename); + } + return result1; + })().join(", ") + ), + }).then((d) => { + if (d) { + for (v of Array.from(dirties)) { + v.dirty = false; + } + return this.quit(false); + } + }); + } + + /** + * Application menu definition + * + * @returns {GUI.BasicItemType[]} + * @memberof Antedit + */ + menu(): GUI.BasicItemType[] { + return [ + this.fileMenu(), + { + text: "__(View)", + nodes: [ + { + text: "__(Toggle bottom bar)", + dataid: "bottombar" + }, + { + text: "__(Toggle split view)", + dataid: "splitview" + } + ], + onchildselect: ( + e: GUI.TagEventType, + r: EditorFileHandle + ) => { + switch (e.data.item.data.dataid) { + case "bottombar": + return this.toggleBottomBar(); + + case "splitview": + return this.toggleSplitMode(); + break; + + default: + break; + } + r + }, + }, + ]; + } + + /** + * Load the extension meta data from `extension.json` file + * + * @memberof AntEdit + */ + loadExtensionMetaData(): void { + this.loadExtensionMetaFromFile(`${this.meta().path}/extensions/extensions.json`) + .catch((e) => { + return this.error( + __("Cannot load extension meta data"), + e + ); + }); + } + + /** + * Load extension meta-data from specific file + * + * @private + * @param {string} path + * @return {*} {Promise} + * @memberof AntEdit + */ + private loadExtensionMetaFromFile(path: string | API.VFS.BaseFileHandle): Promise { + return new Promise((resolve, reject) => { + path + .asFileHandle() + .read("json") + .then((d: GenericObject[]) => { + for (let extension of d) { + for(let act of extension.actions) + { + this.eum.addAction(extension, act, (e_name, a_name) => { + this.loadAndRunExtensionAction(e_name, a_name, extension.root); + }); + } + } + resolve(); + }) + .catch((e) => { + reject(__e(e)); + }); + }); + } + + /** + * Load extension then run an action + * + * @param name extension name + * @param action action name + * @memberof AntEdit + */ + loadAndRunExtensionAction(name: string, action: string, root?:string): void { + //verify if the extension is load + if (!Antedit.extensions[name]) { + //load the extension + let path = `${this.meta().path}/extensions/${name}/main.js`; + if (root) + path = `${root}/main.js`; + this._api + .requires(path, true) + .then(() => this.runExtensionAction(name, action)) + .catch((e) => { + return this.error( + __("unable to load extension: {0}", name), + e + ); + }); + } else { + this.runExtensionAction(name, action); + } + } + + /** + * Run an extension action from the command palette + * + * @private + * @param {string} name extension name + * @param {string} action action name + * @returns {void} + * @memberof AntEdit + */ + private runExtensionAction(name: string, action: string): void { + if (!this.extensions[name]) { + if (!Antedit.extensions[name]) { + return this.error( + __("Unable to find extension: {0}", name) + ); + } + this.extensions[name] = new Antedit.extensions[name](this); + } + + if (!this.extensions[name][action]) { + return this.error(__("Unable to find action: {0}", action)); + } + + this.extensions[name].preload() + .then(() => this.extensions[name][action]()) + .catch((e: Error) => { + return this.error(__("Unable to preload extension"), e); + }); } } + + /** + * Helper class to manager several instances + * of editor models + * + * @class EditorModelManager + */ + class EditorModelManager { + + /** + * Referent to the active editor model + * + * @private + * @type {BaseEditorModel} + * @memberof EditorModelManager + */ + private active_editor: BaseEditorModel; + + /** + * Store a list of editor models + * + * @private + * @type {BaseEditorModel[]} + * @memberof EditorModelManager + */ + private models: BaseEditorModel[]; + + /** + * Creates an instance of EditorModelManager. + * @memberof EditorModelManager + */ + constructor() { + this.active_editor = undefined; + this.models = []; + } + + get editors(): BaseEditorModel[] { + return this.models; + } + set contextmenuHandle(cb: (e: any, m: any) => void) { + for (let ed of this.models) { + ed.contextmenuHandle = cb; + } + } + + /** + * Get the active editor model + * + * @readonly + * @type {BaseEditorModel} + * @memberof EditorModelManager + */ + get active(): BaseEditorModel { + return this.active_editor; + } + + /** + * Add a model to the manager + * + * @param {BaseEditorModel} model + * @memberof EditorModelManager + */ + add(model: BaseEditorModel): EditorModelManager { + this.models.push(model); + if (!this.active_editor) + this.active_editor = model; + model.on("focus", () => { + this.active_editor = model; + }); + return this; + } + + addAction(extension: GenericObject, action: GenericObject, callback): void { + const ed_action = { + id: `${extension.name}:${action.name}`, + label: `${extension.text.__()}: ${action.text.__()}`, + /* + keybindings: [ + monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10, + // chord + monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_K, monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_M) + ]*/ + precondition: null, + keybindingContext: null, + + contextMenuGroupId: extension.name, + //contextMenuOrder: 1.5, + run: () => callback(extension.name, action.name) + }; + for(let ed of this.models) + { + const editor = ed.getEditor(); + if(!editor.getAction(ed_action.id)) + editor.addAction(ed_action); + } + } + + set onstatuschange(cb: (stat: GenericObject) => void) { + for (let ed of this.models) { + ed.onstatuschange = cb; + } + } + + dirties(): EditorFileHandle[] { + let list = []; + for (let ed of this.models) { + list = list.concat(ed.dirties()); + } + return list; + } + + /** + * Resize all editor + * + * @memberof EditorModelManager + */ + resize(): void { + for (let ed of this.models) { + ed.resize(); + } + } + } + /** + * This class handles log output to the Editor output container + * + * @class Logger + */ + class Logger { + + /** + * Referent to the log container + * + * @private + * @type {HTMLElement} + * @memberof Logger + */ + private target: HTMLElement; + + + /** + * Creates an instance of Logger. + * @param {HTMLElement} el target container + * @memberof Logger + */ + constructor(el: HTMLElement) { + this.target = el; + } + + /** + * Log level info + * + * @param {string|FormattedString} s + * @memberof Logger + */ + info(s: string | FormattedString): void { + this.log("info", s, true); + } + + /** + * Log level warning + * + * @param {string|FormattedString} s + * @memberof Logger + */ + warn(s: string | FormattedString): void { + this.log("warn", s, true); + } + + /** + * Log level error + * + * @param {string|FormattedString} s + * @memberof Logger + */ + error(s: string | FormattedString): void { + this.log("error", s, true); + } + + + /** + * Log a string to target container + * + * @private + * @param {string} c class name of the appended log element + * @param {string|FormattedString} s log string + * @param {boolean} showtime define whether the logger should insert datetime prefix + * in the log string + * @memberof Logger + */ + private log(c: string, s: string | FormattedString, showtime: boolean): void { + let el = $("
")
+                    .attr("class", `code-pad-log-${c}`);
+                if (showtime) {
+                    let date = new Date();
+                    let prefix = date.getDate() + "/"
+                        + (date.getMonth() + 1) + "/"
+                        + date.getFullYear() + " "
+                        + date.getHours() + ":"
+                        + date.getMinutes() + ":"
+                        + date.getSeconds();
+                    el.text(`[${prefix}]: ${s.__()}`);
+                }
+                else {
+                    el.text(s.__());
+                }
+                $(this.target).append(el);
+                $(this.target).scrollTop($(this.target)[0].scrollHeight);
+            }
+
+            /**
+             * Print a log message without prefix
+             *
+             * @param {string|FormattedString} s text to print
+             * @memberof Logger
+             */
+            print(s: string | FormattedString): void {
+                this.log("info", s, false);
+            }
+
+            /**
+             * Empty the log container
+             *
+             * @memberof Logger
+             */
+            clear(): void {
+                $(this.target).empty();
+            }
+        }
+
+        Antedit.Logger = Logger;
+        
+        Antedit.dependencies = [
+            "pkg://MonacoCore/vs/loader.js"
+        ];
     }
-}
\ No newline at end of file
+}
diff --git a/Antedit/ts/monaco.d.ts b/Antedit/ts/monaco.d.ts
new file mode 100644
index 0000000..e8b6a01
--- /dev/null
+++ b/Antedit/ts/monaco.d.ts
@@ -0,0 +1,7370 @@
+/*!-----------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Type definitions for monaco-editor
+ * Released under the MIT license
+*-----------------------------------------------------------*/
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+declare let MonacoEnvironment: monaco.Environment | undefined;
+
+declare namespace monaco {
+
+    export type Thenable = PromiseLike;
+
+    export interface Environment {
+        globalAPI?: boolean;
+        baseUrl?: string;
+        getWorker?(workerId: string, label: string): Worker;
+        getWorkerUrl?(workerId: string, label: string): string;
+    }
+
+    export interface IDisposable {
+        dispose(): void;
+    }
+
+    export interface IEvent {
+        (listener: (e: T) => any, thisArg?: any): IDisposable;
+    }
+
+    /**
+     * A helper that allows to emit and listen to typed events
+     */
+    export class Emitter {
+        constructor();
+        readonly event: IEvent;
+        fire(event: T): void;
+        dispose(): void;
+    }
+
+
+    export enum MarkerTag {
+        Unnecessary = 1,
+        Deprecated = 2
+    }
+
+    export enum MarkerSeverity {
+        Hint = 1,
+        Info = 2,
+        Warning = 4,
+        Error = 8
+    }
+
+    export class CancellationTokenSource {
+        constructor(parent?: CancellationToken);
+        get token(): CancellationToken;
+        cancel(): void;
+        dispose(cancel?: boolean): void;
+    }
+
+    export interface CancellationToken {
+        /**
+         * A flag signalling is cancellation has been requested.
+         */
+        readonly isCancellationRequested: boolean;
+        /**
+         * An event which fires when cancellation is requested. This event
+         * only ever fires `once` as cancellation can only happen once. Listeners
+         * that are registered after cancellation will be called (next event loop run),
+         * but also only once.
+         *
+         * @event
+         */
+        readonly onCancellationRequested: (listener: (e: any) => any, thisArgs?: any, disposables?: IDisposable[]) => IDisposable;
+    }
+    /**
+     * Uniform Resource Identifier (Uri) http://tools.ietf.org/html/rfc3986.
+     * This class is a simple parser which creates the basic component parts
+     * (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation
+     * and encoding.
+     *
+     * ```txt
+     *       foo://example.com:8042/over/there?name=ferret#nose
+     *       \_/   \______________/\_________/ \_________/ \__/
+     *        |           |            |            |        |
+     *     scheme     authority       path        query   fragment
+     *        |   _____________________|__
+     *       / \ /                        \
+     *       urn:example:animal:ferret:nose
+     * ```
+     */
+    export class Uri implements UriComponents {
+        static isUri(thing: any): thing is Uri;
+        /**
+         * scheme is the 'http' part of 'http://www.msft.com/some/path?query#fragment'.
+         * The part before the first colon.
+         */
+        readonly scheme: string;
+        /**
+         * authority is the 'www.msft.com' part of 'http://www.msft.com/some/path?query#fragment'.
+         * The part between the first double slashes and the next slash.
+         */
+        readonly authority: string;
+        /**
+         * path is the '/some/path' part of 'http://www.msft.com/some/path?query#fragment'.
+         */
+        readonly path: string;
+        /**
+         * query is the 'query' part of 'http://www.msft.com/some/path?query#fragment'.
+         */
+        readonly query: string;
+        /**
+         * fragment is the 'fragment' part of 'http://www.msft.com/some/path?query#fragment'.
+         */
+        readonly fragment: string;
+        /**
+         * Returns a string representing the corresponding file system path of this Uri.
+         * Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the
+         * platform specific path separator.
+         *
+         * * Will *not* validate the path for invalid characters and semantics.
+         * * Will *not* look at the scheme of this Uri.
+         * * The result shall *not* be used for display purposes but for accessing a file on disk.
+         *
+         *
+         * The *difference* to `Uri#path` is the use of the platform specific separator and the handling
+         * of UNC paths. See the below sample of a file-uri with an authority (UNC path).
+         *
+         * ```ts
+            const u = Uri.parse('file://server/c$/folder/file.txt')
+            u.authority === 'server'
+            u.path === '/shares/c$/file.txt'
+            u.fsPath === '\\server\c$\folder\file.txt'
+        ```
+         *
+         * Using `Uri#path` to read a file (using fs-apis) would not be enough because parts of the path,
+         * namely the server name, would be missing. Therefore `Uri#fsPath` exists - it's sugar to ease working
+         * with URIs that represent files on disk (`file` scheme).
+         */
+        get fsPath(): string;
+        with(change: {
+            scheme?: string;
+            authority?: string | null;
+            path?: string | null;
+            query?: string | null;
+            fragment?: string | null;
+        }): Uri;
+        /**
+         * Creates a new Uri from a string, e.g. `http://www.msft.com/some/path`,
+         * `file:///usr/home`, or `scheme:with/path`.
+         *
+         * @param value A string which represents an Uri (see `Uri#toString`).
+         */
+        static parse(value: string, _strict?: boolean): Uri;
+        /**
+         * Creates a new Uri from a file system path, e.g. `c:\my\files`,
+         * `/usr/home`, or `\\server\share\some\path`.
+         *
+         * The *difference* between `Uri#parse` and `Uri#file` is that the latter treats the argument
+         * as path, not as stringified-uri. E.g. `Uri.file(path)` is **not the same as**
+         * `Uri.parse('file://' + path)` because the path might contain characters that are
+         * interpreted (# and ?). See the following sample:
+         * ```ts
+        const good = Uri.file('/coding/c#/project1');
+        good.scheme === 'file';
+        good.path === '/coding/c#/project1';
+        good.fragment === '';
+        const bad = Uri.parse('file://' + '/coding/c#/project1');
+        bad.scheme === 'file';
+        bad.path === '/coding/c'; // path is now broken
+        bad.fragment === '/project1';
+        ```
+         *
+         * @param path A file system path (see `Uri#fsPath`)
+         */
+        static file(path: string): Uri;
+        static from(components: {
+            scheme: string;
+            authority?: string;
+            path?: string;
+            query?: string;
+            fragment?: string;
+        }): Uri;
+        /**
+         * Join a Uri path with path fragments and normalizes the resulting path.
+         *
+         * @param uri The input Uri.
+         * @param pathFragment The path fragment to add to the Uri path.
+         * @returns The resulting Uri.
+         */
+        static joinPath(uri: Uri, ...pathFragment: string[]): Uri;
+        /**
+         * Creates a string representation for this Uri. It's guaranteed that calling
+         * `Uri.parse` with the result of this function creates an Uri which is equal
+         * to this Uri.
+         *
+         * * The result shall *not* be used for display purposes but for externalization or transport.
+         * * The result will be encoded using the percentage encoding and encoding happens mostly
+         * ignore the scheme-specific encoding rules.
+         *
+         * @param skipEncoding Do not encode the result, default is `false`
+         */
+        toString(skipEncoding?: boolean): string;
+        toJSON(): UriComponents;
+        static revive(data: UriComponents | Uri): Uri;
+        static revive(data: UriComponents | Uri | undefined): Uri | undefined;
+        static revive(data: UriComponents | Uri | null): Uri | null;
+        static revive(data: UriComponents | Uri | undefined | null): Uri | undefined | null;
+    }
+
+    export interface UriComponents {
+        scheme: string;
+        authority: string;
+        path: string;
+        query: string;
+        fragment: string;
+    }
+
+    /**
+     * Virtual Key Codes, the value does not hold any inherent meaning.
+     * Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
+     * But these are "more general", as they should work across browsers & OS`s.
+     */
+    export enum KeyCode {
+        /**
+         * Placed first to cover the 0 value of the enum.
+         */
+        Unknown = 0,
+        Backspace = 1,
+        Tab = 2,
+        Enter = 3,
+        Shift = 4,
+        Ctrl = 5,
+        Alt = 6,
+        PauseBreak = 7,
+        CapsLock = 8,
+        Escape = 9,
+        Space = 10,
+        PageUp = 11,
+        PageDown = 12,
+        End = 13,
+        Home = 14,
+        LeftArrow = 15,
+        UpArrow = 16,
+        RightArrow = 17,
+        DownArrow = 18,
+        Insert = 19,
+        Delete = 20,
+        KEY_0 = 21,
+        KEY_1 = 22,
+        KEY_2 = 23,
+        KEY_3 = 24,
+        KEY_4 = 25,
+        KEY_5 = 26,
+        KEY_6 = 27,
+        KEY_7 = 28,
+        KEY_8 = 29,
+        KEY_9 = 30,
+        KEY_A = 31,
+        KEY_B = 32,
+        KEY_C = 33,
+        KEY_D = 34,
+        KEY_E = 35,
+        KEY_F = 36,
+        KEY_G = 37,
+        KEY_H = 38,
+        KEY_I = 39,
+        KEY_J = 40,
+        KEY_K = 41,
+        KEY_L = 42,
+        KEY_M = 43,
+        KEY_N = 44,
+        KEY_O = 45,
+        KEY_P = 46,
+        KEY_Q = 47,
+        KEY_R = 48,
+        KEY_S = 49,
+        KEY_T = 50,
+        KEY_U = 51,
+        KEY_V = 52,
+        KEY_W = 53,
+        KEY_X = 54,
+        KEY_Y = 55,
+        KEY_Z = 56,
+        Meta = 57,
+        ContextMenu = 58,
+        F1 = 59,
+        F2 = 60,
+        F3 = 61,
+        F4 = 62,
+        F5 = 63,
+        F6 = 64,
+        F7 = 65,
+        F8 = 66,
+        F9 = 67,
+        F10 = 68,
+        F11 = 69,
+        F12 = 70,
+        F13 = 71,
+        F14 = 72,
+        F15 = 73,
+        F16 = 74,
+        F17 = 75,
+        F18 = 76,
+        F19 = 77,
+        NumLock = 78,
+        ScrollLock = 79,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the ';:' key
+         */
+        US_SEMICOLON = 80,
+        /**
+         * For any country/region, the '+' key
+         * For the US standard keyboard, the '=+' key
+         */
+        US_EQUAL = 81,
+        /**
+         * For any country/region, the ',' key
+         * For the US standard keyboard, the ',<' key
+         */
+        US_COMMA = 82,
+        /**
+         * For any country/region, the '-' key
+         * For the US standard keyboard, the '-_' key
+         */
+        US_MINUS = 83,
+        /**
+         * For any country/region, the '.' key
+         * For the US standard keyboard, the '.>' key
+         */
+        US_DOT = 84,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the '/?' key
+         */
+        US_SLASH = 85,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the '`~' key
+         */
+        US_BACKTICK = 86,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the '[{' key
+         */
+        US_OPEN_SQUARE_BRACKET = 87,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the '\|' key
+         */
+        US_BACKSLASH = 88,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the ']}' key
+         */
+        US_CLOSE_SQUARE_BRACKET = 89,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         * For the US standard keyboard, the ''"' key
+         */
+        US_QUOTE = 90,
+        /**
+         * Used for miscellaneous characters; it can vary by keyboard.
+         */
+        OEM_8 = 91,
+        /**
+         * Either the angle bracket key or the backslash key on the RT 102-key keyboard.
+         */
+        OEM_102 = 92,
+        NUMPAD_0 = 93,
+        NUMPAD_1 = 94,
+        NUMPAD_2 = 95,
+        NUMPAD_3 = 96,
+        NUMPAD_4 = 97,
+        NUMPAD_5 = 98,
+        NUMPAD_6 = 99,
+        NUMPAD_7 = 100,
+        NUMPAD_8 = 101,
+        NUMPAD_9 = 102,
+        NUMPAD_MULTIPLY = 103,
+        NUMPAD_ADD = 104,
+        NUMPAD_SEPARATOR = 105,
+        NUMPAD_SUBTRACT = 106,
+        NUMPAD_DECIMAL = 107,
+        NUMPAD_DIVIDE = 108,
+        /**
+         * Cover all key codes when IME is processing input.
+         */
+        KEY_IN_COMPOSITION = 109,
+        ABNT_C1 = 110,
+        ABNT_C2 = 111,
+        /**
+         * Placed last to cover the length of the enum.
+         * Please do not depend on this value!
+         */
+        MAX_VALUE = 112
+    }
+    export class KeyMod {
+        static readonly CtrlCmd: number;
+        static readonly Shift: number;
+        static readonly Alt: number;
+        static readonly WinCtrl: number;
+        static chord(firstPart: number, secondPart: number): number;
+    }
+
+    export interface IMarkdownString {
+        readonly value: string;
+        readonly isTrusted?: boolean;
+        readonly supportThemeIcons?: boolean;
+        uris?: {
+            [href: string]: UriComponents;
+        };
+    }
+
+    export interface IKeyboardEvent {
+        readonly _standardKeyboardEventBrand: true;
+        readonly browserEvent: KeyboardEvent;
+        readonly target: HTMLElement;
+        readonly ctrlKey: boolean;
+        readonly shiftKey: boolean;
+        readonly altKey: boolean;
+        readonly metaKey: boolean;
+        readonly keyCode: KeyCode;
+        readonly code: string;
+        equals(keybinding: number): boolean;
+        preventDefault(): void;
+        stopPropagation(): void;
+    }
+    export interface IMouseEvent {
+        readonly browserEvent: MouseEvent;
+        readonly leftButton: boolean;
+        readonly middleButton: boolean;
+        readonly rightButton: boolean;
+        readonly buttons: number;
+        readonly target: HTMLElement;
+        readonly detail: number;
+        readonly posx: number;
+        readonly posy: number;
+        readonly ctrlKey: boolean;
+        readonly shiftKey: boolean;
+        readonly altKey: boolean;
+        readonly metaKey: boolean;
+        readonly timestamp: number;
+        preventDefault(): void;
+        stopPropagation(): void;
+    }
+
+    export interface IScrollEvent {
+        readonly scrollTop: number;
+        readonly scrollLeft: number;
+        readonly scrollWidth: number;
+        readonly scrollHeight: number;
+        readonly scrollTopChanged: boolean;
+        readonly scrollLeftChanged: boolean;
+        readonly scrollWidthChanged: boolean;
+        readonly scrollHeightChanged: boolean;
+    }
+    /**
+     * A position in the editor. This interface is suitable for serialization.
+     */
+    export interface IPosition {
+        /**
+         * line number (starts at 1)
+         */
+        readonly lineNumber: number;
+        /**
+         * column (the first character in a line is between column 1 and column 2)
+         */
+        readonly column: number;
+    }
+
+    /**
+     * A position in the editor.
+     */
+    export class Position {
+        /**
+         * line number (starts at 1)
+         */
+        readonly lineNumber: number;
+        /**
+         * column (the first character in a line is between column 1 and column 2)
+         */
+        readonly column: number;
+        constructor(lineNumber: number, column: number);
+        /**
+         * Create a new position from this position.
+         *
+         * @param newLineNumber new line number
+         * @param newColumn new column
+         */
+        with(newLineNumber?: number, newColumn?: number): Position;
+        /**
+         * Derive a new position from this position.
+         *
+         * @param deltaLineNumber line number delta
+         * @param deltaColumn column delta
+         */
+        delta(deltaLineNumber?: number, deltaColumn?: number): Position;
+        /**
+         * Test if this position equals other position
+         */
+        equals(other: IPosition): boolean;
+        /**
+         * Test if position `a` equals position `b`
+         */
+        static equals(a: IPosition | null, b: IPosition | null): boolean;
+        /**
+         * Test if this position is before other position.
+         * If the two positions are equal, the result will be false.
+         */
+        isBefore(other: IPosition): boolean;
+        /**
+         * Test if position `a` is before position `b`.
+         * If the two positions are equal, the result will be false.
+         */
+        static isBefore(a: IPosition, b: IPosition): boolean;
+        /**
+         * Test if this position is before other position.
+         * If the two positions are equal, the result will be true.
+         */
+        isBeforeOrEqual(other: IPosition): boolean;
+        /**
+         * Test if position `a` is before position `b`.
+         * If the two positions are equal, the result will be true.
+         */
+        static isBeforeOrEqual(a: IPosition, b: IPosition): boolean;
+        /**
+         * A function that compares positions, useful for sorting
+         */
+        static compare(a: IPosition, b: IPosition): number;
+        /**
+         * Clone this position.
+         */
+        clone(): Position;
+        /**
+         * Convert to a human-readable representation.
+         */
+        toString(): string;
+        /**
+         * Create a `Position` from an `IPosition`.
+         */
+        static lift(pos: IPosition): Position;
+        /**
+         * Test if `obj` is an `IPosition`.
+         */
+        static isIPosition(obj: any): obj is IPosition;
+    }
+
+    /**
+     * A range in the editor. This interface is suitable for serialization.
+     */
+    export interface IRange {
+        /**
+         * Line number on which the range starts (starts at 1).
+         */
+        readonly startLineNumber: number;
+        /**
+         * Column on which the range starts in line `startLineNumber` (starts at 1).
+         */
+        readonly startColumn: number;
+        /**
+         * Line number on which the range ends.
+         */
+        readonly endLineNumber: number;
+        /**
+         * Column on which the range ends in line `endLineNumber`.
+         */
+        readonly endColumn: number;
+    }
+
+    /**
+     * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)
+     */
+    export class Range {
+        /**
+         * Line number on which the range starts (starts at 1).
+         */
+        readonly startLineNumber: number;
+        /**
+         * Column on which the range starts in line `startLineNumber` (starts at 1).
+         */
+        readonly startColumn: number;
+        /**
+         * Line number on which the range ends.
+         */
+        readonly endLineNumber: number;
+        /**
+         * Column on which the range ends in line `endLineNumber`.
+         */
+        readonly endColumn: number;
+        constructor(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number);
+        /**
+         * Test if this range is empty.
+         */
+        isEmpty(): boolean;
+        /**
+         * Test if `range` is empty.
+         */
+        static isEmpty(range: IRange): boolean;
+        /**
+         * Test if position is in this range. If the position is at the edges, will return true.
+         */
+        containsPosition(position: IPosition): boolean;
+        /**
+         * Test if `position` is in `range`. If the position is at the edges, will return true.
+         */
+        static containsPosition(range: IRange, position: IPosition): boolean;
+        /**
+         * Test if range is in this range. If the range is equal to this range, will return true.
+         */
+        containsRange(range: IRange): boolean;
+        /**
+         * Test if `otherRange` is in `range`. If the ranges are equal, will return true.
+         */
+        static containsRange(range: IRange, otherRange: IRange): boolean;
+        /**
+         * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true.
+         */
+        strictContainsRange(range: IRange): boolean;
+        /**
+         * Test if `otherRange` is strinctly in `range` (must start after, and end before). If the ranges are equal, will return false.
+         */
+        static strictContainsRange(range: IRange, otherRange: IRange): boolean;
+        /**
+         * A reunion of the two ranges.
+         * The smallest position will be used as the start point, and the largest one as the end point.
+         */
+        plusRange(range: IRange): Range;
+        /**
+         * A reunion of the two ranges.
+         * The smallest position will be used as the start point, and the largest one as the end point.
+         */
+        static plusRange(a: IRange, b: IRange): Range;
+        /**
+         * A intersection of the two ranges.
+         */
+        intersectRanges(range: IRange): Range | null;
+        /**
+         * A intersection of the two ranges.
+         */
+        static intersectRanges(a: IRange, b: IRange): Range | null;
+        /**
+         * Test if this range equals other.
+         */
+        equalsRange(other: IRange | null): boolean;
+        /**
+         * Test if range `a` equals `b`.
+         */
+        static equalsRange(a: IRange | null, b: IRange | null): boolean;
+        /**
+         * Return the end position (which will be after or equal to the start position)
+         */
+        getEndPosition(): Position;
+        /**
+         * Return the end position (which will be after or equal to the start position)
+         */
+        static getEndPosition(range: IRange): Position;
+        /**
+         * Return the start position (which will be before or equal to the end position)
+         */
+        getStartPosition(): Position;
+        /**
+         * Return the start position (which will be before or equal to the end position)
+         */
+        static getStartPosition(range: IRange): Position;
+        /**
+         * Transform to a user presentable string representation.
+         */
+        toString(): string;
+        /**
+         * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.
+         */
+        setEndPosition(endLineNumber: number, endColumn: number): Range;
+        /**
+         * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.
+         */
+        setStartPosition(startLineNumber: number, startColumn: number): Range;
+        /**
+         * Create a new empty range using this range's start position.
+         */
+        collapseToStart(): Range;
+        /**
+         * Create a new empty range using this range's start position.
+         */
+        static collapseToStart(range: IRange): Range;
+        static fromPositions(start: IPosition, end?: IPosition): Range;
+        /**
+         * Create a `Range` from an `IRange`.
+         */
+        static lift(range: undefined | null): null;
+        static lift(range: IRange): Range;
+        /**
+         * Test if `obj` is an `IRange`.
+         */
+        static isIRange(obj: any): obj is IRange;
+        /**
+         * Test if the two ranges are touching in any way.
+         */
+        static areIntersectingOrTouching(a: IRange, b: IRange): boolean;
+        /**
+         * Test if the two ranges are intersecting. If the ranges are touching it returns true.
+         */
+        static areIntersecting(a: IRange, b: IRange): boolean;
+        /**
+         * A function that compares ranges, useful for sorting ranges
+         * It will first compare ranges on the startPosition and then on the endPosition
+         */
+        static compareRangesUsingStarts(a: IRange | null | undefined, b: IRange | null | undefined): number;
+        /**
+         * A function that compares ranges, useful for sorting ranges
+         * It will first compare ranges on the endPosition and then on the startPosition
+         */
+        static compareRangesUsingEnds(a: IRange, b: IRange): number;
+        /**
+         * Test if the range spans multiple lines.
+         */
+        static spansMultipleLines(range: IRange): boolean;
+    }
+
+    /**
+     * A selection in the editor.
+     * The selection is a range that has an orientation.
+     */
+    export interface ISelection {
+        /**
+         * The line number on which the selection has started.
+         */
+        readonly selectionStartLineNumber: number;
+        /**
+         * The column on `selectionStartLineNumber` where the selection has started.
+         */
+        readonly selectionStartColumn: number;
+        /**
+         * The line number on which the selection has ended.
+         */
+        readonly positionLineNumber: number;
+        /**
+         * The column on `positionLineNumber` where the selection has ended.
+         */
+        readonly positionColumn: number;
+    }
+
+    /**
+     * A selection in the editor.
+     * The selection is a range that has an orientation.
+     */
+    export class Selection extends Range {
+        /**
+         * The line number on which the selection has started.
+         */
+        readonly selectionStartLineNumber: number;
+        /**
+         * The column on `selectionStartLineNumber` where the selection has started.
+         */
+        readonly selectionStartColumn: number;
+        /**
+         * The line number on which the selection has ended.
+         */
+        readonly positionLineNumber: number;
+        /**
+         * The column on `positionLineNumber` where the selection has ended.
+         */
+        readonly positionColumn: number;
+        constructor(selectionStartLineNumber: number, selectionStartColumn: number, positionLineNumber: number, positionColumn: number);
+        /**
+         * Transform to a human-readable representation.
+         */
+        toString(): string;
+        /**
+         * Test if equals other selection.
+         */
+        equalsSelection(other: ISelection): boolean;
+        /**
+         * Test if the two selections are equal.
+         */
+        static selectionsEqual(a: ISelection, b: ISelection): boolean;
+        /**
+         * Get directions (LTR or RTL).
+         */
+        getDirection(): SelectionDirection;
+        /**
+         * Create a new selection with a different `positionLineNumber` and `positionColumn`.
+         */
+        setEndPosition(endLineNumber: number, endColumn: number): Selection;
+        /**
+         * Get the position at `positionLineNumber` and `positionColumn`.
+         */
+        getPosition(): Position;
+        /**
+         * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.
+         */
+        setStartPosition(startLineNumber: number, startColumn: number): Selection;
+        /**
+         * Create a `Selection` from one or two positions
+         */
+        static fromPositions(start: IPosition, end?: IPosition): Selection;
+        /**
+         * Create a `Selection` from an `ISelection`.
+         */
+        static liftSelection(sel: ISelection): Selection;
+        /**
+         * `a` equals `b`.
+         */
+        static selectionsArrEqual(a: ISelection[], b: ISelection[]): boolean;
+        /**
+         * Test if `obj` is an `ISelection`.
+         */
+        static isISelection(obj: any): obj is ISelection;
+        /**
+         * Create with a direction.
+         */
+        static createWithDirection(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number, direction: SelectionDirection): Selection;
+    }
+
+    /**
+     * The direction of a selection.
+     */
+    export enum SelectionDirection {
+        /**
+         * The selection starts above where it ends.
+         */
+        LTR = 0,
+        /**
+         * The selection starts below where it ends.
+         */
+        RTL = 1
+    }
+
+    export class Token {
+        _tokenBrand: void;
+        readonly offset: number;
+        readonly type: string;
+        readonly language: string;
+        constructor(offset: number, type: string, language: string);
+        toString(): string;
+    }
+}
+
+declare namespace monaco.editor {
+
+    export interface IDiffNavigator {
+        canNavigate(): boolean;
+        next(): void;
+        previous(): void;
+        dispose(): void;
+    }
+
+    /**
+     * Create a new editor under `domElement`.
+     * `domElement` should be empty (not contain other dom nodes).
+     * The editor will read the size of `domElement`.
+     */
+    export function create(domElement: HTMLElement, options?: IStandaloneEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneCodeEditor;
+
+    /**
+     * Emitted when an editor is created.
+     * Creating a diff editor might cause this listener to be invoked with the two editors.
+     * @event
+     */
+    export function onDidCreateEditor(listener: (codeEditor: ICodeEditor) => void): IDisposable;
+
+    /**
+     * Create a new diff editor under `domElement`.
+     * `domElement` should be empty (not contain other dom nodes).
+     * The editor will read the size of `domElement`.
+     */
+    export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
+
+    export interface IDiffNavigatorOptions {
+        readonly followsCaret?: boolean;
+        readonly ignoreCharChanges?: boolean;
+        readonly alwaysRevealFirst?: boolean;
+    }
+
+    export function createDiffNavigator(diffEditor: IStandaloneDiffEditor, opts?: IDiffNavigatorOptions): IDiffNavigator;
+
+    /**
+     * Create a new editor model.
+     * You can specify the language that should be set for this model or let the language be inferred from the `uri`.
+     */
+    export function createModel(value: string, language?: string, uri?: Uri): ITextModel;
+
+    /**
+     * Change the language for a model.
+     */
+    export function setModelLanguage(model: ITextModel, languageId: string): void;
+
+    /**
+     * Set the markers for a model.
+     */
+    export function setModelMarkers(model: ITextModel, owner: string, markers: IMarkerData[]): void;
+
+    /**
+     * Get markers for owner and/or resource
+     *
+     * @returns list of markers
+     */
+    export function getModelMarkers(filter: {
+        owner?: string;
+        resource?: Uri;
+        take?: number;
+    }): IMarker[];
+
+    /**
+     * Emitted when markers change for a model.
+     * @event
+     */
+    export function onDidChangeMarkers(listener: (e: readonly Uri[]) => void): IDisposable;
+
+    /**
+     * Get the model that has `uri` if it exists.
+     */
+    export function getModel(uri: Uri): ITextModel | null;
+
+    /**
+     * Get all the created models.
+     */
+    export function getModels(): ITextModel[];
+
+    /**
+     * Emitted when a model is created.
+     * @event
+     */
+    export function onDidCreateModel(listener: (model: ITextModel) => void): IDisposable;
+
+    /**
+     * Emitted right before a model is disposed.
+     * @event
+     */
+    export function onWillDisposeModel(listener: (model: ITextModel) => void): IDisposable;
+
+    /**
+     * Emitted when a different language is set to a model.
+     * @event
+     */
+    export function onDidChangeModelLanguage(listener: (e: {
+        readonly model: ITextModel;
+        readonly oldLanguage: string;
+    }) => void): IDisposable;
+
+    /**
+     * Create a new web worker that has model syncing capabilities built in.
+     * Specify an AMD module to load that will `create` an object that will be proxied.
+     */
+    export function createWebWorker(opts: IWebWorkerOptions): MonacoWebWorker;
+
+    /**
+     * Colorize the contents of `domNode` using attribute `data-lang`.
+     */
+    export function colorizeElement(domNode: HTMLElement, options: IColorizerElementOptions): Promise;
+
+    /**
+     * Colorize `text` using language `languageId`.
+     */
+    export function colorize(text: string, languageId: string, options: IColorizerOptions): Promise;
+
+    /**
+     * Colorize a line in a model.
+     */
+    export function colorizeModelLine(model: ITextModel, lineNumber: number, tabSize?: number): string;
+
+    /**
+     * Tokenize `text` using language `languageId`
+     */
+    export function tokenize(text: string, languageId: string): Token[][];
+
+    /**
+     * Define a new theme or update an existing theme.
+     */
+    export function defineTheme(themeName: string, themeData: IStandaloneThemeData): void;
+
+    /**
+     * Switches to a theme.
+     */
+    export function setTheme(themeName: string): void;
+
+    /**
+     * Clears all cached font measurements and triggers re-measurement.
+     */
+    export function remeasureFonts(): void;
+
+    /**
+     * Register a command.
+     */
+    export function registerCommand(id: string, handler: (accessor: any, ...args: any[]) => void): IDisposable;
+
+    export type BuiltinTheme = 'vs' | 'vs-dark' | 'hc-black';
+
+    export interface IStandaloneThemeData {
+        base: BuiltinTheme;
+        inherit: boolean;
+        rules: ITokenThemeRule[];
+        encodedTokensColors?: string[];
+        colors: IColors;
+    }
+
+    export type IColors = {
+        [colorId: string]: string;
+    };
+
+    export interface ITokenThemeRule {
+        token: string;
+        foreground?: string;
+        background?: string;
+        fontStyle?: string;
+    }
+
+    /**
+     * A web worker that can provide a proxy to an arbitrary file.
+     */
+    export interface MonacoWebWorker {
+        /**
+         * Terminate the web worker, thus invalidating the returned proxy.
+         */
+        dispose(): void;
+        /**
+         * Get a proxy to the arbitrary loaded code.
+         */
+        getProxy(): Promise;
+        /**
+         * Synchronize (send) the models at `resources` to the web worker,
+         * making them available in the monaco.worker.getMirrorModels().
+         */
+        withSyncedResources(resources: Uri[]): Promise;
+    }
+
+    export interface IWebWorkerOptions {
+        /**
+         * The AMD moduleId to load.
+         * It should export a function `create` that should return the exported proxy.
+         */
+        moduleId: string;
+        /**
+         * The data to send over when calling create on the module.
+         */
+        createData?: any;
+        /**
+         * A label to be used to identify the web worker for debugging purposes.
+         */
+        label?: string;
+        /**
+         * An object that can be used by the web worker to make calls back to the main thread.
+         */
+        host?: any;
+        /**
+         * Keep idle models.
+         * Defaults to false, which means that idle models will stop syncing after a while.
+         */
+        keepIdleModels?: boolean;
+    }
+
+    /**
+     * Description of an action contribution
+     */
+    export interface IActionDescriptor {
+        /**
+         * An unique identifier of the contributed action.
+         */
+        id: string;
+        /**
+         * A label of the action that will be presented to the user.
+         */
+        label: string;
+        /**
+         * Precondition rule.
+         */
+        precondition?: string;
+        /**
+         * An array of keybindings for the action.
+         */
+        keybindings?: number[];
+        /**
+         * The keybinding rule (condition on top of precondition).
+         */
+        keybindingContext?: string;
+        /**
+         * Control if the action should show up in the context menu and where.
+         * The context menu of the editor has these default:
+         *   navigation - The navigation group comes first in all cases.
+         *   1_modification - This group comes next and contains commands that modify your code.
+         *   9_cutcopypaste - The last default group with the basic editing commands.
+         * You can also create your own group.
+         * Defaults to null (don't show in context menu).
+         */
+        contextMenuGroupId?: string;
+        /**
+         * Control the order in the context menu group.
+         */
+        contextMenuOrder?: number;
+        /**
+         * Method that will be executed when the action is triggered.
+         * @param editor The editor instance is passed in as a convenience
+         */
+        run(editor: ICodeEditor, ...args: any[]): void | Promise;
+    }
+
+    /**
+     * Options which apply for all editors.
+     */
+    export interface IGlobalEditorOptions {
+        /**
+         * The number of spaces a tab is equal to.
+         * This setting is overridden based on the file contents when `detectIndentation` is on.
+         * Defaults to 4.
+         */
+        tabSize?: number;
+        /**
+         * Insert spaces when pressing `Tab`.
+         * This setting is overridden based on the file contents when `detectIndentation` is on.
+         * Defaults to true.
+         */
+        insertSpaces?: boolean;
+        /**
+         * Controls whether `tabSize` and `insertSpaces` will be automatically detected when a file is opened based on the file contents.
+         * Defaults to true.
+         */
+        detectIndentation?: boolean;
+        /**
+         * Remove trailing auto inserted whitespace.
+         * Defaults to true.
+         */
+        trimAutoWhitespace?: boolean;
+        /**
+         * Special handling for large files to disable certain memory intensive features.
+         * Defaults to true.
+         */
+        largeFileOptimizations?: boolean;
+        /**
+         * Controls whether completions should be computed based on words in the document.
+         * Defaults to true.
+         */
+        wordBasedSuggestions?: boolean;
+        /**
+         * Controls whether word based completions should be included from opened documents of the same language or any language.
+         */
+        wordBasedSuggestionsOnlySameLanguage?: boolean;
+        /**
+         * Controls whether the semanticHighlighting is shown for the languages that support it.
+         * true: semanticHighlighting is enabled for all themes
+         * false: semanticHighlighting is disabled for all themes
+         * 'configuredByTheme': semanticHighlighting is controlled by the current color theme's semanticHighlighting setting.
+         * Defaults to 'byTheme'.
+         */
+        'semanticHighlighting.enabled'?: true | false | 'configuredByTheme';
+        /**
+         * Keep peek editors open even when double clicking their content or when hitting `Escape`.
+         * Defaults to false.
+         */
+        stablePeek?: boolean;
+        /**
+         * Lines above this length will not be tokenized for performance reasons.
+         * Defaults to 20000.
+         */
+        maxTokenizationLineLength?: number;
+        /**
+         * Theme to be used for rendering.
+         * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
+         * You can create custom themes via `monaco.editor.defineTheme`.
+         * To switch a theme, use `monaco.editor.setTheme`.
+         * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
+         */
+        theme?: string;
+        /**
+         * If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme.
+         * Defaults to true.
+         */
+        autoDetectHighContrast?: boolean;
+    }
+
+    /**
+     * The options to create an editor.
+     */
+    export interface IStandaloneEditorConstructionOptions extends IEditorConstructionOptions, IGlobalEditorOptions {
+        /**
+         * The initial model associated with this code editor.
+         */
+        model?: ITextModel | null;
+        /**
+         * The initial value of the auto created model in the editor.
+         * To not create automatically a model, use `model: null`.
+         */
+        value?: string;
+        /**
+         * The initial language of the auto created model in the editor.
+         * To not create automatically a model, use `model: null`.
+         */
+        language?: string;
+        /**
+         * Initial theme to be used for rendering.
+         * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
+         * You can create custom themes via `monaco.editor.defineTheme`.
+         * To switch a theme, use `monaco.editor.setTheme`.
+         * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
+         */
+        theme?: string;
+        /**
+         * If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme.
+         * Defaults to true.
+         */
+        autoDetectHighContrast?: boolean;
+        /**
+         * An URL to open when Ctrl+H (Windows and Linux) or Cmd+H (OSX) is pressed in
+         * the accessibility help dialog in the editor.
+         *
+         * Defaults to "https://go.microsoft.com/fwlink/?linkid=852450"
+         */
+        accessibilityHelpUrl?: string;
+    }
+
+    /**
+     * The options to create a diff editor.
+     */
+    export interface IDiffEditorConstructionOptions extends IDiffEditorOptions {
+        /**
+         * Initial theme to be used for rendering.
+         * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
+         * You can create custom themes via `monaco.editor.defineTheme`.
+         * To switch a theme, use `monaco.editor.setTheme`.
+         * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
+         */
+        theme?: string;
+        /**
+         * If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme.
+         * Defaults to true.
+         */
+        autoDetectHighContrast?: boolean;
+    }
+
+    export interface IStandaloneCodeEditor extends ICodeEditor {
+        updateOptions(newOptions: IEditorOptions & IGlobalEditorOptions): void;
+        addCommand(keybinding: number, handler: ICommandHandler, context?: string): string | null;
+        createContextKey(key: string, defaultValue: T): IContextKey;
+        addAction(descriptor: IActionDescriptor): IDisposable;
+    }
+
+    export interface IStandaloneDiffEditor extends IDiffEditor {
+        addCommand(keybinding: number, handler: ICommandHandler, context?: string): string | null;
+        createContextKey(key: string, defaultValue: T): IContextKey;
+        addAction(descriptor: IActionDescriptor): IDisposable;
+        getOriginalEditor(): IStandaloneCodeEditor;
+        getModifiedEditor(): IStandaloneCodeEditor;
+    }
+    export interface ICommandHandler {
+        (...args: any[]): void;
+    }
+
+    export interface IContextKey {
+        set(value: T): void;
+        reset(): void;
+        get(): T | undefined;
+    }
+
+    export interface IEditorOverrideServices {
+        [index: string]: any;
+    }
+
+    export interface IMarker {
+        owner: string;
+        resource: Uri;
+        severity: MarkerSeverity;
+        code?: string | {
+            value: string;
+            target: Uri;
+        };
+        message: string;
+        source?: string;
+        startLineNumber: number;
+        startColumn: number;
+        endLineNumber: number;
+        endColumn: number;
+        relatedInformation?: IRelatedInformation[];
+        tags?: MarkerTag[];
+    }
+
+    /**
+     * A structure defining a problem/warning/etc.
+     */
+    export interface IMarkerData {
+        code?: string | {
+            value: string;
+            target: Uri;
+        };
+        severity: MarkerSeverity;
+        message: string;
+        source?: string;
+        startLineNumber: number;
+        startColumn: number;
+        endLineNumber: number;
+        endColumn: number;
+        relatedInformation?: IRelatedInformation[];
+        tags?: MarkerTag[];
+    }
+
+    /**
+     *
+     */
+    export interface IRelatedInformation {
+        resource: Uri;
+        message: string;
+        startLineNumber: number;
+        startColumn: number;
+        endLineNumber: number;
+        endColumn: number;
+    }
+
+    export interface IColorizerOptions {
+        tabSize?: number;
+    }
+
+    export interface IColorizerElementOptions extends IColorizerOptions {
+        theme?: string;
+        mimeType?: string;
+    }
+
+    export enum ScrollbarVisibility {
+        Auto = 1,
+        Hidden = 2,
+        Visible = 3
+    }
+
+    export interface ThemeColor {
+        id: string;
+    }
+
+    /**
+     * Vertical Lane in the overview ruler of the editor.
+     */
+    export enum OverviewRulerLane {
+        Left = 1,
+        Center = 2,
+        Right = 4,
+        Full = 7
+    }
+
+    /**
+     * Position in the minimap to render the decoration.
+     */
+    export enum MinimapPosition {
+        Inline = 1,
+        Gutter = 2
+    }
+
+    export interface IDecorationOptions {
+        /**
+         * CSS color to render.
+         * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
+         */
+        color: string | ThemeColor | undefined;
+        /**
+         * CSS color to render.
+         * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
+         */
+        darkColor?: string | ThemeColor;
+    }
+
+    /**
+     * Options for rendering a model decoration in the overview ruler.
+     */
+    export interface IModelDecorationOverviewRulerOptions extends IDecorationOptions {
+        /**
+         * The position in the overview ruler.
+         */
+        position: OverviewRulerLane;
+    }
+
+    /**
+     * Options for rendering a model decoration in the overview ruler.
+     */
+    export interface IModelDecorationMinimapOptions extends IDecorationOptions {
+        /**
+         * The position in the overview ruler.
+         */
+        position: MinimapPosition;
+    }
+
+    /**
+     * Options for a model decoration.
+     */
+    export interface IModelDecorationOptions {
+        /**
+         * Customize the growing behavior of the decoration when typing at the edges of the decoration.
+         * Defaults to TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
+         */
+        stickiness?: TrackedRangeStickiness;
+        /**
+         * CSS class name describing the decoration.
+         */
+        className?: string | null;
+        /**
+         * Message to be rendered when hovering over the glyph margin decoration.
+         */
+        glyphMarginHoverMessage?: IMarkdownString | IMarkdownString[] | null;
+        /**
+         * Array of MarkdownString to render as the decoration message.
+         */
+        hoverMessage?: IMarkdownString | IMarkdownString[] | null;
+        /**
+         * Should the decoration expand to encompass a whole line.
+         */
+        isWholeLine?: boolean;
+        /**
+         * Specifies the stack order of a decoration.
+         * A decoration with greater stack order is always in front of a decoration with a lower stack order.
+         */
+        zIndex?: number;
+        /**
+         * If set, render this decoration in the overview ruler.
+         */
+        overviewRuler?: IModelDecorationOverviewRulerOptions | null;
+        /**
+         * If set, render this decoration in the minimap.
+         */
+        minimap?: IModelDecorationMinimapOptions | null;
+        /**
+         * If set, the decoration will be rendered in the glyph margin with this CSS class name.
+         */
+        glyphMarginClassName?: string | null;
+        /**
+         * If set, the decoration will be rendered in the lines decorations with this CSS class name.
+         */
+        linesDecorationsClassName?: string | null;
+        /**
+         * If set, the decoration will be rendered in the lines decorations with this CSS class name, but only for the first line in case of line wrapping.
+         */
+        firstLineDecorationClassName?: string | null;
+        /**
+         * If set, the decoration will be rendered in the margin (covering its full width) with this CSS class name.
+         */
+        marginClassName?: string | null;
+        /**
+         * If set, the decoration will be rendered inline with the text with this CSS class name.
+         * Please use this only for CSS rules that must impact the text. For example, use `className`
+         * to have a background color decoration.
+         */
+        inlineClassName?: string | null;
+        /**
+         * If there is an `inlineClassName` which affects letter spacing.
+         */
+        inlineClassNameAffectsLetterSpacing?: boolean;
+        /**
+         * If set, the decoration will be rendered before the text with this CSS class name.
+         */
+        beforeContentClassName?: string | null;
+        /**
+         * If set, the decoration will be rendered after the text with this CSS class name.
+         */
+        afterContentClassName?: string | null;
+    }
+
+    /**
+     * New model decorations.
+     */
+    export interface IModelDeltaDecoration {
+        /**
+         * Range that this decoration covers.
+         */
+        range: IRange;
+        /**
+         * Options associated with this decoration.
+         */
+        options: IModelDecorationOptions;
+    }
+
+    /**
+     * A decoration in the model.
+     */
+    export interface IModelDecoration {
+        /**
+         * Identifier for a decoration.
+         */
+        readonly id: string;
+        /**
+         * Identifier for a decoration's owner.
+         */
+        readonly ownerId: number;
+        /**
+         * Range that this decoration covers.
+         */
+        readonly range: Range;
+        /**
+         * Options associated with this decoration.
+         */
+        readonly options: IModelDecorationOptions;
+    }
+
+    /**
+     * Word inside a model.
+     */
+    export interface IWordAtPosition {
+        /**
+         * The word.
+         */
+        readonly word: string;
+        /**
+         * The column where the word starts.
+         */
+        readonly startColumn: number;
+        /**
+         * The column where the word ends.
+         */
+        readonly endColumn: number;
+    }
+
+    /**
+     * End of line character preference.
+     */
+    export enum EndOfLinePreference {
+        /**
+         * Use the end of line character identified in the text buffer.
+         */
+        TextDefined = 0,
+        /**
+         * Use line feed (\n) as the end of line character.
+         */
+        LF = 1,
+        /**
+         * Use carriage return and line feed (\r\n) as the end of line character.
+         */
+        CRLF = 2
+    }
+
+    /**
+     * The default end of line to use when instantiating models.
+     */
+    export enum DefaultEndOfLine {
+        /**
+         * Use line feed (\n) as the end of line character.
+         */
+        LF = 1,
+        /**
+         * Use carriage return and line feed (\r\n) as the end of line character.
+         */
+        CRLF = 2
+    }
+
+    /**
+     * End of line character preference.
+     */
+    export enum EndOfLineSequence {
+        /**
+         * Use line feed (\n) as the end of line character.
+         */
+        LF = 0,
+        /**
+         * Use carriage return and line feed (\r\n) as the end of line character.
+         */
+        CRLF = 1
+    }
+
+    /**
+     * A single edit operation, that acts as a simple replace.
+     * i.e. Replace text at `range` with `text` in model.
+     */
+    export interface ISingleEditOperation {
+        /**
+         * The range to replace. This can be empty to emulate a simple insert.
+         */
+        range: IRange;
+        /**
+         * The text to replace with. This can be null to emulate a simple delete.
+         */
+        text: string | null;
+        /**
+         * This indicates that this operation has "insert" semantics.
+         * i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
+         */
+        forceMoveMarkers?: boolean;
+    }
+
+    /**
+     * A single edit operation, that has an identifier.
+     */
+    export interface IIdentifiedSingleEditOperation {
+        /**
+         * The range to replace. This can be empty to emulate a simple insert.
+         */
+        range: IRange;
+        /**
+         * The text to replace with. This can be null to emulate a simple delete.
+         */
+        text: string | null;
+        /**
+         * This indicates that this operation has "insert" semantics.
+         * i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
+         */
+        forceMoveMarkers?: boolean;
+    }
+
+    export interface IValidEditOperation {
+        /**
+         * The range to replace. This can be empty to emulate a simple insert.
+         */
+        range: Range;
+        /**
+         * The text to replace with. This can be empty to emulate a simple delete.
+         */
+        text: string;
+    }
+
+    /**
+     * A callback that can compute the cursor state after applying a series of edit operations.
+     */
+    export interface ICursorStateComputer {
+        /**
+         * A callback that can compute the resulting cursors state after some edit operations have been executed.
+         */
+        (inverseEditOperations: IValidEditOperation[]): Selection[] | null;
+    }
+
+    export class TextModelResolvedOptions {
+        _textModelResolvedOptionsBrand: void;
+        readonly tabSize: number;
+        readonly indentSize: number;
+        readonly insertSpaces: boolean;
+        readonly defaultEOL: DefaultEndOfLine;
+        readonly trimAutoWhitespace: boolean;
+    }
+
+    export interface ITextModelUpdateOptions {
+        tabSize?: number;
+        indentSize?: number;
+        insertSpaces?: boolean;
+        trimAutoWhitespace?: boolean;
+    }
+
+    export class FindMatch {
+        _findMatchBrand: void;
+        readonly range: Range;
+        readonly matches: string[] | null;
+    }
+
+    /**
+     * Describes the behavior of decorations when typing/editing near their edges.
+     * Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`
+     */
+    export enum TrackedRangeStickiness {
+        AlwaysGrowsWhenTypingAtEdges = 0,
+        NeverGrowsWhenTypingAtEdges = 1,
+        GrowsOnlyWhenTypingBefore = 2,
+        GrowsOnlyWhenTypingAfter = 3
+    }
+
+    /**
+     * A model.
+     */
+    export interface ITextModel {
+        /**
+         * Gets the resource associated with this editor model.
+         */
+        readonly uri: Uri;
+        /**
+         * A unique identifier associated with this model.
+         */
+        readonly id: string;
+        /**
+         * Get the resolved options for this model.
+         */
+        getOptions(): TextModelResolvedOptions;
+        /**
+         * Get the current version id of the model.
+         * Anytime a change happens to the model (even undo/redo),
+         * the version id is incremented.
+         */
+        getVersionId(): number;
+        /**
+         * Get the alternative version id of the model.
+         * This alternative version id is not always incremented,
+         * it will return the same values in the case of undo-redo.
+         */
+        getAlternativeVersionId(): number;
+        /**
+         * Replace the entire text buffer value contained in this model.
+         */
+        setValue(newValue: string): void;
+        /**
+         * Get the text stored in this model.
+         * @param eol The end of line character preference. Defaults to `EndOfLinePreference.TextDefined`.
+         * @param preserverBOM Preserve a BOM character if it was detected when the model was constructed.
+         * @return The text.
+         */
+        getValue(eol?: EndOfLinePreference, preserveBOM?: boolean): string;
+        /**
+         * Get the length of the text stored in this model.
+         */
+        getValueLength(eol?: EndOfLinePreference, preserveBOM?: boolean): number;
+        /**
+         * Get the text in a certain range.
+         * @param range The range describing what text to get.
+         * @param eol The end of line character preference. This will only be used for multiline ranges. Defaults to `EndOfLinePreference.TextDefined`.
+         * @return The text.
+         */
+        getValueInRange(range: IRange, eol?: EndOfLinePreference): string;
+        /**
+         * Get the length of text in a certain range.
+         * @param range The range describing what text length to get.
+         * @return The text length.
+         */
+        getValueLengthInRange(range: IRange): number;
+        /**
+         * Get the character count of text in a certain range.
+         * @param range The range describing what text length to get.
+         */
+        getCharacterCountInRange(range: IRange): number;
+        /**
+         * Get the number of lines in the model.
+         */
+        getLineCount(): number;
+        /**
+         * Get the text for a certain line.
+         */
+        getLineContent(lineNumber: number): string;
+        /**
+         * Get the text length for a certain line.
+         */
+        getLineLength(lineNumber: number): number;
+        /**
+         * Get the text for all lines.
+         */
+        getLinesContent(): string[];
+        /**
+         * Get the end of line sequence predominantly used in the text buffer.
+         * @return EOL char sequence (e.g.: '\n' or '\r\n').
+         */
+        getEOL(): string;
+        /**
+         * Get the end of line sequence predominantly used in the text buffer.
+         */
+        getEndOfLineSequence(): EndOfLineSequence;
+        /**
+         * Get the minimum legal column for line at `lineNumber`
+         */
+        getLineMinColumn(lineNumber: number): number;
+        /**
+         * Get the maximum legal column for line at `lineNumber`
+         */
+        getLineMaxColumn(lineNumber: number): number;
+        /**
+         * Returns the column before the first non whitespace character for line at `lineNumber`.
+         * Returns 0 if line is empty or contains only whitespace.
+         */
+        getLineFirstNonWhitespaceColumn(lineNumber: number): number;
+        /**
+         * Returns the column after the last non whitespace character for line at `lineNumber`.
+         * Returns 0 if line is empty or contains only whitespace.
+         */
+        getLineLastNonWhitespaceColumn(lineNumber: number): number;
+        /**
+         * Create a valid position,
+         */
+        validatePosition(position: IPosition): Position;
+        /**
+         * Advances the given position by the given offset (negative offsets are also accepted)
+         * and returns it as a new valid position.
+         *
+         * If the offset and position are such that their combination goes beyond the beginning or
+         * end of the model, throws an exception.
+         *
+         * If the offset is such that the new position would be in the middle of a multi-byte
+         * line terminator, throws an exception.
+         */
+        modifyPosition(position: IPosition, offset: number): Position;
+        /**
+         * Create a valid range.
+         */
+        validateRange(range: IRange): Range;
+        /**
+         * Converts the position to a zero-based offset.
+         *
+         * The position will be [adjusted](#TextDocument.validatePosition).
+         *
+         * @param position A position.
+         * @return A valid zero-based offset.
+         */
+        getOffsetAt(position: IPosition): number;
+        /**
+         * Converts a zero-based offset to a position.
+         *
+         * @param offset A zero-based offset.
+         * @return A valid [position](#Position).
+         */
+        getPositionAt(offset: number): Position;
+        /**
+         * Get a range covering the entire model
+         */
+        getFullModelRange(): Range;
+        /**
+         * Returns if the model was disposed or not.
+         */
+        isDisposed(): boolean;
+        /**
+         * Search the model.
+         * @param searchString The string used to search. If it is a regular expression, set `isRegex` to true.
+         * @param searchOnlyEditableRange Limit the searching to only search inside the editable range of the model.
+         * @param isRegex Used to indicate that `searchString` is a regular expression.
+         * @param matchCase Force the matching to match lower/upper case exactly.
+         * @param wordSeparators Force the matching to match entire words only. Pass null otherwise.
+         * @param captureMatches The result will contain the captured groups.
+         * @param limitResultCount Limit the number of results
+         * @return The ranges where the matches are. It is empty if not matches have been found.
+         */
+        findMatches(searchString: string, searchOnlyEditableRange: boolean, isRegex: boolean, matchCase: boolean, wordSeparators: string | null, captureMatches: boolean, limitResultCount?: number): FindMatch[];
+        /**
+         * Search the model.
+         * @param searchString The string used to search. If it is a regular expression, set `isRegex` to true.
+         * @param searchScope Limit the searching to only search inside these ranges.
+         * @param isRegex Used to indicate that `searchString` is a regular expression.
+         * @param matchCase Force the matching to match lower/upper case exactly.
+         * @param wordSeparators Force the matching to match entire words only. Pass null otherwise.
+         * @param captureMatches The result will contain the captured groups.
+         * @param limitResultCount Limit the number of results
+         * @return The ranges where the matches are. It is empty if no matches have been found.
+         */
+        findMatches(searchString: string, searchScope: IRange | IRange[], isRegex: boolean, matchCase: boolean, wordSeparators: string | null, captureMatches: boolean, limitResultCount?: number): FindMatch[];
+        /**
+         * Search the model for the next match. Loops to the beginning of the model if needed.
+         * @param searchString The string used to search. If it is a regular expression, set `isRegex` to true.
+         * @param searchStart Start the searching at the specified position.
+         * @param isRegex Used to indicate that `searchString` is a regular expression.
+         * @param matchCase Force the matching to match lower/upper case exactly.
+         * @param wordSeparators Force the matching to match entire words only. Pass null otherwise.
+         * @param captureMatches The result will contain the captured groups.
+         * @return The range where the next match is. It is null if no next match has been found.
+         */
+        findNextMatch(searchString: string, searchStart: IPosition, isRegex: boolean, matchCase: boolean, wordSeparators: string | null, captureMatches: boolean): FindMatch | null;
+        /**
+         * Search the model for the previous match. Loops to the end of the model if needed.
+         * @param searchString The string used to search. If it is a regular expression, set `isRegex` to true.
+         * @param searchStart Start the searching at the specified position.
+         * @param isRegex Used to indicate that `searchString` is a regular expression.
+         * @param matchCase Force the matching to match lower/upper case exactly.
+         * @param wordSeparators Force the matching to match entire words only. Pass null otherwise.
+         * @param captureMatches The result will contain the captured groups.
+         * @return The range where the previous match is. It is null if no previous match has been found.
+         */
+        findPreviousMatch(searchString: string, searchStart: IPosition, isRegex: boolean, matchCase: boolean, wordSeparators: string | null, captureMatches: boolean): FindMatch | null;
+        /**
+         * Get the language associated with this model.
+         */
+        getModeId(): string;
+        /**
+         * Get the word under or besides `position`.
+         * @param position The position to look for a word.
+         * @return The word under or besides `position`. Might be null.
+         */
+        getWordAtPosition(position: IPosition): IWordAtPosition | null;
+        /**
+         * Get the word under or besides `position` trimmed to `position`.column
+         * @param position The position to look for a word.
+         * @return The word under or besides `position`. Will never be null.
+         */
+        getWordUntilPosition(position: IPosition): IWordAtPosition;
+        /**
+         * Perform a minimum amount of operations, in order to transform the decorations
+         * identified by `oldDecorations` to the decorations described by `newDecorations`
+         * and returns the new identifiers associated with the resulting decorations.
+         *
+         * @param oldDecorations Array containing previous decorations identifiers.
+         * @param newDecorations Array describing what decorations should result after the call.
+         * @param ownerId Identifies the editor id in which these decorations should appear. If no `ownerId` is provided, the decorations will appear in all editors that attach this model.
+         * @return An array containing the new decorations identifiers.
+         */
+        deltaDecorations(oldDecorations: string[], newDecorations: IModelDeltaDecoration[], ownerId?: number): string[];
+        /**
+         * Get the options associated with a decoration.
+         * @param id The decoration id.
+         * @return The decoration options or null if the decoration was not found.
+         */
+        getDecorationOptions(id: string): IModelDecorationOptions | null;
+        /**
+         * Get the range associated with a decoration.
+         * @param id The decoration id.
+         * @return The decoration range or null if the decoration was not found.
+         */
+        getDecorationRange(id: string): Range | null;
+        /**
+         * Gets all the decorations for the line `lineNumber` as an array.
+         * @param lineNumber The line number
+         * @param ownerId If set, it will ignore decorations belonging to other owners.
+         * @param filterOutValidation If set, it will ignore decorations specific to validation (i.e. warnings, errors).
+         * @return An array with the decorations
+         */
+        getLineDecorations(lineNumber: number, ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
+        /**
+         * Gets all the decorations for the lines between `startLineNumber` and `endLineNumber` as an array.
+         * @param startLineNumber The start line number
+         * @param endLineNumber The end line number
+         * @param ownerId If set, it will ignore decorations belonging to other owners.
+         * @param filterOutValidation If set, it will ignore decorations specific to validation (i.e. warnings, errors).
+         * @return An array with the decorations
+         */
+        getLinesDecorations(startLineNumber: number, endLineNumber: number, ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
+        /**
+         * Gets all the decorations in a range as an array. Only `startLineNumber` and `endLineNumber` from `range` are used for filtering.
+         * So for now it returns all the decorations on the same line as `range`.
+         * @param range The range to search in
+         * @param ownerId If set, it will ignore decorations belonging to other owners.
+         * @param filterOutValidation If set, it will ignore decorations specific to validation (i.e. warnings, errors).
+         * @return An array with the decorations
+         */
+        getDecorationsInRange(range: IRange, ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
+        /**
+         * Gets all the decorations as an array.
+         * @param ownerId If set, it will ignore decorations belonging to other owners.
+         * @param filterOutValidation If set, it will ignore decorations specific to validation (i.e. warnings, errors).
+         */
+        getAllDecorations(ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
+        /**
+         * Gets all the decorations that should be rendered in the overview ruler as an array.
+         * @param ownerId If set, it will ignore decorations belonging to other owners.
+         * @param filterOutValidation If set, it will ignore decorations specific to validation (i.e. warnings, errors).
+         */
+        getOverviewRulerDecorations(ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
+        /**
+         * Normalize a string containing whitespace according to indentation rules (converts to spaces or to tabs).
+         */
+        normalizeIndentation(str: string): string;
+        /**
+         * Change the options of this model.
+         */
+        updateOptions(newOpts: ITextModelUpdateOptions): void;
+        /**
+         * Detect the indentation options for this model from its content.
+         */
+        detectIndentation(defaultInsertSpaces: boolean, defaultTabSize: number): void;
+        /**
+         * Close the current undo-redo element.
+         * This offers a way to create an undo/redo stop point.
+         */
+        pushStackElement(): void;
+        /**
+         * Open the current undo-redo element.
+         * This offers a way to remove the current undo/redo stop point.
+         */
+        popStackElement(): void;
+        /**
+         * Push edit operations, basically editing the model. This is the preferred way
+         * of editing the model. The edit operations will land on the undo stack.
+         * @param beforeCursorState The cursor state before the edit operations. This cursor state will be returned when `undo` or `redo` are invoked.
+         * @param editOperations The edit operations.
+         * @param cursorStateComputer A callback that can compute the resulting cursors state after the edit operations have been executed.
+         * @return The cursor state returned by the `cursorStateComputer`.
+         */
+        pushEditOperations(beforeCursorState: Selection[] | null, editOperations: IIdentifiedSingleEditOperation[], cursorStateComputer: ICursorStateComputer): Selection[] | null;
+        /**
+         * Change the end of line sequence. This is the preferred way of
+         * changing the eol sequence. This will land on the undo stack.
+         */
+        pushEOL(eol: EndOfLineSequence): void;
+        /**
+         * Edit the model without adding the edits to the undo stack.
+         * This can have dire consequences on the undo stack! See @pushEditOperations for the preferred way.
+         * @param operations The edit operations.
+         * @return If desired, the inverse edit operations, that, when applied, will bring the model back to the previous state.
+         */
+        applyEdits(operations: IIdentifiedSingleEditOperation[]): void;
+        applyEdits(operations: IIdentifiedSingleEditOperation[], computeUndoEdits: false): void;
+        applyEdits(operations: IIdentifiedSingleEditOperation[], computeUndoEdits: true): IValidEditOperation[];
+        /**
+         * Change the end of line sequence without recording in the undo stack.
+         * This can have dire consequences on the undo stack! See @pushEOL for the preferred way.
+         */
+        setEOL(eol: EndOfLineSequence): void;
+        /**
+         * An event emitted when the contents of the model have changed.
+         * @event
+         */
+        onDidChangeContent(listener: (e: IModelContentChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when decorations of the model have changed.
+         * @event
+         */
+        onDidChangeDecorations(listener: (e: IModelDecorationsChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the model options have changed.
+         * @event
+         */
+        onDidChangeOptions(listener: (e: IModelOptionsChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the language associated with the model has changed.
+         * @event
+         */
+        onDidChangeLanguage(listener: (e: IModelLanguageChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the language configuration associated with the model has changed.
+         * @event
+         */
+        onDidChangeLanguageConfiguration(listener: (e: IModelLanguageConfigurationChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted right before disposing the model.
+         * @event
+         */
+        onWillDispose(listener: () => void): IDisposable;
+        /**
+         * Destroy this model. This will unbind the model from the mode
+         * and make all necessary clean-up to release this object to the GC.
+         */
+        dispose(): void;
+    }
+
+    /**
+     * A builder and helper for edit operations for a command.
+     */
+    export interface IEditOperationBuilder {
+        /**
+         * Add a new edit operation (a replace operation).
+         * @param range The range to replace (delete). May be empty to represent a simple insert.
+         * @param text The text to replace with. May be null to represent a simple delete.
+         */
+        addEditOperation(range: IRange, text: string | null, forceMoveMarkers?: boolean): void;
+        /**
+         * Add a new edit operation (a replace operation).
+         * The inverse edits will be accessible in `ICursorStateComputerData.getInverseEditOperations()`
+         * @param range The range to replace (delete). May be empty to represent a simple insert.
+         * @param text The text to replace with. May be null to represent a simple delete.
+         */
+        addTrackedEditOperation(range: IRange, text: string | null, forceMoveMarkers?: boolean): void;
+        /**
+         * Track `selection` when applying edit operations.
+         * A best effort will be made to not grow/expand the selection.
+         * An empty selection will clamp to a nearby character.
+         * @param selection The selection to track.
+         * @param trackPreviousOnEmpty If set, and the selection is empty, indicates whether the selection
+         *           should clamp to the previous or the next character.
+         * @return A unique identifier.
+         */
+        trackSelection(selection: Selection, trackPreviousOnEmpty?: boolean): string;
+    }
+
+    /**
+     * A helper for computing cursor state after a command.
+     */
+    export interface ICursorStateComputerData {
+        /**
+         * Get the inverse edit operations of the added edit operations.
+         */
+        getInverseEditOperations(): IValidEditOperation[];
+        /**
+         * Get a previously tracked selection.
+         * @param id The unique identifier returned by `trackSelection`.
+         * @return The selection.
+         */
+        getTrackedSelection(id: string): Selection;
+    }
+
+    /**
+     * A command that modifies text / cursor state on a model.
+     */
+    export interface ICommand {
+        /**
+         * Get the edit operations needed to execute this command.
+         * @param model The model the command will execute on.
+         * @param builder A helper to collect the needed edit operations and to track selections.
+         */
+        getEditOperations(model: ITextModel, builder: IEditOperationBuilder): void;
+        /**
+         * Compute the cursor state after the edit operations were applied.
+         * @param model The model the command has executed on.
+         * @param helper A helper to get inverse edit operations and to get previously tracked selections.
+         * @return The cursor state after the command executed.
+         */
+        computeCursorState(model: ITextModel, helper: ICursorStateComputerData): Selection;
+    }
+
+    /**
+     * A model for the diff editor.
+     */
+    export interface IDiffEditorModel {
+        /**
+         * Original model.
+         */
+        original: ITextModel;
+        /**
+         * Modified model.
+         */
+        modified: ITextModel;
+    }
+
+    /**
+     * An event describing that an editor has had its model reset (i.e. `editor.setModel()`).
+     */
+    export interface IModelChangedEvent {
+        /**
+         * The `uri` of the previous model or null.
+         */
+        readonly oldModelUrl: Uri | null;
+        /**
+         * The `uri` of the new model or null.
+         */
+        readonly newModelUrl: Uri | null;
+    }
+
+    export interface IDimension {
+        width: number;
+        height: number;
+    }
+
+    /**
+     * A change
+     */
+    export interface IChange {
+        readonly originalStartLineNumber: number;
+        readonly originalEndLineNumber: number;
+        readonly modifiedStartLineNumber: number;
+        readonly modifiedEndLineNumber: number;
+    }
+
+    /**
+     * A character level change.
+     */
+    export interface ICharChange extends IChange {
+        readonly originalStartColumn: number;
+        readonly originalEndColumn: number;
+        readonly modifiedStartColumn: number;
+        readonly modifiedEndColumn: number;
+    }
+
+    /**
+     * A line change
+     */
+    export interface ILineChange extends IChange {
+        readonly charChanges: ICharChange[] | undefined;
+    }
+
+    export interface IContentSizeChangedEvent {
+        readonly contentWidth: number;
+        readonly contentHeight: number;
+        readonly contentWidthChanged: boolean;
+        readonly contentHeightChanged: boolean;
+    }
+
+    export interface INewScrollPosition {
+        scrollLeft?: number;
+        scrollTop?: number;
+    }
+
+    export interface IEditorAction {
+        readonly id: string;
+        readonly label: string;
+        readonly alias: string;
+        isSupported(): boolean;
+        run(): Promise;
+    }
+
+    export type IEditorModel = ITextModel | IDiffEditorModel;
+
+    /**
+     * A (serializable) state of the cursors.
+     */
+    export interface ICursorState {
+        inSelectionMode: boolean;
+        selectionStart: IPosition;
+        position: IPosition;
+    }
+
+    /**
+     * A (serializable) state of the view.
+     */
+    export interface IViewState {
+        /** written by previous versions */
+        scrollTop?: number;
+        /** written by previous versions */
+        scrollTopWithoutViewZones?: number;
+        scrollLeft: number;
+        firstPosition: IPosition;
+        firstPositionDeltaTop: number;
+    }
+
+    /**
+     * A (serializable) state of the code editor.
+     */
+    export interface ICodeEditorViewState {
+        cursorState: ICursorState[];
+        viewState: IViewState;
+        contributionsState: {
+            [id: string]: any;
+        };
+    }
+
+    /**
+     * (Serializable) View state for the diff editor.
+     */
+    export interface IDiffEditorViewState {
+        original: ICodeEditorViewState | null;
+        modified: ICodeEditorViewState | null;
+    }
+
+    /**
+     * An editor view state.
+     */
+    export type IEditorViewState = ICodeEditorViewState | IDiffEditorViewState;
+
+    export enum ScrollType {
+        Smooth = 0,
+        Immediate = 1
+    }
+
+    /**
+     * An editor.
+     */
+    export interface IEditor {
+        /**
+         * An event emitted when the editor has been disposed.
+         * @event
+         */
+        onDidDispose(listener: () => void): IDisposable;
+        /**
+         * Dispose the editor.
+         */
+        dispose(): void;
+        /**
+         * Get a unique id for this editor instance.
+         */
+        getId(): string;
+        /**
+         * Get the editor type. Please see `EditorType`.
+         * This is to avoid an instanceof check
+         */
+        getEditorType(): string;
+        /**
+         * Update the editor's options after the editor has been created.
+         */
+        updateOptions(newOptions: IEditorOptions): void;
+        /**
+         * Instructs the editor to remeasure its container. This method should
+         * be called when the container of the editor gets resized.
+         *
+         * If a dimension is passed in, the passed in value will be used.
+         */
+        layout(dimension?: IDimension): void;
+        /**
+         * Brings browser focus to the editor text
+         */
+        focus(): void;
+        /**
+         * Returns true if the text inside this editor is focused (i.e. cursor is blinking).
+         */
+        hasTextFocus(): boolean;
+        /**
+         * Returns all actions associated with this editor.
+         */
+        getSupportedActions(): IEditorAction[];
+        /**
+         * Saves current view state of the editor in a serializable object.
+         */
+        saveViewState(): IEditorViewState | null;
+        /**
+         * Restores the view state of the editor from a serializable object generated by `saveViewState`.
+         */
+        restoreViewState(state: IEditorViewState): void;
+        /**
+         * Given a position, returns a column number that takes tab-widths into account.
+         */
+        getVisibleColumnFromPosition(position: IPosition): number;
+        /**
+         * Returns the primary position of the cursor.
+         */
+        getPosition(): Position | null;
+        /**
+         * Set the primary position of the cursor. This will remove any secondary cursors.
+         * @param position New primary cursor's position
+         */
+        setPosition(position: IPosition): void;
+        /**
+         * Scroll vertically as necessary and reveal a line.
+         */
+        revealLine(lineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal a line centered vertically.
+         */
+        revealLineInCenter(lineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
+         */
+        revealLineInCenterIfOutsideViewport(lineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal a line close to the top of the viewport,
+         * optimized for viewing a code definition.
+         */
+        revealLineNearTop(lineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a position.
+         */
+        revealPosition(position: IPosition, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a position centered vertically.
+         */
+        revealPositionInCenter(position: IPosition, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
+         */
+        revealPositionInCenterIfOutsideViewport(position: IPosition, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport,
+         * optimized for viewing a code definition.
+         */
+        revealPositionNearTop(position: IPosition, scrollType?: ScrollType): void;
+        /**
+         * Returns the primary selection of the editor.
+         */
+        getSelection(): Selection | null;
+        /**
+         * Returns all the selections of the editor.
+         */
+        getSelections(): Selection[] | null;
+        /**
+         * Set the primary selection of the editor. This will remove any secondary cursors.
+         * @param selection The new selection
+         */
+        setSelection(selection: IRange): void;
+        /**
+         * Set the primary selection of the editor. This will remove any secondary cursors.
+         * @param selection The new selection
+         */
+        setSelection(selection: Range): void;
+        /**
+         * Set the primary selection of the editor. This will remove any secondary cursors.
+         * @param selection The new selection
+         */
+        setSelection(selection: ISelection): void;
+        /**
+         * Set the primary selection of the editor. This will remove any secondary cursors.
+         * @param selection The new selection
+         */
+        setSelection(selection: Selection): void;
+        /**
+         * Set the selections for all the cursors of the editor.
+         * Cursors will be removed or added, as necessary.
+         */
+        setSelections(selections: readonly ISelection[]): void;
+        /**
+         * Scroll vertically as necessary and reveal lines.
+         */
+        revealLines(startLineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal lines centered vertically.
+         */
+        revealLinesInCenter(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
+         */
+        revealLinesInCenterIfOutsideViewport(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically as necessary and reveal lines close to the top of the viewport,
+         * optimized for viewing a code definition.
+         */
+        revealLinesNearTop(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range.
+         */
+        revealRange(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range centered vertically.
+         */
+        revealRangeInCenter(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range at the top of the viewport.
+         */
+        revealRangeAtTop(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
+         */
+        revealRangeInCenterIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
+         * optimized for viewing a code definition.
+         */
+        revealRangeNearTop(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
+         * optimized for viewing a code definition. Only if it lies outside the viewport.
+         */
+        revealRangeNearTopIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
+        /**
+         * Directly trigger a handler or an editor action.
+         * @param source The source of the call.
+         * @param handlerId The id of the handler or the id of a contribution.
+         * @param payload Extra data to be sent to the handler.
+         */
+        trigger(source: string | null | undefined, handlerId: string, payload: any): void;
+        /**
+         * Gets the current model attached to this editor.
+         */
+        getModel(): IEditorModel | null;
+        /**
+         * Sets the current model attached to this editor.
+         * If the previous model was created by the editor via the value key in the options
+         * literal object, it will be destroyed. Otherwise, if the previous model was set
+         * via setModel, or the model key in the options literal object, the previous model
+         * will not be destroyed.
+         * It is safe to call setModel(null) to simply detach the current model from the editor.
+         */
+        setModel(model: IEditorModel | null): void;
+    }
+
+    /**
+     * An editor contribution that gets created every time a new editor gets created and gets disposed when the editor gets disposed.
+     */
+    export interface IEditorContribution {
+        /**
+         * Dispose this contribution.
+         */
+        dispose(): void;
+        /**
+         * Store view state.
+         */
+        saveViewState?(): any;
+        /**
+         * Restore view state.
+         */
+        restoreViewState?(state: any): void;
+    }
+
+    /**
+     * The type of the `IEditor`.
+     */
+    export const EditorType: {
+        ICodeEditor: string;
+        IDiffEditor: string;
+    };
+
+    /**
+     * An event describing that the current mode associated with a model has changed.
+     */
+    export interface IModelLanguageChangedEvent {
+        /**
+         * Previous language
+         */
+        readonly oldLanguage: string;
+        /**
+         * New language
+         */
+        readonly newLanguage: string;
+    }
+
+    /**
+     * An event describing that the language configuration associated with a model has changed.
+     */
+    export interface IModelLanguageConfigurationChangedEvent {
+    }
+
+    export interface IModelContentChange {
+        /**
+         * The range that got replaced.
+         */
+        readonly range: IRange;
+        /**
+         * The offset of the range that got replaced.
+         */
+        readonly rangeOffset: number;
+        /**
+         * The length of the range that got replaced.
+         */
+        readonly rangeLength: number;
+        /**
+         * The new text for the range.
+         */
+        readonly text: string;
+    }
+
+    /**
+     * An event describing a change in the text of a model.
+     */
+    export interface IModelContentChangedEvent {
+        readonly changes: IModelContentChange[];
+        /**
+         * The (new) end-of-line character.
+         */
+        readonly eol: string;
+        /**
+         * The new version id the model has transitioned to.
+         */
+        readonly versionId: number;
+        /**
+         * Flag that indicates that this event was generated while undoing.
+         */
+        readonly isUndoing: boolean;
+        /**
+         * Flag that indicates that this event was generated while redoing.
+         */
+        readonly isRedoing: boolean;
+        /**
+         * Flag that indicates that all decorations were lost with this edit.
+         * The model has been reset to a new value.
+         */
+        readonly isFlush: boolean;
+    }
+
+    /**
+     * An event describing that model decorations have changed.
+     */
+    export interface IModelDecorationsChangedEvent {
+        readonly affectsMinimap: boolean;
+        readonly affectsOverviewRuler: boolean;
+    }
+
+    export interface IModelOptionsChangedEvent {
+        readonly tabSize: boolean;
+        readonly indentSize: boolean;
+        readonly insertSpaces: boolean;
+        readonly trimAutoWhitespace: boolean;
+    }
+
+    /**
+     * Describes the reason the cursor has changed its position.
+     */
+    export enum CursorChangeReason {
+        /**
+         * Unknown or not set.
+         */
+        NotSet = 0,
+        /**
+         * A `model.setValue()` was called.
+         */
+        ContentFlush = 1,
+        /**
+         * The `model` has been changed outside of this cursor and the cursor recovers its position from associated markers.
+         */
+        RecoverFromMarkers = 2,
+        /**
+         * There was an explicit user gesture.
+         */
+        Explicit = 3,
+        /**
+         * There was a Paste.
+         */
+        Paste = 4,
+        /**
+         * There was an Undo.
+         */
+        Undo = 5,
+        /**
+         * There was a Redo.
+         */
+        Redo = 6
+    }
+
+    /**
+     * An event describing that the cursor position has changed.
+     */
+    export interface ICursorPositionChangedEvent {
+        /**
+         * Primary cursor's position.
+         */
+        readonly position: Position;
+        /**
+         * Secondary cursors' position.
+         */
+        readonly secondaryPositions: Position[];
+        /**
+         * Reason.
+         */
+        readonly reason: CursorChangeReason;
+        /**
+         * Source of the call that caused the event.
+         */
+        readonly source: string;
+    }
+
+    /**
+     * An event describing that the cursor selection has changed.
+     */
+    export interface ICursorSelectionChangedEvent {
+        /**
+         * The primary selection.
+         */
+        readonly selection: Selection;
+        /**
+         * The secondary selections.
+         */
+        readonly secondarySelections: Selection[];
+        /**
+         * The model version id.
+         */
+        readonly modelVersionId: number;
+        /**
+         * The old selections.
+         */
+        readonly oldSelections: Selection[] | null;
+        /**
+         * The model version id the that `oldSelections` refer to.
+         */
+        readonly oldModelVersionId: number;
+        /**
+         * Source of the call that caused the event.
+         */
+        readonly source: string;
+        /**
+         * Reason.
+         */
+        readonly reason: CursorChangeReason;
+    }
+
+    export enum AccessibilitySupport {
+        /**
+         * This should be the browser case where it is not known if a screen reader is attached or no.
+         */
+        Unknown = 0,
+        Disabled = 1,
+        Enabled = 2
+    }
+
+    /**
+     * Configuration options for auto closing quotes and brackets
+     */
+    export type EditorAutoClosingStrategy = 'always' | 'languageDefined' | 'beforeWhitespace' | 'never';
+
+    /**
+     * Configuration options for auto wrapping quotes and brackets
+     */
+    export type EditorAutoSurroundStrategy = 'languageDefined' | 'quotes' | 'brackets' | 'never';
+
+    /**
+     * Configuration options for typing over closing quotes or brackets
+     */
+    export type EditorAutoClosingOvertypeStrategy = 'always' | 'auto' | 'never';
+
+    /**
+     * Configuration options for auto indentation in the editor
+     */
+    export enum EditorAutoIndentStrategy {
+        None = 0,
+        Keep = 1,
+        Brackets = 2,
+        Advanced = 3,
+        Full = 4
+    }
+
+    /**
+     * Configuration options for the editor.
+     */
+    export interface IEditorOptions {
+        /**
+         * This editor is used inside a diff editor.
+         */
+        inDiffEditor?: boolean;
+        /**
+         * The aria label for the editor's textarea (when it is focused).
+         */
+        ariaLabel?: string;
+        /**
+         * The `tabindex` property of the editor's textarea
+         */
+        tabIndex?: number;
+        /**
+         * Render vertical lines at the specified columns.
+         * Defaults to empty array.
+         */
+        rulers?: (number | IRulerOption)[];
+        /**
+         * A string containing the word separators used when doing word navigation.
+         * Defaults to `~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?
+         */
+        wordSeparators?: string;
+        /**
+         * Enable Linux primary clipboard.
+         * Defaults to true.
+         */
+        selectionClipboard?: boolean;
+        /**
+         * Control the rendering of line numbers.
+         * If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
+         * Otherwise, if it is a truey, line numbers will be rendered normally (equivalent of using an identity function).
+         * Otherwise, line numbers will not be rendered.
+         * Defaults to `on`.
+         */
+        lineNumbers?: LineNumbersType;
+        /**
+         * Controls the minimal number of visible leading and trailing lines surrounding the cursor.
+         * Defaults to 0.
+        */
+        cursorSurroundingLines?: number;
+        /**
+         * Controls when `cursorSurroundingLines` should be enforced
+         * Defaults to `default`, `cursorSurroundingLines` is not enforced when cursor position is changed
+         * by mouse.
+        */
+        cursorSurroundingLinesStyle?: 'default' | 'all';
+        /**
+         * Render last line number when the file ends with a newline.
+         * Defaults to true.
+        */
+        renderFinalNewline?: boolean;
+        /**
+         * Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
+         * Defaults to 'prompt'.
+         */
+        unusualLineTerminators?: 'auto' | 'off' | 'prompt';
+        /**
+         * Should the corresponding line be selected when clicking on the line number?
+         * Defaults to true.
+         */
+        selectOnLineNumbers?: boolean;
+        /**
+         * Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits.
+         * Defaults to 5.
+         */
+        lineNumbersMinChars?: number;
+        /**
+         * Enable the rendering of the glyph margin.
+         * Defaults to true in vscode and to false in monaco-editor.
+         */
+        glyphMargin?: boolean;
+        /**
+         * The width reserved for line decorations (in px).
+         * Line decorations are placed between line numbers and the editor content.
+         * You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch.
+         * Defaults to 10.
+         */
+        lineDecorationsWidth?: number | string;
+        /**
+         * When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle.
+         * This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.
+         * Defaults to 30 (px).
+         */
+        revealHorizontalRightPadding?: number;
+        /**
+         * Render the editor selection with rounded borders.
+         * Defaults to true.
+         */
+        roundedSelection?: boolean;
+        /**
+         * Class name to be added to the editor.
+         */
+        extraEditorClassName?: string;
+        /**
+         * Should the editor be read only.
+         * Defaults to false.
+         */
+        readOnly?: boolean;
+        /**
+         * Enable linked editing.
+         * Defaults to false.
+         */
+        linkedEditing?: boolean;
+        /**
+         * deprecated, use linkedEditing instead
+         */
+        renameOnType?: boolean;
+        /**
+         * Should the editor render validation decorations.
+         * Defaults to editable.
+         */
+        renderValidationDecorations?: 'editable' | 'on' | 'off';
+        /**
+         * Control the behavior and rendering of the scrollbars.
+         */
+        scrollbar?: IEditorScrollbarOptions;
+        /**
+         * Control the behavior and rendering of the minimap.
+         */
+        minimap?: IEditorMinimapOptions;
+        /**
+         * Control the behavior of the find widget.
+         */
+        find?: IEditorFindOptions;
+        /**
+         * Display overflow widgets as `fixed`.
+         * Defaults to `false`.
+         */
+        fixedOverflowWidgets?: boolean;
+        /**
+         * The number of vertical lanes the overview ruler should render.
+         * Defaults to 3.
+         */
+        overviewRulerLanes?: number;
+        /**
+         * Controls if a border should be drawn around the overview ruler.
+         * Defaults to `true`.
+         */
+        overviewRulerBorder?: boolean;
+        /**
+         * Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'.
+         * Defaults to 'blink'.
+         */
+        cursorBlinking?: 'blink' | 'smooth' | 'phase' | 'expand' | 'solid';
+        /**
+         * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
+         * Defaults to false.
+         */
+        mouseWheelZoom?: boolean;
+        /**
+         * Control the mouse pointer style, either 'text' or 'default' or 'copy'
+         * Defaults to 'text'
+         */
+        mouseStyle?: 'text' | 'default' | 'copy';
+        /**
+         * Enable smooth caret animation.
+         * Defaults to false.
+         */
+        cursorSmoothCaretAnimation?: boolean;
+        /**
+         * Control the cursor style, either 'block' or 'line'.
+         * Defaults to 'line'.
+         */
+        cursorStyle?: 'line' | 'block' | 'underline' | 'line-thin' | 'block-outline' | 'underline-thin';
+        /**
+         * Control the width of the cursor when cursorStyle is set to 'line'
+         */
+        cursorWidth?: number;
+        /**
+         * Enable font ligatures.
+         * Defaults to false.
+         */
+        fontLigatures?: boolean | string;
+        /**
+         * Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers.
+         * The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.
+         * Defaults to false.
+         */
+        disableLayerHinting?: boolean;
+        /**
+         * Disable the optimizations for monospace fonts.
+         * Defaults to false.
+         */
+        disableMonospaceOptimizations?: boolean;
+        /**
+         * Should the cursor be hidden in the overview ruler.
+         * Defaults to false.
+         */
+        hideCursorInOverviewRuler?: boolean;
+        /**
+         * Enable that scrolling can go one screen size after the last line.
+         * Defaults to true.
+         */
+        scrollBeyondLastLine?: boolean;
+        /**
+         * Enable that scrolling can go beyond the last column by a number of columns.
+         * Defaults to 5.
+         */
+        scrollBeyondLastColumn?: number;
+        /**
+         * Enable that the editor animates scrolling to a position.
+         * Defaults to false.
+         */
+        smoothScrolling?: boolean;
+        /**
+         * Enable that the editor will install an interval to check if its container dom node size has changed.
+         * Enabling this might have a severe performance impact.
+         * Defaults to false.
+         */
+        automaticLayout?: boolean;
+        /**
+         * Control the wrapping of the editor.
+         * When `wordWrap` = "off", the lines will never wrap.
+         * When `wordWrap` = "on", the lines will wrap at the viewport width.
+         * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
+         * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
+         * Defaults to "off".
+         */
+        wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded';
+        /**
+         * Override the `wordWrap` setting.
+         */
+        wordWrapOverride1?: 'off' | 'on' | 'inherit';
+        /**
+         * Override the `wordWrapOverride1` setting.
+         */
+        wordWrapOverride2?: 'off' | 'on' | 'inherit';
+        /**
+         * Control the wrapping of the editor.
+         * When `wordWrap` = "off", the lines will never wrap.
+         * When `wordWrap` = "on", the lines will wrap at the viewport width.
+         * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
+         * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
+         * Defaults to 80.
+         */
+        wordWrapColumn?: number;
+        /**
+         * Control indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'.
+         * Defaults to 'same' in vscode and to 'none' in monaco-editor.
+         */
+        wrappingIndent?: 'none' | 'same' | 'indent' | 'deepIndent';
+        /**
+         * Controls the wrapping strategy to use.
+         * Defaults to 'simple'.
+         */
+        wrappingStrategy?: 'simple' | 'advanced';
+        /**
+         * Configure word wrapping characters. A break will be introduced before these characters.
+         * Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'.
+         */
+        wordWrapBreakBeforeCharacters?: string;
+        /**
+         * Configure word wrapping characters. A break will be introduced after these characters.
+         * Defaults to ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」'.
+         */
+        wordWrapBreakAfterCharacters?: string;
+        /**
+         * Performance guard: Stop rendering a line after x characters.
+         * Defaults to 10000.
+         * Use -1 to never stop rendering
+         */
+        stopRenderingLineAfter?: number;
+        /**
+         * Configure the editor's hover.
+         */
+        hover?: IEditorHoverOptions;
+        /**
+         * Enable detecting links and making them clickable.
+         * Defaults to true.
+         */
+        links?: boolean;
+        /**
+         * Enable inline color decorators and color picker rendering.
+         */
+        colorDecorators?: boolean;
+        /**
+         * Control the behaviour of comments in the editor.
+         */
+        comments?: IEditorCommentsOptions;
+        /**
+         * Enable custom contextmenu.
+         * Defaults to true.
+         */
+        contextmenu?: boolean;
+        /**
+         * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.
+         * Defaults to 1.
+         */
+        mouseWheelScrollSensitivity?: number;
+        /**
+         * FastScrolling mulitplier speed when pressing `Alt`
+         * Defaults to 5.
+         */
+        fastScrollSensitivity?: number;
+        /**
+         * Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad.
+         * Defaults to true.
+         */
+        scrollPredominantAxis?: boolean;
+        /**
+         * Enable that the selection with the mouse and keys is doing column selection.
+         * Defaults to false.
+         */
+        columnSelection?: boolean;
+        /**
+         * The modifier to be used to add multiple cursors with the mouse.
+         * Defaults to 'alt'
+         */
+        multiCursorModifier?: 'ctrlCmd' | 'alt';
+        /**
+         * Merge overlapping selections.
+         * Defaults to true
+         */
+        multiCursorMergeOverlapping?: boolean;
+        /**
+         * Configure the behaviour when pasting a text with the line count equal to the cursor count.
+         * Defaults to 'spread'.
+         */
+        multiCursorPaste?: 'spread' | 'full';
+        /**
+         * Configure the editor's accessibility support.
+         * Defaults to 'auto'. It is best to leave this to 'auto'.
+         */
+        accessibilitySupport?: 'auto' | 'off' | 'on';
+        /**
+         * Controls the number of lines in the editor that can be read out by a screen reader
+         */
+        accessibilityPageSize?: number;
+        /**
+         * Suggest options.
+         */
+        suggest?: ISuggestOptions;
+        /**
+         * Smart select opptions;
+         */
+        smartSelect?: ISmartSelectOptions;
+        /**
+         *
+         */
+        gotoLocation?: IGotoLocationOptions;
+        /**
+         * Enable quick suggestions (shadow suggestions)
+         * Defaults to true.
+         */
+        quickSuggestions?: boolean | IQuickSuggestionsOptions;
+        /**
+         * Quick suggestions show delay (in ms)
+         * Defaults to 10 (ms)
+         */
+        quickSuggestionsDelay?: number;
+        /**
+         * Controls the spacing around the editor.
+         */
+        padding?: IEditorPaddingOptions;
+        /**
+         * Parameter hint options.
+         */
+        parameterHints?: IEditorParameterHintOptions;
+        /**
+         * Options for auto closing brackets.
+         * Defaults to language defined behavior.
+         */
+        autoClosingBrackets?: EditorAutoClosingStrategy;
+        /**
+         * Options for auto closing quotes.
+         * Defaults to language defined behavior.
+         */
+        autoClosingQuotes?: EditorAutoClosingStrategy;
+        /**
+         * Options for typing over closing quotes or brackets.
+         */
+        autoClosingOvertype?: EditorAutoClosingOvertypeStrategy;
+        /**
+         * Options for auto surrounding.
+         * Defaults to always allowing auto surrounding.
+         */
+        autoSurround?: EditorAutoSurroundStrategy;
+        /**
+         * Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.
+         * Defaults to advanced.
+         */
+        autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full';
+        /**
+         * Emulate selection behaviour of tab characters when using spaces for indentation.
+         * This means selection will stick to tab stops.
+         */
+        stickyTabStops?: boolean;
+        /**
+         * Enable format on type.
+         * Defaults to false.
+         */
+        formatOnType?: boolean;
+        /**
+         * Enable format on paste.
+         * Defaults to false.
+         */
+        formatOnPaste?: boolean;
+        /**
+         * Controls if the editor should allow to move selections via drag and drop.
+         * Defaults to false.
+         */
+        dragAndDrop?: boolean;
+        /**
+         * Enable the suggestion box to pop-up on trigger characters.
+         * Defaults to true.
+         */
+        suggestOnTriggerCharacters?: boolean;
+        /**
+         * Accept suggestions on ENTER.
+         * Defaults to 'on'.
+         */
+        acceptSuggestionOnEnter?: 'on' | 'smart' | 'off';
+        /**
+         * Accept suggestions on provider defined characters.
+         * Defaults to true.
+         */
+        acceptSuggestionOnCommitCharacter?: boolean;
+        /**
+         * Enable snippet suggestions. Default to 'true'.
+         */
+        snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';
+        /**
+         * Copying without a selection copies the current line.
+         */
+        emptySelectionClipboard?: boolean;
+        /**
+         * Syntax highlighting is copied.
+         */
+        copyWithSyntaxHighlighting?: boolean;
+        /**
+         * The history mode for suggestions.
+         */
+        suggestSelection?: 'first' | 'recentlyUsed' | 'recentlyUsedByPrefix';
+        /**
+         * The font size for the suggest widget.
+         * Defaults to the editor font size.
+         */
+        suggestFontSize?: number;
+        /**
+         * The line height for the suggest widget.
+         * Defaults to the editor line height.
+         */
+        suggestLineHeight?: number;
+        /**
+         * Enable tab completion.
+         */
+        tabCompletion?: 'on' | 'off' | 'onlySnippets';
+        /**
+         * Enable selection highlight.
+         * Defaults to true.
+         */
+        selectionHighlight?: boolean;
+        /**
+         * Enable semantic occurrences highlight.
+         * Defaults to true.
+         */
+        occurrencesHighlight?: boolean;
+        /**
+         * Show code lens
+         * Defaults to true.
+         */
+        codeLens?: boolean;
+        /**
+         * Code lens font family. Defaults to editor font family.
+         */
+        codeLensFontFamily?: string;
+        /**
+         * Code lens font size. Default to 90% of the editor font size
+         */
+        codeLensFontSize?: number;
+        /**
+         * Control the behavior and rendering of the code action lightbulb.
+         */
+        lightbulb?: IEditorLightbulbOptions;
+        /**
+         * Timeout for running code actions on save.
+         */
+        codeActionsOnSaveTimeout?: number;
+        /**
+         * Enable code folding.
+         * Defaults to true.
+         */
+        folding?: boolean;
+        /**
+         * Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy.
+         * Defaults to 'auto'.
+         */
+        foldingStrategy?: 'auto' | 'indentation';
+        /**
+         * Enable highlight for folded regions.
+         * Defaults to true.
+         */
+        foldingHighlight?: boolean;
+        /**
+         * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
+         * Defaults to 'mouseover'.
+         */
+        showFoldingControls?: 'always' | 'mouseover';
+        /**
+         * Controls whether clicking on the empty content after a folded line will unfold the line.
+         * Defaults to false.
+         */
+        unfoldOnClickAfterEndOfLine?: boolean;
+        /**
+         * Enable highlighting of matching brackets.
+         * Defaults to 'always'.
+         */
+        matchBrackets?: 'never' | 'near' | 'always';
+        /**
+         * Enable rendering of whitespace.
+         * Defaults to none.
+         */
+        renderWhitespace?: 'none' | 'boundary' | 'selection' | 'trailing' | 'all';
+        /**
+         * Enable rendering of control characters.
+         * Defaults to false.
+         */
+        renderControlCharacters?: boolean;
+        /**
+         * Enable rendering of indent guides.
+         * Defaults to true.
+         */
+        renderIndentGuides?: boolean;
+        /**
+         * Enable highlighting of the active indent guide.
+         * Defaults to true.
+         */
+        highlightActiveIndentGuide?: boolean;
+        /**
+         * Enable rendering of current line highlight.
+         * Defaults to all.
+         */
+        renderLineHighlight?: 'none' | 'gutter' | 'line' | 'all';
+        /**
+         * Control if the current line highlight should be rendered only the editor is focused.
+         * Defaults to false.
+         */
+        renderLineHighlightOnlyWhenFocus?: boolean;
+        /**
+         * Inserting and deleting whitespace follows tab stops.
+         */
+        useTabStops?: boolean;
+        /**
+         * The font family
+         */
+        fontFamily?: string;
+        /**
+         * The font weight
+         */
+        fontWeight?: string;
+        /**
+         * The font size
+         */
+        fontSize?: number;
+        /**
+         * The line height
+         */
+        lineHeight?: number;
+        /**
+         * The letter spacing
+         */
+        letterSpacing?: number;
+        /**
+         * Controls fading out of unused variables.
+         */
+        showUnused?: boolean;
+        /**
+         * Controls whether to focus the inline editor in the peek widget by default.
+         * Defaults to false.
+         */
+        peekWidgetDefaultFocus?: 'tree' | 'editor';
+        /**
+         * Controls whether the definition link opens element in the peek widget.
+         * Defaults to false.
+         */
+        definitionLinkOpensInPeek?: boolean;
+        /**
+         * Controls strikethrough deprecated variables.
+         */
+        showDeprecated?: boolean;
+        /**
+         * Control the behavior and rendering of the inline hints.
+         */
+        inlineHints?: IEditorInlineHintsOptions;
+    }
+
+    /**
+     * Configuration options for the diff editor.
+     */
+    export interface IDiffEditorOptions extends IEditorOptions {
+        /**
+         * Allow the user to resize the diff editor split view.
+         * Defaults to true.
+         */
+        enableSplitViewResizing?: boolean;
+        /**
+         * Render the differences in two side-by-side editors.
+         * Defaults to true.
+         */
+        renderSideBySide?: boolean;
+        /**
+         * Timeout in milliseconds after which diff computation is cancelled.
+         * Defaults to 5000.
+         */
+        maxComputationTime?: number;
+        /**
+         * Compute the diff by ignoring leading/trailing whitespace
+         * Defaults to true.
+         */
+        ignoreTrimWhitespace?: boolean;
+        /**
+         * Render +/- indicators for added/deleted changes.
+         * Defaults to true.
+         */
+        renderIndicators?: boolean;
+        /**
+         * Original model should be editable?
+         * Defaults to false.
+         */
+        originalEditable?: boolean;
+        /**
+         * Should the diff editor enable code lens?
+         * Defaults to false.
+         */
+        diffCodeLens?: boolean;
+        /**
+         * Is the diff editor inside another editor
+         * Defaults to false
+         */
+        isInEmbeddedEditor?: boolean;
+        /**
+         * Is the diff editor should render overview ruler
+         * Defaults to true
+         */
+        renderOverviewRuler?: boolean;
+        /**
+         * Control the wrapping of the diff editor.
+         */
+        diffWordWrap?: 'off' | 'on' | 'inherit';
+        /**
+         * Aria label for original editor.
+         */
+        originalAriaLabel?: string;
+        /**
+         * Aria label for modifed editor.
+         */
+        modifiedAriaLabel?: string;
+    }
+
+    /**
+     * An event describing that the configuration of the editor has changed.
+     */
+    export class ConfigurationChangedEvent {
+        hasChanged(id: EditorOption): boolean;
+    }
+
+    /**
+     * All computed editor options.
+     */
+    export interface IComputedEditorOptions {
+        get(id: T): FindComputedEditorOptionValueById;
+    }
+
+    export interface IEditorOption {
+        readonly id: K1;
+        readonly name: string;
+        defaultValue: V;
+    }
+
+    /**
+     * Configuration options for editor comments
+     */
+    export interface IEditorCommentsOptions {
+        /**
+         * Insert a space after the line comment token and inside the block comments tokens.
+         * Defaults to true.
+         */
+        insertSpace?: boolean;
+        /**
+         * Ignore empty lines when inserting line comments.
+         * Defaults to true.
+         */
+        ignoreEmptyLines?: boolean;
+    }
+
+    export type EditorCommentsOptions = Readonly>;
+
+    /**
+     * The kind of animation in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorBlinkingStyle {
+        /**
+         * Hidden
+         */
+        Hidden = 0,
+        /**
+         * Blinking
+         */
+        Blink = 1,
+        /**
+         * Blinking with smooth fading
+         */
+        Smooth = 2,
+        /**
+         * Blinking with prolonged filled state and smooth fading
+         */
+        Phase = 3,
+        /**
+         * Expand collapse animation on the y axis
+         */
+        Expand = 4,
+        /**
+         * No-Blinking
+         */
+        Solid = 5
+    }
+
+    /**
+     * The style in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorStyle {
+        /**
+         * As a vertical line (sitting between two characters).
+         */
+        Line = 1,
+        /**
+         * As a block (sitting on top of a character).
+         */
+        Block = 2,
+        /**
+         * As a horizontal line (sitting under a character).
+         */
+        Underline = 3,
+        /**
+         * As a thin vertical line (sitting between two characters).
+         */
+        LineThin = 4,
+        /**
+         * As an outlined block (sitting on top of a character).
+         */
+        BlockOutline = 5,
+        /**
+         * As a thin horizontal line (sitting under a character).
+         */
+        UnderlineThin = 6
+    }
+
+    /**
+     * Configuration options for editor find widget
+     */
+    export interface IEditorFindOptions {
+        /**
+        * Controls whether the cursor should move to find matches while typing.
+        */
+        cursorMoveOnType?: boolean;
+        /**
+         * Controls if we seed search string in the Find Widget with editor selection.
+         */
+        seedSearchStringFromSelection?: boolean;
+        /**
+         * Controls if Find in Selection flag is turned on in the editor.
+         */
+        autoFindInSelection?: 'never' | 'always' | 'multiline';
+        addExtraSpaceOnTop?: boolean;
+        /**
+         * Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found
+         */
+        loop?: boolean;
+    }
+
+    export type EditorFindOptions = Readonly>;
+
+    export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
+
+    /**
+     * Configuration options for go to location
+     */
+    export interface IGotoLocationOptions {
+        multiple?: GoToLocationValues;
+        multipleDefinitions?: GoToLocationValues;
+        multipleTypeDefinitions?: GoToLocationValues;
+        multipleDeclarations?: GoToLocationValues;
+        multipleImplementations?: GoToLocationValues;
+        multipleReferences?: GoToLocationValues;
+        alternativeDefinitionCommand?: string;
+        alternativeTypeDefinitionCommand?: string;
+        alternativeDeclarationCommand?: string;
+        alternativeImplementationCommand?: string;
+        alternativeReferenceCommand?: string;
+    }
+
+    export type GoToLocationOptions = Readonly>;
+
+    /**
+     * Configuration options for editor hover
+     */
+    export interface IEditorHoverOptions {
+        /**
+         * Enable the hover.
+         * Defaults to true.
+         */
+        enabled?: boolean;
+        /**
+         * Delay for showing the hover.
+         * Defaults to 300.
+         */
+        delay?: number;
+        /**
+         * Is the hover sticky such that it can be clicked and its contents selected?
+         * Defaults to true.
+         */
+        sticky?: boolean;
+    }
+
+    export type EditorHoverOptions = Readonly>;
+
+    /**
+     * A description for the overview ruler position.
+     */
+    export interface OverviewRulerPosition {
+        /**
+         * Width of the overview ruler
+         */
+        readonly width: number;
+        /**
+         * Height of the overview ruler
+         */
+        readonly height: number;
+        /**
+         * Top position for the overview ruler
+         */
+        readonly top: number;
+        /**
+         * Right position for the overview ruler
+         */
+        readonly right: number;
+    }
+
+    export enum RenderMinimap {
+        None = 0,
+        Text = 1,
+        Blocks = 2
+    }
+
+    /**
+     * The internal layout details of the editor.
+     */
+    export interface EditorLayoutInfo {
+        /**
+         * Full editor width.
+         */
+        readonly width: number;
+        /**
+         * Full editor height.
+         */
+        readonly height: number;
+        /**
+         * Left position for the glyph margin.
+         */
+        readonly glyphMarginLeft: number;
+        /**
+         * The width of the glyph margin.
+         */
+        readonly glyphMarginWidth: number;
+        /**
+         * Left position for the line numbers.
+         */
+        readonly lineNumbersLeft: number;
+        /**
+         * The width of the line numbers.
+         */
+        readonly lineNumbersWidth: number;
+        /**
+         * Left position for the line decorations.
+         */
+        readonly decorationsLeft: number;
+        /**
+         * The width of the line decorations.
+         */
+        readonly decorationsWidth: number;
+        /**
+         * Left position for the content (actual text)
+         */
+        readonly contentLeft: number;
+        /**
+         * The width of the content (actual text)
+         */
+        readonly contentWidth: number;
+        /**
+         * Layout information for the minimap
+         */
+        readonly minimap: EditorMinimapLayoutInfo;
+        /**
+         * The number of columns (of typical characters) fitting on a viewport line.
+         */
+        readonly viewportColumn: number;
+        readonly isWordWrapMinified: boolean;
+        readonly isViewportWrapping: boolean;
+        readonly wrappingColumn: number;
+        /**
+         * The width of the vertical scrollbar.
+         */
+        readonly verticalScrollbarWidth: number;
+        /**
+         * The height of the horizontal scrollbar.
+         */
+        readonly horizontalScrollbarHeight: number;
+        /**
+         * The position of the overview ruler.
+         */
+        readonly overviewRuler: OverviewRulerPosition;
+    }
+
+    /**
+     * The internal layout details of the editor.
+     */
+    export interface EditorMinimapLayoutInfo {
+        readonly renderMinimap: RenderMinimap;
+        readonly minimapLeft: number;
+        readonly minimapWidth: number;
+        readonly minimapHeightIsEditorHeight: boolean;
+        readonly minimapIsSampling: boolean;
+        readonly minimapScale: number;
+        readonly minimapLineHeight: number;
+        readonly minimapCanvasInnerWidth: number;
+        readonly minimapCanvasInnerHeight: number;
+        readonly minimapCanvasOuterWidth: number;
+        readonly minimapCanvasOuterHeight: number;
+    }
+
+    /**
+     * Configuration options for editor lightbulb
+     */
+    export interface IEditorLightbulbOptions {
+        /**
+         * Enable the lightbulb code action.
+         * Defaults to true.
+         */
+        enabled?: boolean;
+    }
+
+    export type EditorLightbulbOptions = Readonly>;
+
+    /**
+     * Configuration options for editor inlineHints
+     */
+    export interface IEditorInlineHintsOptions {
+        /**
+         * Enable the inline hints.
+         * Defaults to true.
+         */
+        enabled?: boolean;
+        /**
+         * Font size of inline hints.
+         * Default to 90% of the editor font size.
+         */
+        fontSize?: number;
+        /**
+         * Font family of inline hints.
+         * Defaults to editor font family.
+         */
+        fontFamily?: string;
+    }
+
+    export type EditorInlineHintsOptions = Readonly>;
+
+    /**
+     * Configuration options for editor minimap
+     */
+    export interface IEditorMinimapOptions {
+        /**
+         * Enable the rendering of the minimap.
+         * Defaults to true.
+         */
+        enabled?: boolean;
+        /**
+         * Control the side of the minimap in editor.
+         * Defaults to 'right'.
+         */
+        side?: 'right' | 'left';
+        /**
+         * Control the minimap rendering mode.
+         * Defaults to 'actual'.
+         */
+        size?: 'proportional' | 'fill' | 'fit';
+        /**
+         * Control the rendering of the minimap slider.
+         * Defaults to 'mouseover'.
+         */
+        showSlider?: 'always' | 'mouseover';
+        /**
+         * Render the actual text on a line (as opposed to color blocks).
+         * Defaults to true.
+         */
+        renderCharacters?: boolean;
+        /**
+         * Limit the width of the minimap to render at most a certain number of columns.
+         * Defaults to 120.
+         */
+        maxColumn?: number;
+        /**
+         * Relative size of the font in the minimap. Defaults to 1.
+         */
+        scale?: number;
+    }
+
+    export type EditorMinimapOptions = Readonly>;
+
+    /**
+     * Configuration options for editor padding
+     */
+    export interface IEditorPaddingOptions {
+        /**
+         * Spacing between top edge of editor and first line.
+         */
+        top?: number;
+        /**
+         * Spacing between bottom edge of editor and last line.
+         */
+        bottom?: number;
+    }
+
+    export interface InternalEditorPaddingOptions {
+        readonly top: number;
+        readonly bottom: number;
+    }
+
+    /**
+     * Configuration options for parameter hints
+     */
+    export interface IEditorParameterHintOptions {
+        /**
+         * Enable parameter hints.
+         * Defaults to true.
+         */
+        enabled?: boolean;
+        /**
+         * Enable cycling of parameter hints.
+         * Defaults to false.
+         */
+        cycle?: boolean;
+    }
+
+    export type InternalParameterHintOptions = Readonly>;
+
+    /**
+     * Configuration options for quick suggestions
+     */
+    export interface IQuickSuggestionsOptions {
+        other?: boolean;
+        comments?: boolean;
+        strings?: boolean;
+    }
+
+    export type ValidQuickSuggestionsOptions = boolean | Readonly>;
+
+    export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
+
+    export enum RenderLineNumbersType {
+        Off = 0,
+        On = 1,
+        Relative = 2,
+        Interval = 3,
+        Custom = 4
+    }
+
+    export interface InternalEditorRenderLineNumbersOptions {
+        readonly renderType: RenderLineNumbersType;
+        readonly renderFn: ((lineNumber: number) => string) | null;
+    }
+
+    export interface IRulerOption {
+        readonly column: number;
+        readonly color: string | null;
+    }
+
+    /**
+     * Configuration options for editor scrollbars
+     */
+    export interface IEditorScrollbarOptions {
+        /**
+         * The size of arrows (if displayed).
+         * Defaults to 11.
+         */
+        arrowSize?: number;
+        /**
+         * Render vertical scrollbar.
+         * Defaults to 'auto'.
+         */
+        vertical?: 'auto' | 'visible' | 'hidden';
+        /**
+         * Render horizontal scrollbar.
+         * Defaults to 'auto'.
+         */
+        horizontal?: 'auto' | 'visible' | 'hidden';
+        /**
+         * Cast horizontal and vertical shadows when the content is scrolled.
+         * Defaults to true.
+         */
+        useShadows?: boolean;
+        /**
+         * Render arrows at the top and bottom of the vertical scrollbar.
+         * Defaults to false.
+         */
+        verticalHasArrows?: boolean;
+        /**
+         * Render arrows at the left and right of the horizontal scrollbar.
+         * Defaults to false.
+         */
+        horizontalHasArrows?: boolean;
+        /**
+         * Listen to mouse wheel events and react to them by scrolling.
+         * Defaults to true.
+         */
+        handleMouseWheel?: boolean;
+        /**
+         * Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
+         * Defaults to true.
+         */
+        alwaysConsumeMouseWheel?: boolean;
+        /**
+         * Height in pixels for the horizontal scrollbar.
+         * Defaults to 10 (px).
+         */
+        horizontalScrollbarSize?: number;
+        /**
+         * Width in pixels for the vertical scrollbar.
+         * Defaults to 10 (px).
+         */
+        verticalScrollbarSize?: number;
+        /**
+         * Width in pixels for the vertical slider.
+         * Defaults to `verticalScrollbarSize`.
+         */
+        verticalSliderSize?: number;
+        /**
+         * Height in pixels for the horizontal slider.
+         * Defaults to `horizontalScrollbarSize`.
+         */
+        horizontalSliderSize?: number;
+        /**
+         * Scroll gutter clicks move by page vs jump to position.
+         * Defaults to false.
+         */
+        scrollByPage?: boolean;
+    }
+
+    export interface InternalEditorScrollbarOptions {
+        readonly arrowSize: number;
+        readonly vertical: ScrollbarVisibility;
+        readonly horizontal: ScrollbarVisibility;
+        readonly useShadows: boolean;
+        readonly verticalHasArrows: boolean;
+        readonly horizontalHasArrows: boolean;
+        readonly handleMouseWheel: boolean;
+        readonly alwaysConsumeMouseWheel: boolean;
+        readonly horizontalScrollbarSize: number;
+        readonly horizontalSliderSize: number;
+        readonly verticalScrollbarSize: number;
+        readonly verticalSliderSize: number;
+        readonly scrollByPage: boolean;
+    }
+
+    /**
+     * Configuration options for editor suggest widget
+     */
+    export interface ISuggestOptions {
+        /**
+         * Overwrite word ends on accept. Default to false.
+         */
+        insertMode?: 'insert' | 'replace';
+        /**
+         * Enable graceful matching. Defaults to true.
+         */
+        filterGraceful?: boolean;
+        /**
+         * Prevent quick suggestions when a snippet is active. Defaults to true.
+         */
+        snippetsPreventQuickSuggestions?: boolean;
+        /**
+         * Favours words that appear close to the cursor.
+         */
+        localityBonus?: boolean;
+        /**
+         * Enable using global storage for remembering suggestions.
+         */
+        shareSuggestSelections?: boolean;
+        /**
+         * Enable or disable icons in suggestions. Defaults to true.
+         */
+        showIcons?: boolean;
+        /**
+         * Enable or disable the suggest status bar.
+         */
+        showStatusBar?: boolean;
+        /**
+         * Show details inline with the label. Defaults to true.
+         */
+        showInlineDetails?: boolean;
+        /**
+         * Show method-suggestions.
+         */
+        showMethods?: boolean;
+        /**
+         * Show function-suggestions.
+         */
+        showFunctions?: boolean;
+        /**
+         * Show constructor-suggestions.
+         */
+        showConstructors?: boolean;
+        /**
+         * Show field-suggestions.
+         */
+        showFields?: boolean;
+        /**
+         * Show variable-suggestions.
+         */
+        showVariables?: boolean;
+        /**
+         * Show class-suggestions.
+         */
+        showClasses?: boolean;
+        /**
+         * Show struct-suggestions.
+         */
+        showStructs?: boolean;
+        /**
+         * Show interface-suggestions.
+         */
+        showInterfaces?: boolean;
+        /**
+         * Show module-suggestions.
+         */
+        showModules?: boolean;
+        /**
+         * Show property-suggestions.
+         */
+        showProperties?: boolean;
+        /**
+         * Show event-suggestions.
+         */
+        showEvents?: boolean;
+        /**
+         * Show operator-suggestions.
+         */
+        showOperators?: boolean;
+        /**
+         * Show unit-suggestions.
+         */
+        showUnits?: boolean;
+        /**
+         * Show value-suggestions.
+         */
+        showValues?: boolean;
+        /**
+         * Show constant-suggestions.
+         */
+        showConstants?: boolean;
+        /**
+         * Show enum-suggestions.
+         */
+        showEnums?: boolean;
+        /**
+         * Show enumMember-suggestions.
+         */
+        showEnumMembers?: boolean;
+        /**
+         * Show keyword-suggestions.
+         */
+        showKeywords?: boolean;
+        /**
+         * Show text-suggestions.
+         */
+        showWords?: boolean;
+        /**
+         * Show color-suggestions.
+         */
+        showColors?: boolean;
+        /**
+         * Show file-suggestions.
+         */
+        showFiles?: boolean;
+        /**
+         * Show reference-suggestions.
+         */
+        showReferences?: boolean;
+        /**
+         * Show folder-suggestions.
+         */
+        showFolders?: boolean;
+        /**
+         * Show typeParameter-suggestions.
+         */
+        showTypeParameters?: boolean;
+        /**
+         * Show issue-suggestions.
+         */
+        showIssues?: boolean;
+        /**
+         * Show user-suggestions.
+         */
+        showUsers?: boolean;
+        /**
+         * Show snippet-suggestions.
+         */
+        showSnippets?: boolean;
+    }
+
+    export type InternalSuggestOptions = Readonly>;
+
+    export interface ISmartSelectOptions {
+        selectLeadingAndTrailingWhitespace?: boolean;
+    }
+
+    export type SmartSelectOptions = Readonly>;
+
+    /**
+     * Describes how to indent wrapped lines.
+     */
+    export enum WrappingIndent {
+        /**
+         * No indentation => wrapped lines begin at column 1.
+         */
+        None = 0,
+        /**
+         * Same => wrapped lines get the same indentation as the parent.
+         */
+        Same = 1,
+        /**
+         * Indent => wrapped lines get +1 indentation toward the parent.
+         */
+        Indent = 2,
+        /**
+         * DeepIndent => wrapped lines get +2 indentation toward the parent.
+         */
+        DeepIndent = 3
+    }
+
+    export interface EditorWrappingInfo {
+        readonly isDominatedByLongLines: boolean;
+        readonly isWordWrapMinified: boolean;
+        readonly isViewportWrapping: boolean;
+        readonly wrappingColumn: number;
+    }
+
+    export enum EditorOption {
+        acceptSuggestionOnCommitCharacter = 0,
+        acceptSuggestionOnEnter = 1,
+        accessibilitySupport = 2,
+        accessibilityPageSize = 3,
+        ariaLabel = 4,
+        autoClosingBrackets = 5,
+        autoClosingOvertype = 6,
+        autoClosingQuotes = 7,
+        autoIndent = 8,
+        automaticLayout = 9,
+        autoSurround = 10,
+        codeLens = 11,
+        codeLensFontFamily = 12,
+        codeLensFontSize = 13,
+        colorDecorators = 14,
+        columnSelection = 15,
+        comments = 16,
+        contextmenu = 17,
+        copyWithSyntaxHighlighting = 18,
+        cursorBlinking = 19,
+        cursorSmoothCaretAnimation = 20,
+        cursorStyle = 21,
+        cursorSurroundingLines = 22,
+        cursorSurroundingLinesStyle = 23,
+        cursorWidth = 24,
+        disableLayerHinting = 25,
+        disableMonospaceOptimizations = 26,
+        dragAndDrop = 27,
+        emptySelectionClipboard = 28,
+        extraEditorClassName = 29,
+        fastScrollSensitivity = 30,
+        find = 31,
+        fixedOverflowWidgets = 32,
+        folding = 33,
+        foldingStrategy = 34,
+        foldingHighlight = 35,
+        unfoldOnClickAfterEndOfLine = 36,
+        fontFamily = 37,
+        fontInfo = 38,
+        fontLigatures = 39,
+        fontSize = 40,
+        fontWeight = 41,
+        formatOnPaste = 42,
+        formatOnType = 43,
+        glyphMargin = 44,
+        gotoLocation = 45,
+        hideCursorInOverviewRuler = 46,
+        highlightActiveIndentGuide = 47,
+        hover = 48,
+        inDiffEditor = 49,
+        letterSpacing = 50,
+        lightbulb = 51,
+        lineDecorationsWidth = 52,
+        lineHeight = 53,
+        lineNumbers = 54,
+        lineNumbersMinChars = 55,
+        linkedEditing = 56,
+        links = 57,
+        matchBrackets = 58,
+        minimap = 59,
+        mouseStyle = 60,
+        mouseWheelScrollSensitivity = 61,
+        mouseWheelZoom = 62,
+        multiCursorMergeOverlapping = 63,
+        multiCursorModifier = 64,
+        multiCursorPaste = 65,
+        occurrencesHighlight = 66,
+        overviewRulerBorder = 67,
+        overviewRulerLanes = 68,
+        padding = 69,
+        parameterHints = 70,
+        peekWidgetDefaultFocus = 71,
+        definitionLinkOpensInPeek = 72,
+        quickSuggestions = 73,
+        quickSuggestionsDelay = 74,
+        readOnly = 75,
+        renameOnType = 76,
+        renderControlCharacters = 77,
+        renderIndentGuides = 78,
+        renderFinalNewline = 79,
+        renderLineHighlight = 80,
+        renderLineHighlightOnlyWhenFocus = 81,
+        renderValidationDecorations = 82,
+        renderWhitespace = 83,
+        revealHorizontalRightPadding = 84,
+        roundedSelection = 85,
+        rulers = 86,
+        scrollbar = 87,
+        scrollBeyondLastColumn = 88,
+        scrollBeyondLastLine = 89,
+        scrollPredominantAxis = 90,
+        selectionClipboard = 91,
+        selectionHighlight = 92,
+        selectOnLineNumbers = 93,
+        showFoldingControls = 94,
+        showUnused = 95,
+        snippetSuggestions = 96,
+        smartSelect = 97,
+        smoothScrolling = 98,
+        stickyTabStops = 99,
+        stopRenderingLineAfter = 100,
+        suggest = 101,
+        suggestFontSize = 102,
+        suggestLineHeight = 103,
+        suggestOnTriggerCharacters = 104,
+        suggestSelection = 105,
+        tabCompletion = 106,
+        tabIndex = 107,
+        unusualLineTerminators = 108,
+        useTabStops = 109,
+        wordSeparators = 110,
+        wordWrap = 111,
+        wordWrapBreakAfterCharacters = 112,
+        wordWrapBreakBeforeCharacters = 113,
+        wordWrapColumn = 114,
+        wordWrapOverride1 = 115,
+        wordWrapOverride2 = 116,
+        wrappingIndent = 117,
+        wrappingStrategy = 118,
+        showDeprecated = 119,
+        inlineHints = 120,
+        editorClassName = 121,
+        pixelRatio = 122,
+        tabFocusMode = 123,
+        layoutInfo = 124,
+        wrappingInfo = 125
+    }
+    export const EditorOptions: {
+        acceptSuggestionOnCommitCharacter: IEditorOption;
+        acceptSuggestionOnEnter: IEditorOption;
+        accessibilitySupport: IEditorOption;
+        accessibilityPageSize: IEditorOption;
+        ariaLabel: IEditorOption;
+        autoClosingBrackets: IEditorOption;
+        autoClosingOvertype: IEditorOption;
+        autoClosingQuotes: IEditorOption;
+        autoIndent: IEditorOption;
+        automaticLayout: IEditorOption;
+        autoSurround: IEditorOption;
+        stickyTabStops: IEditorOption;
+        codeLens: IEditorOption;
+        codeLensFontFamily: IEditorOption;
+        codeLensFontSize: IEditorOption;
+        colorDecorators: IEditorOption;
+        columnSelection: IEditorOption;
+        comments: IEditorOption;
+        contextmenu: IEditorOption;
+        copyWithSyntaxHighlighting: IEditorOption;
+        cursorBlinking: IEditorOption;
+        cursorSmoothCaretAnimation: IEditorOption;
+        cursorStyle: IEditorOption;
+        cursorSurroundingLines: IEditorOption;
+        cursorSurroundingLinesStyle: IEditorOption;
+        cursorWidth: IEditorOption;
+        disableLayerHinting: IEditorOption;
+        disableMonospaceOptimizations: IEditorOption;
+        dragAndDrop: IEditorOption;
+        emptySelectionClipboard: IEditorOption;
+        extraEditorClassName: IEditorOption;
+        fastScrollSensitivity: IEditorOption;
+        find: IEditorOption;
+        fixedOverflowWidgets: IEditorOption;
+        folding: IEditorOption;
+        foldingStrategy: IEditorOption;
+        foldingHighlight: IEditorOption;
+        unfoldOnClickAfterEndOfLine: IEditorOption;
+        fontFamily: IEditorOption;
+        fontInfo: IEditorOption;
+        fontLigatures2: IEditorOption;
+        fontSize: IEditorOption;
+        fontWeight: IEditorOption;
+        formatOnPaste: IEditorOption;
+        formatOnType: IEditorOption;
+        glyphMargin: IEditorOption;
+        gotoLocation: IEditorOption;
+        hideCursorInOverviewRuler: IEditorOption;
+        highlightActiveIndentGuide: IEditorOption;
+        hover: IEditorOption;
+        inDiffEditor: IEditorOption;
+        letterSpacing: IEditorOption;
+        lightbulb: IEditorOption;
+        lineDecorationsWidth: IEditorOption;
+        lineHeight: IEditorOption;
+        lineNumbers: IEditorOption;
+        lineNumbersMinChars: IEditorOption;
+        linkedEditing: IEditorOption;
+        links: IEditorOption;
+        matchBrackets: IEditorOption;
+        minimap: IEditorOption;
+        mouseStyle: IEditorOption;
+        mouseWheelScrollSensitivity: IEditorOption;
+        mouseWheelZoom: IEditorOption;
+        multiCursorMergeOverlapping: IEditorOption;
+        multiCursorModifier: IEditorOption;
+        multiCursorPaste: IEditorOption;
+        occurrencesHighlight: IEditorOption;
+        overviewRulerBorder: IEditorOption;
+        overviewRulerLanes: IEditorOption;
+        padding: IEditorOption;
+        parameterHints: IEditorOption;
+        peekWidgetDefaultFocus: IEditorOption;
+        definitionLinkOpensInPeek: IEditorOption;
+        quickSuggestions: IEditorOption;
+        quickSuggestionsDelay: IEditorOption;
+        readOnly: IEditorOption;
+        renameOnType: IEditorOption;
+        renderControlCharacters: IEditorOption;
+        renderIndentGuides: IEditorOption;
+        renderFinalNewline: IEditorOption;
+        renderLineHighlight: IEditorOption;
+        renderLineHighlightOnlyWhenFocus: IEditorOption;
+        renderValidationDecorations: IEditorOption;
+        renderWhitespace: IEditorOption;
+        revealHorizontalRightPadding: IEditorOption;
+        roundedSelection: IEditorOption;
+        rulers: IEditorOption;
+        scrollbar: IEditorOption;
+        scrollBeyondLastColumn: IEditorOption;
+        scrollBeyondLastLine: IEditorOption;
+        scrollPredominantAxis: IEditorOption;
+        selectionClipboard: IEditorOption;
+        selectionHighlight: IEditorOption;
+        selectOnLineNumbers: IEditorOption;
+        showFoldingControls: IEditorOption;
+        showUnused: IEditorOption;
+        showDeprecated: IEditorOption;
+        inlineHints: IEditorOption;
+        snippetSuggestions: IEditorOption;
+        smartSelect: IEditorOption;
+        smoothScrolling: IEditorOption;
+        stopRenderingLineAfter: IEditorOption;
+        suggest: IEditorOption;
+        suggestFontSize: IEditorOption;
+        suggestLineHeight: IEditorOption;
+        suggestOnTriggerCharacters: IEditorOption;
+        suggestSelection: IEditorOption;
+        tabCompletion: IEditorOption;
+        tabIndex: IEditorOption;
+        unusualLineTerminators: IEditorOption;
+        useTabStops: IEditorOption;
+        wordSeparators: IEditorOption;
+        wordWrap: IEditorOption;
+        wordWrapBreakAfterCharacters: IEditorOption;
+        wordWrapBreakBeforeCharacters: IEditorOption;
+        wordWrapColumn: IEditorOption;
+        wordWrapOverride1: IEditorOption;
+        wordWrapOverride2: IEditorOption;
+        wrappingIndent: IEditorOption;
+        wrappingStrategy: IEditorOption;
+        editorClassName: IEditorOption;
+        pixelRatio: IEditorOption;
+        tabFocusMode: IEditorOption;
+        layoutInfo: IEditorOption;
+        wrappingInfo: IEditorOption;
+    };
+
+    type EditorOptionsType = typeof EditorOptions;
+
+    type FindEditorOptionsKeyById = {
+        [K in keyof EditorOptionsType]: EditorOptionsType[K]['id'] extends T ? K : never;
+    }[keyof EditorOptionsType];
+
+    type ComputedEditorOptionValue> = T extends IEditorOption ? R : never;
+
+    export type FindComputedEditorOptionValueById = NonNullable]>>;
+
+    /**
+     * A view zone is a full horizontal rectangle that 'pushes' text down.
+     * The editor reserves space for view zones when rendering.
+     */
+    export interface IViewZone {
+        /**
+         * The line number after which this zone should appear.
+         * Use 0 to place a view zone before the first line number.
+         */
+        afterLineNumber: number;
+        /**
+         * The column after which this zone should appear.
+         * If not set, the maxLineColumn of `afterLineNumber` will be used.
+         */
+        afterColumn?: number;
+        /**
+         * Suppress mouse down events.
+         * If set, the editor will attach a mouse down listener to the view zone and .preventDefault on it.
+         * Defaults to false
+         */
+        suppressMouseDown?: boolean;
+        /**
+         * The height in lines of the view zone.
+         * If specified, `heightInPx` will be used instead of this.
+         * If neither `heightInPx` nor `heightInLines` is specified, a default of `heightInLines` = 1 will be chosen.
+         */
+        heightInLines?: number;
+        /**
+         * The height in px of the view zone.
+         * If this is set, the editor will give preference to it rather than `heightInLines` above.
+         * If neither `heightInPx` nor `heightInLines` is specified, a default of `heightInLines` = 1 will be chosen.
+         */
+        heightInPx?: number;
+        /**
+         * The minimum width in px of the view zone.
+         * If this is set, the editor will ensure that the scroll width is >= than this value.
+         */
+        minWidthInPx?: number;
+        /**
+         * The dom node of the view zone
+         */
+        domNode: HTMLElement;
+        /**
+         * An optional dom node for the view zone that will be placed in the margin area.
+         */
+        marginDomNode?: HTMLElement | null;
+        /**
+         * Callback which gives the relative top of the view zone as it appears (taking scrolling into account).
+         */
+        onDomNodeTop?: (top: number) => void;
+        /**
+         * Callback which gives the height in pixels of the view zone.
+         */
+        onComputedHeight?: (height: number) => void;
+    }
+
+    /**
+     * An accessor that allows for zones to be added or removed.
+     */
+    export interface IViewZoneChangeAccessor {
+        /**
+         * Create a new view zone.
+         * @param zone Zone to create
+         * @return A unique identifier to the view zone.
+         */
+        addZone(zone: IViewZone): string;
+        /**
+         * Remove a zone
+         * @param id A unique identifier to the view zone, as returned by the `addZone` call.
+         */
+        removeZone(id: string): void;
+        /**
+         * Change a zone's position.
+         * The editor will rescan the `afterLineNumber` and `afterColumn` properties of a view zone.
+         */
+        layoutZone(id: string): void;
+    }
+
+    /**
+     * A positioning preference for rendering content widgets.
+     */
+    export enum ContentWidgetPositionPreference {
+        /**
+         * Place the content widget exactly at a position
+         */
+        EXACT = 0,
+        /**
+         * Place the content widget above a position
+         */
+        ABOVE = 1,
+        /**
+         * Place the content widget below a position
+         */
+        BELOW = 2
+    }
+
+    /**
+     * A position for rendering content widgets.
+     */
+    export interface IContentWidgetPosition {
+        /**
+         * Desired position for the content widget.
+         * `preference` will also affect the placement.
+         */
+        position: IPosition | null;
+        /**
+         * Optionally, a range can be provided to further
+         * define the position of the content widget.
+         */
+        range?: IRange | null;
+        /**
+         * Placement preference for position, in order of preference.
+         */
+        preference: ContentWidgetPositionPreference[];
+    }
+
+    /**
+     * A content widget renders inline with the text and can be easily placed 'near' an editor position.
+     */
+    export interface IContentWidget {
+        /**
+         * Render this content widget in a location where it could overflow the editor's view dom node.
+         */
+        allowEditorOverflow?: boolean;
+        suppressMouseDown?: boolean;
+        /**
+         * Get a unique identifier of the content widget.
+         */
+        getId(): string;
+        /**
+         * Get the dom node of the content widget.
+         */
+        getDomNode(): HTMLElement;
+        /**
+         * Get the placement of the content widget.
+         * If null is returned, the content widget will be placed off screen.
+         */
+        getPosition(): IContentWidgetPosition | null;
+        /**
+         * Optional function that is invoked before rendering
+         * the content widget. If a dimension is returned the editor will
+         * attempt to use it.
+         */
+        beforeRender?(): IDimension | null;
+        /**
+         * Optional function that is invoked after rendering the content
+         * widget. Is being invoked with the selected position preference
+         * or `null` if not rendered.
+         */
+        afterRender?(position: ContentWidgetPositionPreference | null): void;
+    }
+
+    /**
+     * A positioning preference for rendering overlay widgets.
+     */
+    export enum OverlayWidgetPositionPreference {
+        /**
+         * Position the overlay widget in the top right corner
+         */
+        TOP_RIGHT_CORNER = 0,
+        /**
+         * Position the overlay widget in the bottom right corner
+         */
+        BOTTOM_RIGHT_CORNER = 1,
+        /**
+         * Position the overlay widget in the top center
+         */
+        TOP_CENTER = 2
+    }
+
+    /**
+     * A position for rendering overlay widgets.
+     */
+    export interface IOverlayWidgetPosition {
+        /**
+         * The position preference for the overlay widget.
+         */
+        preference: OverlayWidgetPositionPreference | null;
+    }
+
+    /**
+     * An overlay widgets renders on top of the text.
+     */
+    export interface IOverlayWidget {
+        /**
+         * Get a unique identifier of the overlay widget.
+         */
+        getId(): string;
+        /**
+         * Get the dom node of the overlay widget.
+         */
+        getDomNode(): HTMLElement;
+        /**
+         * Get the placement of the overlay widget.
+         * If null is returned, the overlay widget is responsible to place itself.
+         */
+        getPosition(): IOverlayWidgetPosition | null;
+    }
+
+    /**
+     * Type of hit element with the mouse in the editor.
+     */
+    export enum MouseTargetType {
+        /**
+         * Mouse is on top of an unknown element.
+         */
+        UNKNOWN = 0,
+        /**
+         * Mouse is on top of the textarea used for input.
+         */
+        TEXTAREA = 1,
+        /**
+         * Mouse is on top of the glyph margin
+         */
+        GUTTER_GLYPH_MARGIN = 2,
+        /**
+         * Mouse is on top of the line numbers
+         */
+        GUTTER_LINE_NUMBERS = 3,
+        /**
+         * Mouse is on top of the line decorations
+         */
+        GUTTER_LINE_DECORATIONS = 4,
+        /**
+         * Mouse is on top of the whitespace left in the gutter by a view zone.
+         */
+        GUTTER_VIEW_ZONE = 5,
+        /**
+         * Mouse is on top of text in the content.
+         */
+        CONTENT_TEXT = 6,
+        /**
+         * Mouse is on top of empty space in the content (e.g. after line text or below last line)
+         */
+        CONTENT_EMPTY = 7,
+        /**
+         * Mouse is on top of a view zone in the content.
+         */
+        CONTENT_VIEW_ZONE = 8,
+        /**
+         * Mouse is on top of a content widget.
+         */
+        CONTENT_WIDGET = 9,
+        /**
+         * Mouse is on top of the decorations overview ruler.
+         */
+        OVERVIEW_RULER = 10,
+        /**
+         * Mouse is on top of a scrollbar.
+         */
+        SCROLLBAR = 11,
+        /**
+         * Mouse is on top of an overlay widget.
+         */
+        OVERLAY_WIDGET = 12,
+        /**
+         * Mouse is outside of the editor.
+         */
+        OUTSIDE_EDITOR = 13
+    }
+
+    /**
+     * Target hit with the mouse in the editor.
+     */
+    export interface IMouseTarget {
+        /**
+         * The target element
+         */
+        readonly element: Element | null;
+        /**
+         * The target type
+         */
+        readonly type: MouseTargetType;
+        /**
+         * The 'approximate' editor position
+         */
+        readonly position: Position | null;
+        /**
+         * Desired mouse column (e.g. when position.column gets clamped to text length -- clicking after text on a line).
+         */
+        readonly mouseColumn: number;
+        /**
+         * The 'approximate' editor range
+         */
+        readonly range: Range | null;
+        /**
+         * Some extra detail.
+         */
+        readonly detail: any;
+    }
+
+    /**
+     * A mouse event originating from the editor.
+     */
+    export interface IEditorMouseEvent {
+        readonly event: IMouseEvent;
+        readonly target: IMouseTarget;
+    }
+
+    export interface IPartialEditorMouseEvent {
+        readonly event: IMouseEvent;
+        readonly target: IMouseTarget | null;
+    }
+
+    /**
+     * A paste event originating from the editor.
+     */
+    export interface IPasteEvent {
+        readonly range: Range;
+        readonly mode: string | null;
+    }
+
+    export interface IEditorConstructionOptions extends IEditorOptions {
+        /**
+         * The initial editor dimension (to avoid measuring the container).
+         */
+        dimension?: IDimension;
+        /**
+         * Place overflow widgets inside an external DOM node.
+         * Defaults to an internal DOM node.
+         */
+        overflowWidgetsDomNode?: HTMLElement;
+    }
+
+    export interface IDiffEditorConstructionOptions extends IDiffEditorOptions {
+        /**
+         * The initial editor dimension (to avoid measuring the container).
+         */
+        dimension?: IDimension;
+        /**
+         * Place overflow widgets inside an external DOM node.
+         * Defaults to an internal DOM node.
+         */
+        overflowWidgetsDomNode?: HTMLElement;
+    }
+
+    /**
+     * A rich code editor.
+     */
+    export interface ICodeEditor extends IEditor {
+        /**
+         * An event emitted when the content of the current model has changed.
+         * @event
+         */
+        onDidChangeModelContent(listener: (e: IModelContentChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the language of the current model has changed.
+         * @event
+         */
+        onDidChangeModelLanguage(listener: (e: IModelLanguageChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the language configuration of the current model has changed.
+         * @event
+         */
+        onDidChangeModelLanguageConfiguration(listener: (e: IModelLanguageConfigurationChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the options of the current model has changed.
+         * @event
+         */
+        onDidChangeModelOptions(listener: (e: IModelOptionsChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the configuration of the editor has changed. (e.g. `editor.updateOptions()`)
+         * @event
+         */
+        onDidChangeConfiguration(listener: (e: ConfigurationChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the cursor position has changed.
+         * @event
+         */
+        onDidChangeCursorPosition(listener: (e: ICursorPositionChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the cursor selection has changed.
+         * @event
+         */
+        onDidChangeCursorSelection(listener: (e: ICursorSelectionChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the model of this editor has changed (e.g. `editor.setModel()`).
+         * @event
+         */
+        onDidChangeModel(listener: (e: IModelChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the decorations of the current model have changed.
+         * @event
+         */
+        onDidChangeModelDecorations(listener: (e: IModelDecorationsChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the text inside this editor gained focus (i.e. cursor starts blinking).
+         * @event
+         */
+        onDidFocusEditorText(listener: () => void): IDisposable;
+        /**
+         * An event emitted when the text inside this editor lost focus (i.e. cursor stops blinking).
+         * @event
+         */
+        onDidBlurEditorText(listener: () => void): IDisposable;
+        /**
+         * An event emitted when the text inside this editor or an editor widget gained focus.
+         * @event
+         */
+        onDidFocusEditorWidget(listener: () => void): IDisposable;
+        /**
+         * An event emitted when the text inside this editor or an editor widget lost focus.
+         * @event
+         */
+        onDidBlurEditorWidget(listener: () => void): IDisposable;
+        /**
+         * An event emitted after composition has started.
+         */
+        onDidCompositionStart(listener: () => void): IDisposable;
+        /**
+         * An event emitted after composition has ended.
+         */
+        onDidCompositionEnd(listener: () => void): IDisposable;
+        /**
+         * An event emitted when editing failed because the editor is read-only.
+         * @event
+         */
+        onDidAttemptReadOnlyEdit(listener: () => void): IDisposable;
+        /**
+         * An event emitted when users paste text in the editor.
+         * @event
+         */
+        onDidPaste(listener: (e: IPasteEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "mouseup".
+         * @event
+         */
+        onMouseUp(listener: (e: IEditorMouseEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "mousedown".
+         * @event
+         */
+        onMouseDown(listener: (e: IEditorMouseEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "contextmenu".
+         * @event
+         */
+        onContextMenu(listener: (e: IEditorMouseEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "mousemove".
+         * @event
+         */
+        onMouseMove(listener: (e: IEditorMouseEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "mouseleave".
+         * @event
+         */
+        onMouseLeave(listener: (e: IPartialEditorMouseEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "keyup".
+         * @event
+         */
+        onKeyUp(listener: (e: IKeyboardEvent) => void): IDisposable;
+        /**
+         * An event emitted on a "keydown".
+         * @event
+         */
+        onKeyDown(listener: (e: IKeyboardEvent) => void): IDisposable;
+        /**
+         * An event emitted when the layout of the editor has changed.
+         * @event
+         */
+        onDidLayoutChange(listener: (e: EditorLayoutInfo) => void): IDisposable;
+        /**
+         * An event emitted when the content width or content height in the editor has changed.
+         * @event
+         */
+        onDidContentSizeChange(listener: (e: IContentSizeChangedEvent) => void): IDisposable;
+        /**
+         * An event emitted when the scroll in the editor has changed.
+         * @event
+         */
+        onDidScrollChange(listener: (e: IScrollEvent) => void): IDisposable;
+        /**
+         * Saves current view state of the editor in a serializable object.
+         */
+        saveViewState(): ICodeEditorViewState | null;
+        /**
+         * Restores the view state of the editor from a serializable object generated by `saveViewState`.
+         */
+        restoreViewState(state: ICodeEditorViewState): void;
+        /**
+         * Returns true if the text inside this editor or an editor widget has focus.
+         */
+        hasWidgetFocus(): boolean;
+        /**
+         * Get a contribution of this editor.
+         * @id Unique identifier of the contribution.
+         * @return The contribution or null if contribution not found.
+         */
+        getContribution(id: string): T;
+        /**
+         * Type the getModel() of IEditor.
+         */
+        getModel(): ITextModel | null;
+        /**
+         * Sets the current model attached to this editor.
+         * If the previous model was created by the editor via the value key in the options
+         * literal object, it will be destroyed. Otherwise, if the previous model was set
+         * via setModel, or the model key in the options literal object, the previous model
+         * will not be destroyed.
+         * It is safe to call setModel(null) to simply detach the current model from the editor.
+         */
+        setModel(model: ITextModel | null): void;
+        /**
+         * Gets all the editor computed options.
+         */
+        getOptions(): IComputedEditorOptions;
+        /**
+         * Gets a specific editor option.
+         */
+        getOption(id: T): FindComputedEditorOptionValueById;
+        /**
+         * Returns the editor's configuration (without any validation or defaults).
+         */
+        getRawOptions(): IEditorOptions;
+        /**
+         * Get value of the current model attached to this editor.
+         * @see `ITextModel.getValue`
+         */
+        getValue(options?: {
+            preserveBOM: boolean;
+            lineEnding: string;
+        }): string;
+        /**
+         * Set the value of the current model attached to this editor.
+         * @see `ITextModel.setValue`
+         */
+        setValue(newValue: string): void;
+        /**
+         * Get the width of the editor's content.
+         * This is information that is "erased" when computing `scrollWidth = Math.max(contentWidth, width)`
+         */
+        getContentWidth(): number;
+        /**
+         * Get the scrollWidth of the editor's viewport.
+         */
+        getScrollWidth(): number;
+        /**
+         * Get the scrollLeft of the editor's viewport.
+         */
+        getScrollLeft(): number;
+        /**
+         * Get the height of the editor's content.
+         * This is information that is "erased" when computing `scrollHeight = Math.max(contentHeight, height)`
+         */
+        getContentHeight(): number;
+        /**
+         * Get the scrollHeight of the editor's viewport.
+         */
+        getScrollHeight(): number;
+        /**
+         * Get the scrollTop of the editor's viewport.
+         */
+        getScrollTop(): number;
+        /**
+         * Change the scrollLeft of the editor's viewport.
+         */
+        setScrollLeft(newScrollLeft: number, scrollType?: ScrollType): void;
+        /**
+         * Change the scrollTop of the editor's viewport.
+         */
+        setScrollTop(newScrollTop: number, scrollType?: ScrollType): void;
+        /**
+         * Change the scroll position of the editor's viewport.
+         */
+        setScrollPosition(position: INewScrollPosition, scrollType?: ScrollType): void;
+        /**
+         * Get an action that is a contribution to this editor.
+         * @id Unique identifier of the contribution.
+         * @return The action or null if action not found.
+         */
+        getAction(id: string): IEditorAction;
+        /**
+         * Execute a command on the editor.
+         * The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
+         * @param source The source of the call.
+         * @param command The command to execute
+         */
+        executeCommand(source: string | null | undefined, command: ICommand): void;
+        /**
+         * Create an "undo stop" in the undo-redo stack.
+         */
+        pushUndoStop(): boolean;
+        /**
+         * Remove the "undo stop" in the undo-redo stack.
+         */
+        popUndoStop(): boolean;
+        /**
+         * Execute edits on the editor.
+         * The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
+         * @param source The source of the call.
+         * @param edits The edits to execute.
+         * @param endCursorState Cursor state after the edits were applied.
+         */
+        executeEdits(source: string | null | undefined, edits: IIdentifiedSingleEditOperation[], endCursorState?: ICursorStateComputer | Selection[]): boolean;
+        /**
+         * Execute multiple (concomitant) commands on the editor.
+         * @param source The source of the call.
+         * @param command The commands to execute
+         */
+        executeCommands(source: string | null | undefined, commands: (ICommand | null)[]): void;
+        /**
+         * Get all the decorations on a line (filtering out decorations from other editors).
+         */
+        getLineDecorations(lineNumber: number): IModelDecoration[] | null;
+        /**
+         * All decorations added through this call will get the ownerId of this editor.
+         * @see `ITextModel.deltaDecorations`
+         */
+        deltaDecorations(oldDecorations: string[], newDecorations: IModelDeltaDecoration[]): string[];
+        /**
+         * Get the layout info for the editor.
+         */
+        getLayoutInfo(): EditorLayoutInfo;
+        /**
+         * Returns the ranges that are currently visible.
+         * Does not account for horizontal scrolling.
+         */
+        getVisibleRanges(): Range[];
+        /**
+         * Get the vertical position (top offset) for the line w.r.t. to the first line.
+         */
+        getTopForLineNumber(lineNumber: number): number;
+        /**
+         * Get the vertical position (top offset) for the position w.r.t. to the first line.
+         */
+        getTopForPosition(lineNumber: number, column: number): number;
+        /**
+         * Returns the editor's container dom node
+         */
+        getContainerDomNode(): HTMLElement;
+        /**
+         * Returns the editor's dom node
+         */
+        getDomNode(): HTMLElement | null;
+        /**
+         * Add a content widget. Widgets must have unique ids, otherwise they will be overwritten.
+         */
+        addContentWidget(widget: IContentWidget): void;
+        /**
+         * Layout/Reposition a content widget. This is a ping to the editor to call widget.getPosition()
+         * and update appropriately.
+         */
+        layoutContentWidget(widget: IContentWidget): void;
+        /**
+         * Remove a content widget.
+         */
+        removeContentWidget(widget: IContentWidget): void;
+        /**
+         * Add an overlay widget. Widgets must have unique ids, otherwise they will be overwritten.
+         */
+        addOverlayWidget(widget: IOverlayWidget): void;
+        /**
+         * Layout/Reposition an overlay widget. This is a ping to the editor to call widget.getPosition()
+         * and update appropriately.
+         */
+        layoutOverlayWidget(widget: IOverlayWidget): void;
+        /**
+         * Remove an overlay widget.
+         */
+        removeOverlayWidget(widget: IOverlayWidget): void;
+        /**
+         * Change the view zones. View zones are lost when a new model is attached to the editor.
+         */
+        changeViewZones(callback: (accessor: IViewZoneChangeAccessor) => void): void;
+        /**
+         * Get the horizontal position (left offset) for the column w.r.t to the beginning of the line.
+         * This method works only if the line `lineNumber` is currently rendered (in the editor's viewport).
+         * Use this method with caution.
+         */
+        getOffsetForColumn(lineNumber: number, column: number): number;
+        /**
+         * Force an editor render now.
+         */
+        render(forceRedraw?: boolean): void;
+        /**
+         * Get the hit test target at coordinates `clientX` and `clientY`.
+         * The coordinates are relative to the top-left of the viewport.
+         *
+         * @returns Hit test target or null if the coordinates fall outside the editor or the editor has no model.
+         */
+        getTargetAtClientPoint(clientX: number, clientY: number): IMouseTarget | null;
+        /**
+         * Get the visible position for `position`.
+         * The result position takes scrolling into account and is relative to the top left corner of the editor.
+         * Explanation 1: the results of this method will change for the same `position` if the user scrolls the editor.
+         * Explanation 2: the results of this method will not change if the container of the editor gets repositioned.
+         * Warning: the results of this method are inaccurate for positions that are outside the current editor viewport.
+         */
+        getScrolledVisiblePosition(position: IPosition): {
+            top: number;
+            left: number;
+            height: number;
+        } | null;
+        /**
+         * Apply the same font settings as the editor to `target`.
+         */
+        applyFontInfo(target: HTMLElement): void;
+    }
+
+    /**
+     * Information about a line in the diff editor
+     */
+    export interface IDiffLineInformation {
+        readonly equivalentLineNumber: number;
+    }
+
+    /**
+     * A rich diff editor.
+     */
+    export interface IDiffEditor extends IEditor {
+        /**
+         * @see ICodeEditor.getDomNode
+         */
+        getDomNode(): HTMLElement;
+        /**
+         * An event emitted when the diff information computed by this diff editor has been updated.
+         * @event
+         */
+        onDidUpdateDiff(listener: () => void): IDisposable;
+        /**
+         * Saves current view state of the editor in a serializable object.
+         */
+        saveViewState(): IDiffEditorViewState | null;
+        /**
+         * Restores the view state of the editor from a serializable object generated by `saveViewState`.
+         */
+        restoreViewState(state: IDiffEditorViewState): void;
+        /**
+         * Type the getModel() of IEditor.
+         */
+        getModel(): IDiffEditorModel | null;
+        /**
+         * Sets the current model attached to this editor.
+         * If the previous model was created by the editor via the value key in the options
+         * literal object, it will be destroyed. Otherwise, if the previous model was set
+         * via setModel, or the model key in the options literal object, the previous model
+         * will not be destroyed.
+         * It is safe to call setModel(null) to simply detach the current model from the editor.
+         */
+        setModel(model: IDiffEditorModel | null): void;
+        /**
+         * Get the `original` editor.
+         */
+        getOriginalEditor(): ICodeEditor;
+        /**
+         * Get the `modified` editor.
+         */
+        getModifiedEditor(): ICodeEditor;
+        /**
+         * Get the computed diff information.
+         */
+        getLineChanges(): ILineChange[] | null;
+        /**
+         * Get information based on computed diff about a line number from the original model.
+         * If the diff computation is not finished or the model is missing, will return null.
+         */
+        getDiffLineInformationForOriginal(lineNumber: number): IDiffLineInformation | null;
+        /**
+         * Get information based on computed diff about a line number from the modified model.
+         * If the diff computation is not finished or the model is missing, will return null.
+         */
+        getDiffLineInformationForModified(lineNumber: number): IDiffLineInformation | null;
+        /**
+         * Update the editor's options after the editor has been created.
+         */
+        updateOptions(newOptions: IDiffEditorOptions): void;
+    }
+
+    export class FontInfo extends BareFontInfo {
+        readonly _editorStylingBrand: void;
+        readonly version: number;
+        readonly isTrusted: boolean;
+        readonly isMonospace: boolean;
+        readonly typicalHalfwidthCharacterWidth: number;
+        readonly typicalFullwidthCharacterWidth: number;
+        readonly canUseHalfwidthRightwardsArrow: boolean;
+        readonly spaceWidth: number;
+        readonly middotWidth: number;
+        readonly wsmiddotWidth: number;
+        readonly maxDigitWidth: number;
+    }
+
+    export class BareFontInfo {
+        readonly _bareFontInfoBrand: void;
+        readonly zoomLevel: number;
+        readonly pixelRatio: number;
+        readonly fontFamily: string;
+        readonly fontWeight: string;
+        readonly fontSize: number;
+        readonly fontFeatureSettings: string;
+        readonly lineHeight: number;
+        readonly letterSpacing: number;
+    }
+
+    //compatibility:
+    export type IReadOnlyModel = ITextModel;
+    export type IModel = ITextModel;
+}
+
+declare namespace monaco.languages {
+
+
+    /**
+     * Register information about a new language.
+     */
+    export function register(language: ILanguageExtensionPoint): void;
+
+    /**
+     * Get the information of all the registered languages.
+     */
+    export function getLanguages(): ILanguageExtensionPoint[];
+
+    export function getEncodedLanguageId(languageId: string): number;
+
+    /**
+     * An event emitted when a language is first time needed (e.g. a model has it set).
+     * @event
+     */
+    export function onLanguage(languageId: string, callback: () => void): IDisposable;
+
+    /**
+     * Set the editing configuration for a language.
+     */
+    export function setLanguageConfiguration(languageId: string, configuration: LanguageConfiguration): IDisposable;
+
+    /**
+     * A token.
+     */
+    export interface IToken {
+        startIndex: number;
+        scopes: string;
+    }
+
+    /**
+     * The result of a line tokenization.
+     */
+    export interface ILineTokens {
+        /**
+         * The list of tokens on the line.
+         */
+        tokens: IToken[];
+        /**
+         * The tokenization end state.
+         * A pointer will be held to this and the object should not be modified by the tokenizer after the pointer is returned.
+         */
+        endState: IState;
+    }
+
+    /**
+     * The result of a line tokenization.
+     */
+    export interface IEncodedLineTokens {
+        /**
+         * The tokens on the line in a binary, encoded format. Each token occupies two array indices. For token i:
+         *  - at offset 2*i => startIndex
+         *  - at offset 2*i + 1 => metadata
+         * Meta data is in binary format:
+         * - -------------------------------------------
+         *     3322 2222 2222 1111 1111 1100 0000 0000
+         *     1098 7654 3210 9876 5432 1098 7654 3210
+         * - -------------------------------------------
+         *     bbbb bbbb bfff ffff ffFF FTTT LLLL LLLL
+         * - -------------------------------------------
+         *  - L = EncodedLanguageId (8 bits): Use `getEncodedLanguageId` to get the encoded ID of a language.
+         *  - T = StandardTokenType (3 bits): Other = 0, Comment = 1, String = 2, RegEx = 4.
+         *  - F = FontStyle (3 bits): None = 0, Italic = 1, Bold = 2, Underline = 4.
+         *  - f = foreground ColorId (9 bits)
+         *  - b = background ColorId (9 bits)
+         *  - The color value for each colorId is defined in IStandaloneThemeData.customTokenColors:
+         * e.g. colorId = 1 is stored in IStandaloneThemeData.customTokenColors[1]. Color id = 0 means no color,
+         * id = 1 is for the default foreground color, id = 2 for the default background.
+         */
+        tokens: Uint32Array;
+        /**
+         * The tokenization end state.
+         * A pointer will be held to this and the object should not be modified by the tokenizer after the pointer is returned.
+         */
+        endState: IState;
+    }
+
+    /**
+     * A "manual" provider of tokens.
+     */
+    export interface TokensProvider {
+        /**
+         * The initial state of a language. Will be the state passed in to tokenize the first line.
+         */
+        getInitialState(): IState;
+        /**
+         * Tokenize a line given the state at the beginning of the line.
+         */
+        tokenize(line: string, state: IState): ILineTokens;
+    }
+
+    /**
+     * A "manual" provider of tokens, returning tokens in a binary form.
+     */
+    export interface EncodedTokensProvider {
+        /**
+         * The initial state of a language. Will be the state passed in to tokenize the first line.
+         */
+        getInitialState(): IState;
+        /**
+         * Tokenize a line given the state at the beginning of the line.
+         */
+        tokenizeEncoded(line: string, state: IState): IEncodedLineTokens;
+        /**
+         * Tokenize a line given the state at the beginning of the line.
+         */
+        tokenize?(line: string, state: IState): ILineTokens;
+    }
+
+    /**
+     * Change the color map that is used for token colors.
+     * Supported formats (hex): #RRGGBB, $RRGGBBAA, #RGB, #RGBA
+     */
+    export function setColorMap(colorMap: string[] | null): void;
+
+    /**
+     * Set the tokens provider for a language (manual implementation).
+     */
+    export function setTokensProvider(languageId: string, provider: TokensProvider | EncodedTokensProvider | Thenable): IDisposable;
+
+    /**
+     * Set the tokens provider for a language (monarch implementation).
+     */
+    export function setMonarchTokensProvider(languageId: string, languageDef: IMonarchLanguage | Thenable): IDisposable;
+
+    /**
+     * Register a reference provider (used by e.g. reference search).
+     */
+    export function registerReferenceProvider(languageId: string, provider: ReferenceProvider): IDisposable;
+
+    /**
+     * Register a rename provider (used by e.g. rename symbol).
+     */
+    export function registerRenameProvider(languageId: string, provider: RenameProvider): IDisposable;
+
+    /**
+     * Register a signature help provider (used by e.g. parameter hints).
+     */
+    export function registerSignatureHelpProvider(languageId: string, provider: SignatureHelpProvider): IDisposable;
+
+    /**
+     * Register a hover provider (used by e.g. editor hover).
+     */
+    export function registerHoverProvider(languageId: string, provider: HoverProvider): IDisposable;
+
+    /**
+     * Register a document symbol provider (used by e.g. outline).
+     */
+    export function registerDocumentSymbolProvider(languageId: string, provider: DocumentSymbolProvider): IDisposable;
+
+    /**
+     * Register a document highlight provider (used by e.g. highlight occurrences).
+     */
+    export function registerDocumentHighlightProvider(languageId: string, provider: DocumentHighlightProvider): IDisposable;
+
+    /**
+     * Register an linked editing range provider.
+     */
+    export function registerLinkedEditingRangeProvider(languageId: string, provider: LinkedEditingRangeProvider): IDisposable;
+
+    /**
+     * Register a definition provider (used by e.g. go to definition).
+     */
+    export function registerDefinitionProvider(languageId: string, provider: DefinitionProvider): IDisposable;
+
+    /**
+     * Register a implementation provider (used by e.g. go to implementation).
+     */
+    export function registerImplementationProvider(languageId: string, provider: ImplementationProvider): IDisposable;
+
+    /**
+     * Register a type definition provider (used by e.g. go to type definition).
+     */
+    export function registerTypeDefinitionProvider(languageId: string, provider: TypeDefinitionProvider): IDisposable;
+
+    /**
+     * Register a code lens provider (used by e.g. inline code lenses).
+     */
+    export function registerCodeLensProvider(languageId: string, provider: CodeLensProvider): IDisposable;
+
+    /**
+     * Register a code action provider (used by e.g. quick fix).
+     */
+    export function registerCodeActionProvider(languageId: string, provider: CodeActionProvider): IDisposable;
+
+    /**
+     * Register a formatter that can handle only entire models.
+     */
+    export function registerDocumentFormattingEditProvider(languageId: string, provider: DocumentFormattingEditProvider): IDisposable;
+
+    /**
+     * Register a formatter that can handle a range inside a model.
+     */
+    export function registerDocumentRangeFormattingEditProvider(languageId: string, provider: DocumentRangeFormattingEditProvider): IDisposable;
+
+    /**
+     * Register a formatter than can do formatting as the user types.
+     */
+    export function registerOnTypeFormattingEditProvider(languageId: string, provider: OnTypeFormattingEditProvider): IDisposable;
+
+    /**
+     * Register a link provider that can find links in text.
+     */
+    export function registerLinkProvider(languageId: string, provider: LinkProvider): IDisposable;
+
+    /**
+     * Register a completion item provider (use by e.g. suggestions).
+     */
+    export function registerCompletionItemProvider(languageId: string, provider: CompletionItemProvider): IDisposable;
+
+    /**
+     * Register a document color provider (used by Color Picker, Color Decorator).
+     */
+    export function registerColorProvider(languageId: string, provider: DocumentColorProvider): IDisposable;
+
+    /**
+     * Register a folding range provider
+     */
+    export function registerFoldingRangeProvider(languageId: string, provider: FoldingRangeProvider): IDisposable;
+
+    /**
+     * Register a declaration provider
+     */
+    export function registerDeclarationProvider(languageId: string, provider: DeclarationProvider): IDisposable;
+
+    /**
+     * Register a selection range provider
+     */
+    export function registerSelectionRangeProvider(languageId: string, provider: SelectionRangeProvider): IDisposable;
+
+    /**
+     * Register a document semantic tokens provider
+     */
+    export function registerDocumentSemanticTokensProvider(languageId: string, provider: DocumentSemanticTokensProvider): IDisposable;
+
+    /**
+     * Register a document range semantic tokens provider
+     */
+    export function registerDocumentRangeSemanticTokensProvider(languageId: string, provider: DocumentRangeSemanticTokensProvider): IDisposable;
+
+    /**
+     * Contains additional diagnostic information about the context in which
+     * a [code action](#CodeActionProvider.provideCodeActions) is run.
+     */
+    export interface CodeActionContext {
+        /**
+         * An array of diagnostics.
+         */
+        readonly markers: editor.IMarkerData[];
+        /**
+         * Requested kind of actions to return.
+         */
+        readonly only?: string;
+    }
+
+    /**
+     * The code action interface defines the contract between extensions and
+     * the [light bulb](https://code.visualstudio.com/docs/editor/editingevolved#_code-action) feature.
+     */
+    export interface CodeActionProvider {
+        /**
+         * Provide commands for the given document and range.
+         */
+        provideCodeActions(model: editor.ITextModel, range: Range, context: CodeActionContext, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * Describes how comments for a language work.
+     */
+    export interface CommentRule {
+        /**
+         * The line comment token, like `// this is a comment`
+         */
+        lineComment?: string | null;
+        /**
+         * The block comment character pair, like `/* block comment */`
+         */
+        blockComment?: CharacterPair | null;
+    }
+
+    /**
+     * The language configuration interface defines the contract between extensions and
+     * various editor features, like automatic bracket insertion, automatic indentation etc.
+     */
+    export interface LanguageConfiguration {
+        /**
+         * The language's comment settings.
+         */
+        comments?: CommentRule;
+        /**
+         * The language's brackets.
+         * This configuration implicitly affects pressing Enter around these brackets.
+         */
+        brackets?: CharacterPair[];
+        /**
+         * The language's word definition.
+         * If the language supports Unicode identifiers (e.g. JavaScript), it is preferable
+         * to provide a word definition that uses exclusion of known separators.
+         * e.g.: A regex that matches anything except known separators (and dot is allowed to occur in a floating point number):
+         *   /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g
+         */
+        wordPattern?: RegExp;
+        /**
+         * The language's indentation settings.
+         */
+        indentationRules?: IndentationRule;
+        /**
+         * The language's rules to be evaluated when pressing Enter.
+         */
+        onEnterRules?: OnEnterRule[];
+        /**
+         * The language's auto closing pairs. The 'close' character is automatically inserted with the
+         * 'open' character is typed. If not set, the configured brackets will be used.
+         */
+        autoClosingPairs?: IAutoClosingPairConditional[];
+        /**
+         * The language's surrounding pairs. When the 'open' character is typed on a selection, the
+         * selected string is surrounded by the open and close characters. If not set, the autoclosing pairs
+         * settings will be used.
+         */
+        surroundingPairs?: IAutoClosingPair[];
+        /**
+         * Defines what characters must be after the cursor for bracket or quote autoclosing to occur when using the \'languageDefined\' autoclosing setting.
+         *
+         * This is typically the set of characters which can not start an expression, such as whitespace, closing brackets, non-unary operators, etc.
+         */
+        autoCloseBefore?: string;
+        /**
+         * The language's folding rules.
+         */
+        folding?: FoldingRules;
+        /**
+         * **Deprecated** Do not use.
+         *
+         * @deprecated Will be replaced by a better API soon.
+         */
+        __electricCharacterSupport?: {
+            docComment?: IDocComment;
+        };
+    }
+
+    /**
+     * Describes indentation rules for a language.
+     */
+    export interface IndentationRule {
+        /**
+         * If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
+         */
+        decreaseIndentPattern: RegExp;
+        /**
+         * If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
+         */
+        increaseIndentPattern: RegExp;
+        /**
+         * If a line matches this pattern, then **only the next line** after it should be indented once.
+         */
+        indentNextLinePattern?: RegExp | null;
+        /**
+         * If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.
+         */
+        unIndentedLinePattern?: RegExp | null;
+    }
+
+    /**
+     * Describes language specific folding markers such as '#region' and '#endregion'.
+     * The start and end regexes will be tested against the contents of all lines and must be designed efficiently:
+     * - the regex should start with '^'
+     * - regexp flags (i, g) are ignored
+     */
+    export interface FoldingMarkers {
+        start: RegExp;
+        end: RegExp;
+    }
+
+    /**
+     * Describes folding rules for a language.
+     */
+    export interface FoldingRules {
+        /**
+         * Used by the indentation based strategy to decide whether empty lines belong to the previous or the next block.
+         * A language adheres to the off-side rule if blocks in that language are expressed by their indentation.
+         * See [wikipedia](https://en.wikipedia.org/wiki/Off-side_rule) for more information.
+         * If not set, `false` is used and empty lines belong to the previous block.
+         */
+        offSide?: boolean;
+        /**
+         * Region markers used by the language.
+         */
+        markers?: FoldingMarkers;
+    }
+
+    /**
+     * Describes a rule to be evaluated when pressing Enter.
+     */
+    export interface OnEnterRule {
+        /**
+         * This rule will only execute if the text before the cursor matches this regular expression.
+         */
+        beforeText: RegExp;
+        /**
+         * This rule will only execute if the text after the cursor matches this regular expression.
+         */
+        afterText?: RegExp;
+        /**
+         * This rule will only execute if the text above the this line matches this regular expression.
+         */
+        previousLineText?: RegExp;
+        /**
+         * The action to execute.
+         */
+        action: EnterAction;
+    }
+
+    /**
+     * Definition of documentation comments (e.g. Javadoc/JSdoc)
+     */
+    export interface IDocComment {
+        /**
+         * The string that starts a doc comment (e.g. '/**')
+         */
+        open: string;
+        /**
+         * The string that appears on the last line and closes the doc comment (e.g. ' * /').
+         */
+        close?: string;
+    }
+
+    /**
+     * A tuple of two characters, like a pair of
+     * opening and closing brackets.
+     */
+    export type CharacterPair = [string, string];
+
+    export interface IAutoClosingPair {
+        open: string;
+        close: string;
+    }
+
+    export interface IAutoClosingPairConditional extends IAutoClosingPair {
+        notIn?: string[];
+    }
+
+    /**
+     * Describes what to do with the indentation when pressing Enter.
+     */
+    export enum IndentAction {
+        /**
+         * Insert new line and copy the previous line's indentation.
+         */
+        None = 0,
+        /**
+         * Insert new line and indent once (relative to the previous line's indentation).
+         */
+        Indent = 1,
+        /**
+         * Insert two new lines:
+         *  - the first one indented which will hold the cursor
+         *  - the second one at the same indentation level
+         */
+        IndentOutdent = 2,
+        /**
+         * Insert new line and outdent once (relative to the previous line's indentation).
+         */
+        Outdent = 3
+    }
+
+    /**
+     * Describes what to do when pressing Enter.
+     */
+    export interface EnterAction {
+        /**
+         * Describe what to do with the indentation.
+         */
+        indentAction: IndentAction;
+        /**
+         * Describes text to be appended after the new line and after the indentation.
+         */
+        appendText?: string;
+        /**
+         * Describes the number of characters to remove from the new line's indentation.
+         */
+        removeText?: number;
+    }
+
+    /**
+     * The state of the tokenizer between two lines.
+     * It is useful to store flags such as in multiline comment, etc.
+     * The model will clone the previous line's state and pass it in to tokenize the next line.
+     */
+    export interface IState {
+        clone(): IState;
+        equals(other: IState): boolean;
+    }
+
+    /**
+     * A provider result represents the values a provider, like the [`HoverProvider`](#HoverProvider),
+     * may return. For once this is the actual result type `T`, like `Hover`, or a thenable that resolves
+     * to that type `T`. In addition, `null` and `undefined` can be returned - either directly or from a
+     * thenable.
+     */
+    export type ProviderResult = T | undefined | null | Thenable;
+
+    /**
+     * A hover represents additional information for a symbol or word. Hovers are
+     * rendered in a tooltip-like widget.
+     */
+    export interface Hover {
+        /**
+         * The contents of this hover.
+         */
+        contents: IMarkdownString[];
+        /**
+         * The range to which this hover applies. When missing, the
+         * editor will use the range at the current position or the
+         * current position itself.
+         */
+        range?: IRange;
+    }
+
+    /**
+     * The hover provider interface defines the contract between extensions and
+     * the [hover](https://code.visualstudio.com/docs/editor/intellisense)-feature.
+     */
+    export interface HoverProvider {
+        /**
+         * Provide a hover for the given position and document. Multiple hovers at the same
+         * position will be merged by the editor. A hover can have a range which defaults
+         * to the word range at the position when omitted.
+         */
+        provideHover(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    export enum CompletionItemKind {
+        Method = 0,
+        Function = 1,
+        Constructor = 2,
+        Field = 3,
+        Variable = 4,
+        Class = 5,
+        Struct = 6,
+        Interface = 7,
+        Module = 8,
+        Property = 9,
+        Event = 10,
+        Operator = 11,
+        Unit = 12,
+        Value = 13,
+        Constant = 14,
+        Enum = 15,
+        EnumMember = 16,
+        Keyword = 17,
+        Text = 18,
+        Color = 19,
+        File = 20,
+        Reference = 21,
+        Customcolor = 22,
+        Folder = 23,
+        TypeParameter = 24,
+        User = 25,
+        Issue = 26,
+        Snippet = 27
+    }
+
+    export interface CompletionItemLabel {
+        /**
+         * The function or variable. Rendered leftmost.
+         */
+        name: string;
+        /**
+         * The parameters without the return type. Render after `name`.
+         */
+        parameters?: string;
+        /**
+         * The fully qualified name, like package name or file path. Rendered after `signature`.
+         */
+        qualifier?: string;
+        /**
+         * The return-type of a function or type of a property/variable. Rendered rightmost.
+         */
+        type?: string;
+    }
+
+    export enum CompletionItemTag {
+        Deprecated = 1
+    }
+
+    export enum CompletionItemInsertTextRule {
+        /**
+         * Adjust whitespace/indentation of multiline insert texts to
+         * match the current line indentation.
+         */
+        KeepWhitespace = 1,
+        /**
+         * `insertText` is a snippet.
+         */
+        InsertAsSnippet = 4
+    }
+
+    /**
+     * A completion item represents a text snippet that is
+     * proposed to complete text that is being typed.
+     */
+    export interface CompletionItem {
+        /**
+         * The label of this completion item. By default
+         * this is also the text that is inserted when selecting
+         * this completion.
+         */
+        label: string | CompletionItemLabel;
+        /**
+         * The kind of this completion item. Based on the kind
+         * an icon is chosen by the editor.
+         */
+        kind: CompletionItemKind;
+        /**
+         * A modifier to the `kind` which affect how the item
+         * is rendered, e.g. Deprecated is rendered with a strikeout
+         */
+        tags?: ReadonlyArray;
+        /**
+         * A human-readable string with additional information
+         * about this item, like type or symbol information.
+         */
+        detail?: string;
+        /**
+         * A human-readable string that represents a doc-comment.
+         */
+        documentation?: string | IMarkdownString;
+        /**
+         * A string that should be used when comparing this item
+         * with other items. When `falsy` the [label](#CompletionItem.label)
+         * is used.
+         */
+        sortText?: string;
+        /**
+         * A string that should be used when filtering a set of
+         * completion items. When `falsy` the [label](#CompletionItem.label)
+         * is used.
+         */
+        filterText?: string;
+        /**
+         * Select this item when showing. *Note* that only one completion item can be selected and
+         * that the editor decides which item that is. The rule is that the *first* item of those
+         * that match best is selected.
+         */
+        preselect?: boolean;
+        /**
+         * A string or snippet that should be inserted in a document when selecting
+         * this completion.
+         * is used.
+         */
+        insertText: string;
+        /**
+         * Addition rules (as bitmask) that should be applied when inserting
+         * this completion.
+         */
+        insertTextRules?: CompletionItemInsertTextRule;
+        /**
+         * A range of text that should be replaced by this completion item.
+         *
+         * Defaults to a range from the start of the [current word](#TextDocument.getWordRangeAtPosition) to the
+         * current position.
+         *
+         * *Note:* The range must be a [single line](#Range.isSingleLine) and it must
+         * [contain](#Range.contains) the position at which completion has been [requested](#CompletionItemProvider.provideCompletionItems).
+         */
+        range: IRange | {
+            insert: IRange;
+            replace: IRange;
+        };
+        /**
+         * An optional set of characters that when pressed while this completion is active will accept it first and
+         * then type that character. *Note* that all commit characters should have `length=1` and that superfluous
+         * characters will be ignored.
+         */
+        commitCharacters?: string[];
+        /**
+         * An optional array of additional text edits that are applied when
+         * selecting this completion. Edits must not overlap with the main edit
+         * nor with themselves.
+         */
+        additionalTextEdits?: editor.ISingleEditOperation[];
+        /**
+         * A command that should be run upon acceptance of this item.
+         */
+        command?: Command;
+    }
+
+    export interface CompletionList {
+        suggestions: CompletionItem[];
+        incomplete?: boolean;
+        dispose?(): void;
+    }
+
+    /**
+     * How a suggest provider was triggered.
+     */
+    export enum CompletionTriggerKind {
+        Invoke = 0,
+        TriggerCharacter = 1,
+        TriggerForIncompleteCompletions = 2
+    }
+
+    /**
+     * Contains additional information about the context in which
+     * [completion provider](#CompletionItemProvider.provideCompletionItems) is triggered.
+     */
+    export interface CompletionContext {
+        /**
+         * How the completion was triggered.
+         */
+        triggerKind: CompletionTriggerKind;
+        /**
+         * Character that triggered the completion item provider.
+         *
+         * `undefined` if provider was not triggered by a character.
+         */
+        triggerCharacter?: string;
+    }
+
+    /**
+     * The completion item provider interface defines the contract between extensions and
+     * the [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense).
+     *
+     * When computing *complete* completion items is expensive, providers can optionally implement
+     * the `resolveCompletionItem`-function. In that case it is enough to return completion
+     * items with a [label](#CompletionItem.label) from the
+     * [provideCompletionItems](#CompletionItemProvider.provideCompletionItems)-function. Subsequently,
+     * when a completion item is shown in the UI and gains focus this provider is asked to resolve
+     * the item, like adding [doc-comment](#CompletionItem.documentation) or [details](#CompletionItem.detail).
+     */
+    export interface CompletionItemProvider {
+        triggerCharacters?: string[];
+        /**
+         * Provide completion items for the given position and document.
+         */
+        provideCompletionItems(model: editor.ITextModel, position: Position, context: CompletionContext, token: CancellationToken): ProviderResult;
+        /**
+         * Given a completion item fill in more data, like [doc-comment](#CompletionItem.documentation)
+         * or [details](#CompletionItem.detail).
+         *
+         * The editor will only resolve a completion item once.
+         */
+        resolveCompletionItem?(item: CompletionItem, token: CancellationToken): ProviderResult;
+    }
+
+    export interface CodeAction {
+        title: string;
+        command?: Command;
+        edit?: WorkspaceEdit;
+        diagnostics?: editor.IMarkerData[];
+        kind?: string;
+        isPreferred?: boolean;
+        disabled?: string;
+    }
+
+    export interface CodeActionList extends IDisposable {
+        readonly actions: ReadonlyArray;
+    }
+
+    /**
+     * Represents a parameter of a callable-signature. A parameter can
+     * have a label and a doc-comment.
+     */
+    export interface ParameterInformation {
+        /**
+         * The label of this signature. Will be shown in
+         * the UI.
+         */
+        label: string | [number, number];
+        /**
+         * The human-readable doc-comment of this signature. Will be shown
+         * in the UI but can be omitted.
+         */
+        documentation?: string | IMarkdownString;
+    }
+
+    /**
+     * Represents the signature of something callable. A signature
+     * can have a label, like a function-name, a doc-comment, and
+     * a set of parameters.
+     */
+    export interface SignatureInformation {
+        /**
+         * The label of this signature. Will be shown in
+         * the UI.
+         */
+        label: string;
+        /**
+         * The human-readable doc-comment of this signature. Will be shown
+         * in the UI but can be omitted.
+         */
+        documentation?: string | IMarkdownString;
+        /**
+         * The parameters of this signature.
+         */
+        parameters: ParameterInformation[];
+        /**
+         * Index of the active parameter.
+         *
+         * If provided, this is used in place of `SignatureHelp.activeSignature`.
+         */
+        activeParameter?: number;
+    }
+
+    /**
+     * Signature help represents the signature of something
+     * callable. There can be multiple signatures but only one
+     * active and only one active parameter.
+     */
+    export interface SignatureHelp {
+        /**
+         * One or more signatures.
+         */
+        signatures: SignatureInformation[];
+        /**
+         * The active signature.
+         */
+        activeSignature: number;
+        /**
+         * The active parameter of the active signature.
+         */
+        activeParameter: number;
+    }
+
+    export interface SignatureHelpResult extends IDisposable {
+        value: SignatureHelp;
+    }
+
+    export enum SignatureHelpTriggerKind {
+        Invoke = 1,
+        TriggerCharacter = 2,
+        ContentChange = 3
+    }
+
+    export interface SignatureHelpContext {
+        readonly triggerKind: SignatureHelpTriggerKind;
+        readonly triggerCharacter?: string;
+        readonly isRetrigger: boolean;
+        readonly activeSignatureHelp?: SignatureHelp;
+    }
+
+    /**
+     * The signature help provider interface defines the contract between extensions and
+     * the [parameter hints](https://code.visualstudio.com/docs/editor/intellisense)-feature.
+     */
+    export interface SignatureHelpProvider {
+        readonly signatureHelpTriggerCharacters?: ReadonlyArray;
+        readonly signatureHelpRetriggerCharacters?: ReadonlyArray;
+        /**
+         * Provide help for the signature at the given position and document.
+         */
+        provideSignatureHelp(model: editor.ITextModel, position: Position, token: CancellationToken, context: SignatureHelpContext): ProviderResult;
+    }
+
+    /**
+     * A document highlight kind.
+     */
+    export enum DocumentHighlightKind {
+        /**
+         * A textual occurrence.
+         */
+        Text = 0,
+        /**
+         * Read-access of a symbol, like reading a variable.
+         */
+        Read = 1,
+        /**
+         * Write-access of a symbol, like writing to a variable.
+         */
+        Write = 2
+    }
+
+    /**
+     * A document highlight is a range inside a text document which deserves
+     * special attention. Usually a document highlight is visualized by changing
+     * the background color of its range.
+     */
+    export interface DocumentHighlight {
+        /**
+         * The range this highlight applies to.
+         */
+        range: IRange;
+        /**
+         * The highlight kind, default is [text](#DocumentHighlightKind.Text).
+         */
+        kind?: DocumentHighlightKind;
+    }
+
+    /**
+     * The document highlight provider interface defines the contract between extensions and
+     * the word-highlight-feature.
+     */
+    export interface DocumentHighlightProvider {
+        /**
+         * Provide a set of document highlights, like all occurrences of a variable or
+         * all exit-points of a function.
+         */
+        provideDocumentHighlights(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The linked editing range provider interface defines the contract between extensions and
+     * the linked editing feature.
+     */
+    export interface LinkedEditingRangeProvider {
+        /**
+         * Provide a list of ranges that can be edited together.
+         */
+        provideLinkedEditingRanges(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * Represents a list of ranges that can be edited together along with a word pattern to describe valid contents.
+     */
+    export interface LinkedEditingRanges {
+        /**
+         * A list of ranges that can be edited together. The ranges must have
+         * identical length and text content. The ranges cannot overlap
+         */
+        ranges: IRange[];
+        /**
+         * An optional word pattern that describes valid contents for the given ranges.
+         * If no pattern is provided, the language configuration's word pattern will be used.
+         */
+        wordPattern?: RegExp;
+    }
+
+    /**
+     * Value-object that contains additional information when
+     * requesting references.
+     */
+    export interface ReferenceContext {
+        /**
+         * Include the declaration of the current symbol.
+         */
+        includeDeclaration: boolean;
+    }
+
+    /**
+     * The reference provider interface defines the contract between extensions and
+     * the [find references](https://code.visualstudio.com/docs/editor/editingevolved#_peek)-feature.
+     */
+    export interface ReferenceProvider {
+        /**
+         * Provide a set of project-wide references for the given position and document.
+         */
+        provideReferences(model: editor.ITextModel, position: Position, context: ReferenceContext, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * Represents a location inside a resource, such as a line
+     * inside a text file.
+     */
+    export interface Location {
+        /**
+         * The resource identifier of this location.
+         */
+        uri: Uri;
+        /**
+         * The document range of this locations.
+         */
+        range: IRange;
+    }
+
+    export interface LocationLink {
+        /**
+         * A range to select where this link originates from.
+         */
+        originSelectionRange?: IRange;
+        /**
+         * The target uri this link points to.
+         */
+        uri: Uri;
+        /**
+         * The full range this link points to.
+         */
+        range: IRange;
+        /**
+         * A range to select this link points to. Must be contained
+         * in `LocationLink.range`.
+         */
+        targetSelectionRange?: IRange;
+    }
+
+    export type Definition = Location | Location[] | LocationLink[];
+
+    /**
+     * The definition provider interface defines the contract between extensions and
+     * the [go to definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)
+     * and peek definition features.
+     */
+    export interface DefinitionProvider {
+        /**
+         * Provide the definition of the symbol at the given position and document.
+         */
+        provideDefinition(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The definition provider interface defines the contract between extensions and
+     * the [go to definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)
+     * and peek definition features.
+     */
+    export interface DeclarationProvider {
+        /**
+         * Provide the declaration of the symbol at the given position and document.
+         */
+        provideDeclaration(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The implementation provider interface defines the contract between extensions and
+     * the go to implementation feature.
+     */
+    export interface ImplementationProvider {
+        /**
+         * Provide the implementation of the symbol at the given position and document.
+         */
+        provideImplementation(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The type definition provider interface defines the contract between extensions and
+     * the go to type definition feature.
+     */
+    export interface TypeDefinitionProvider {
+        /**
+         * Provide the type definition of the symbol at the given position and document.
+         */
+        provideTypeDefinition(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * A symbol kind.
+     */
+    export enum SymbolKind {
+        File = 0,
+        Module = 1,
+        Namespace = 2,
+        Package = 3,
+        Class = 4,
+        Method = 5,
+        Property = 6,
+        Field = 7,
+        Constructor = 8,
+        Enum = 9,
+        Interface = 10,
+        Function = 11,
+        Variable = 12,
+        Constant = 13,
+        String = 14,
+        Number = 15,
+        Boolean = 16,
+        Array = 17,
+        Object = 18,
+        Key = 19,
+        Null = 20,
+        EnumMember = 21,
+        Struct = 22,
+        Event = 23,
+        Operator = 24,
+        TypeParameter = 25
+    }
+
+    export enum SymbolTag {
+        Deprecated = 1
+    }
+
+    export interface DocumentSymbol {
+        name: string;
+        detail: string;
+        kind: SymbolKind;
+        tags: ReadonlyArray;
+        containerName?: string;
+        range: IRange;
+        selectionRange: IRange;
+        children?: DocumentSymbol[];
+    }
+
+    /**
+     * The document symbol provider interface defines the contract between extensions and
+     * the [go to symbol](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-symbol)-feature.
+     */
+    export interface DocumentSymbolProvider {
+        displayName?: string;
+        /**
+         * Provide symbol information for the given document.
+         */
+        provideDocumentSymbols(model: editor.ITextModel, token: CancellationToken): ProviderResult;
+    }
+
+    export type TextEdit = {
+        range: IRange;
+        text: string;
+        eol?: editor.EndOfLineSequence;
+    };
+
+    /**
+     * Interface used to format a model
+     */
+    export interface FormattingOptions {
+        /**
+         * Size of a tab in spaces.
+         */
+        tabSize: number;
+        /**
+         * Prefer spaces over tabs.
+         */
+        insertSpaces: boolean;
+    }
+
+    /**
+     * The document formatting provider interface defines the contract between extensions and
+     * the formatting-feature.
+     */
+    export interface DocumentFormattingEditProvider {
+        readonly displayName?: string;
+        /**
+         * Provide formatting edits for a whole document.
+         */
+        provideDocumentFormattingEdits(model: editor.ITextModel, options: FormattingOptions, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The document formatting provider interface defines the contract between extensions and
+     * the formatting-feature.
+     */
+    export interface DocumentRangeFormattingEditProvider {
+        readonly displayName?: string;
+        /**
+         * Provide formatting edits for a range in a document.
+         *
+         * The given range is a hint and providers can decide to format a smaller
+         * or larger range. Often this is done by adjusting the start and end
+         * of the range to full syntax nodes.
+         */
+        provideDocumentRangeFormattingEdits(model: editor.ITextModel, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * The document formatting provider interface defines the contract between extensions and
+     * the formatting-feature.
+     */
+    export interface OnTypeFormattingEditProvider {
+        autoFormatTriggerCharacters: string[];
+        /**
+         * Provide formatting edits after a character has been typed.
+         *
+         * The given position and character should hint to the provider
+         * what range the position to expand to, like find the matching `{`
+         * when `}` has been entered.
+         */
+        provideOnTypeFormattingEdits(model: editor.ITextModel, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): ProviderResult;
+    }
+
+    /**
+     * A link inside the editor.
+     */
+    export interface ILink {
+        range: IRange;
+        url?: Uri | string;
+        tooltip?: string;
+    }
+
+    export interface ILinksList {
+        links: ILink[];
+        dispose?(): void;
+    }
+
+    /**
+     * A provider of links.
+     */
+    export interface LinkProvider {
+        provideLinks(model: editor.ITextModel, token: CancellationToken): ProviderResult;
+        resolveLink?: (link: ILink, token: CancellationToken) => ProviderResult;
+    }
+
+    /**
+     * A color in RGBA format.
+     */
+    export interface IColor {
+        /**
+         * The red component in the range [0-1].
+         */
+        readonly red: number;
+        /**
+         * The green component in the range [0-1].
+         */
+        readonly green: number;
+        /**
+         * The blue component in the range [0-1].
+         */
+        readonly blue: number;
+        /**
+         * The alpha component in the range [0-1].
+         */
+        readonly alpha: number;
+    }
+
+    /**
+     * String representations for a color
+     */
+    export interface IColorPresentation {
+        /**
+         * The label of this color presentation. It will be shown on the color
+         * picker header. By default this is also the text that is inserted when selecting
+         * this color presentation.
+         */
+        label: string;
+        /**
+         * An [edit](#TextEdit) which is applied to a document when selecting
+         * this presentation for the color.
+         */
+        textEdit?: TextEdit;
+        /**
+         * An optional array of additional [text edits](#TextEdit) that are applied when
+         * selecting this color presentation.
+         */
+        additionalTextEdits?: TextEdit[];
+    }
+
+    /**
+     * A color range is a range in a text model which represents a color.
+     */
+    export interface IColorInformation {
+        /**
+         * The range within the model.
+         */
+        range: IRange;
+        /**
+         * The color represented in this range.
+         */
+        color: IColor;
+    }
+
+    /**
+     * A provider of colors for editor models.
+     */
+    export interface DocumentColorProvider {
+        /**
+         * Provides the color ranges for a specific model.
+         */
+        provideDocumentColors(model: editor.ITextModel, token: CancellationToken): ProviderResult;
+        /**
+         * Provide the string representations for a color.
+         */
+        provideColorPresentations(model: editor.ITextModel, colorInfo: IColorInformation, token: CancellationToken): ProviderResult;
+    }
+
+    export interface SelectionRange {
+        range: IRange;
+    }
+
+    export interface SelectionRangeProvider {
+        /**
+         * Provide ranges that should be selected from the given position.
+         */
+        provideSelectionRanges(model: editor.ITextModel, positions: Position[], token: CancellationToken): ProviderResult;
+    }
+
+    export interface FoldingContext {
+    }
+
+    /**
+     * A provider of folding ranges for editor models.
+     */
+    export interface FoldingRangeProvider {
+        /**
+         * An optional event to signal that the folding ranges from this provider have changed.
+         */
+        onDidChange?: IEvent;
+        /**
+         * Provides the folding ranges for a specific model.
+         */
+        provideFoldingRanges(model: editor.ITextModel, context: FoldingContext, token: CancellationToken): ProviderResult;
+    }
+
+    export interface FoldingRange {
+        /**
+         * The one-based start line of the range to fold. The folded area starts after the line's last character.
+         */
+        start: number;
+        /**
+         * The one-based end line of the range to fold. The folded area ends with the line's last character.
+         */
+        end: number;
+        /**
+         * Describes the [Kind](#FoldingRangeKind) of the folding range such as [Comment](#FoldingRangeKind.Comment) or
+         * [Region](#FoldingRangeKind.Region). The kind is used to categorize folding ranges and used by commands
+         * like 'Fold all comments'. See
+         * [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
+         */
+        kind?: FoldingRangeKind;
+    }
+
+    export class FoldingRangeKind {
+        value: string;
+        /**
+         * Kind for folding range representing a comment. The value of the kind is 'comment'.
+         */
+        static readonly Comment: FoldingRangeKind;
+        /**
+         * Kind for folding range representing a import. The value of the kind is 'imports'.
+         */
+        static readonly Imports: FoldingRangeKind;
+        /**
+         * Kind for folding range representing regions (for example marked by `#region`, `#endregion`).
+         * The value of the kind is 'region'.
+         */
+        static readonly Region: FoldingRangeKind;
+        /**
+         * Creates a new [FoldingRangeKind](#FoldingRangeKind).
+         *
+         * @param value of the kind.
+         */
+        constructor(value: string);
+    }
+
+    export interface WorkspaceEditMetadata {
+        needsConfirmation: boolean;
+        label: string;
+        description?: string;
+    }
+
+    export interface WorkspaceFileEditOptions {
+        overwrite?: boolean;
+        ignoreIfNotExists?: boolean;
+        ignoreIfExists?: boolean;
+        recursive?: boolean;
+        copy?: boolean;
+        folder?: boolean;
+        skipTrashBin?: boolean;
+        maxSize?: number;
+    }
+
+    export interface WorkspaceFileEdit {
+        oldUri?: Uri;
+        newUri?: Uri;
+        options?: WorkspaceFileEditOptions;
+        metadata?: WorkspaceEditMetadata;
+    }
+
+    export interface WorkspaceTextEdit {
+        resource: Uri;
+        edit: TextEdit;
+        modelVersionId?: number;
+        metadata?: WorkspaceEditMetadata;
+    }
+
+    export interface WorkspaceEdit {
+        edits: Array;
+    }
+
+    export interface Rejection {
+        rejectReason?: string;
+    }
+
+    export interface RenameLocation {
+        range: IRange;
+        text: string;
+    }
+
+    export interface RenameProvider {
+        provideRenameEdits(model: editor.ITextModel, position: Position, newName: string, token: CancellationToken): ProviderResult;
+        resolveRenameLocation?(model: editor.ITextModel, position: Position, token: CancellationToken): ProviderResult;
+    }
+
+    export interface Command {
+        id: string;
+        title: string;
+        tooltip?: string;
+        arguments?: any[];
+    }
+
+    export interface CodeLens {
+        range: IRange;
+        id?: string;
+        command?: Command;
+    }
+
+    export interface CodeLensList {
+        lenses: CodeLens[];
+        dispose(): void;
+    }
+
+    export interface CodeLensProvider {
+        onDidChange?: IEvent;
+        provideCodeLenses(model: editor.ITextModel, token: CancellationToken): ProviderResult;
+        resolveCodeLens?(model: editor.ITextModel, codeLens: CodeLens, token: CancellationToken): ProviderResult;
+    }
+
+    export enum InlineHintKind {
+        Other = 0,
+        Type = 1,
+        Parameter = 2
+    }
+
+    export interface InlineHint {
+        text: string;
+        range: IRange;
+        kind: InlineHintKind;
+        description?: string | IMarkdownString;
+        whitespaceBefore?: boolean;
+        whitespaceAfter?: boolean;
+    }
+
+    export interface InlineHintsProvider {
+        onDidChangeInlineHints?: IEvent | undefined;
+        provideInlineHints(model: editor.ITextModel, range: Range, token: CancellationToken): ProviderResult;
+    }
+
+    export interface SemanticTokensLegend {
+        readonly tokenTypes: string[];
+        readonly tokenModifiers: string[];
+    }
+
+    export interface SemanticTokens {
+        readonly resultId?: string;
+        readonly data: Uint32Array;
+    }
+
+    export interface SemanticTokensEdit {
+        readonly start: number;
+        readonly deleteCount: number;
+        readonly data?: Uint32Array;
+    }
+
+    export interface SemanticTokensEdits {
+        readonly resultId?: string;
+        readonly edits: SemanticTokensEdit[];
+    }
+
+    export interface DocumentSemanticTokensProvider {
+        onDidChange?: IEvent;
+        getLegend(): SemanticTokensLegend;
+        provideDocumentSemanticTokens(model: editor.ITextModel, lastResultId: string | null, token: CancellationToken): ProviderResult;
+        releaseDocumentSemanticTokens(resultId: string | undefined): void;
+    }
+
+    export interface DocumentRangeSemanticTokensProvider {
+        getLegend(): SemanticTokensLegend;
+        provideDocumentRangeSemanticTokens(model: editor.ITextModel, range: Range, token: CancellationToken): ProviderResult;
+    }
+
+    export interface ILanguageExtensionPoint {
+        id: string;
+        extensions?: string[];
+        filenames?: string[];
+        filenamePatterns?: string[];
+        firstLine?: string;
+        aliases?: string[];
+        mimetypes?: string[];
+        configuration?: Uri;
+    }
+    /**
+     * A Monarch language definition
+     */
+    export interface IMonarchLanguage {
+        /**
+         * map from string to ILanguageRule[]
+         */
+        tokenizer: {
+            [name: string]: IMonarchLanguageRule[];
+        };
+        /**
+         * is the language case insensitive?
+         */
+        ignoreCase?: boolean;
+        /**
+         * is the language unicode-aware? (i.e., /\u{1D306}/)
+         */
+        unicode?: boolean;
+        /**
+         * if no match in the tokenizer assign this token class (default 'source')
+         */
+        defaultToken?: string;
+        /**
+         * for example [['{','}','delimiter.curly']]
+         */
+        brackets?: IMonarchLanguageBracket[];
+        /**
+         * start symbol in the tokenizer (by default the first entry is used)
+         */
+        start?: string;
+        /**
+         * attach this to every token class (by default '.' + name)
+         */
+        tokenPostfix?: string;
+        /**
+         * include line feeds (in the form of a \n character) at the end of lines
+         * Defaults to false
+         */
+        includeLF?: boolean;
+        /**
+         * Other keys that can be referred to by the tokenizer.
+         */
+        [key: string]: any;
+    }
+
+    /**
+     * A rule is either a regular expression and an action
+     * 		shorthands: [reg,act] == { regex: reg, action: act}
+     *		and       : [reg,act,nxt] == { regex: reg, action: act{ next: nxt }}
+     */
+    export type IShortMonarchLanguageRule1 = [string | RegExp, IMonarchLanguageAction];
+
+    export type IShortMonarchLanguageRule2 = [string | RegExp, IMonarchLanguageAction, string];
+
+    export interface IExpandedMonarchLanguageRule {
+        /**
+         * match tokens
+         */
+        regex?: string | RegExp;
+        /**
+         * action to take on match
+         */
+        action?: IMonarchLanguageAction;
+        /**
+         * or an include rule. include all rules from the included state
+         */
+        include?: string;
+    }
+
+    export type IMonarchLanguageRule = IShortMonarchLanguageRule1 | IShortMonarchLanguageRule2 | IExpandedMonarchLanguageRule;
+
+    /**
+     * An action is either an array of actions...
+     * ... or a case statement with guards...
+     * ... or a basic action with a token value.
+     */
+    export type IShortMonarchLanguageAction = string;
+
+    export interface IExpandedMonarchLanguageAction {
+        /**
+         * array of actions for each parenthesized match group
+         */
+        group?: IMonarchLanguageAction[];
+        /**
+         * map from string to ILanguageAction
+         */
+        cases?: Object;
+        /**
+         * token class (ie. css class) (or "@brackets" or "@rematch")
+         */
+        token?: string;
+        /**
+         * the next state to push, or "@push", "@pop", "@popall"
+         */
+        next?: string;
+        /**
+         * switch to this state
+         */
+        switchTo?: string;
+        /**
+         * go back n characters in the stream
+         */
+        goBack?: number;
+        /**
+         * @open or @close
+         */
+        bracket?: string;
+        /**
+         * switch to embedded language (using the mimetype) or get out using "@pop"
+         */
+        nextEmbedded?: string;
+        /**
+         * log a message to the browser console window
+         */
+        log?: string;
+    }
+
+    export type IMonarchLanguageAction = IShortMonarchLanguageAction | IExpandedMonarchLanguageAction | IShortMonarchLanguageAction[] | IExpandedMonarchLanguageAction[];
+
+    /**
+     * This interface can be shortened as an array, ie. ['{','}','delimiter.curly']
+     */
+    export interface IMonarchLanguageBracket {
+        /**
+         * open bracket
+         */
+        open: string;
+        /**
+         * closing bracket
+         */
+        close: string;
+        /**
+         * token class
+         */
+        token: string;
+    }
+
+}
+
+declare namespace monaco.worker {
+
+
+    export interface IMirrorModel {
+        readonly uri: Uri;
+        readonly version: number;
+        getValue(): string;
+    }
+
+    export interface IWorkerContext {
+        /**
+         * A proxy to the main thread host object.
+         */
+        host: H;
+        /**
+         * Get all available mirror models in this worker.
+         */
+        getMirrorModels(): IMirrorModel[];
+    }
+
+}
+
+//dtsv=3
+
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+
+declare namespace monaco.languages.typescript {
+    export enum ModuleKind {
+        None = 0,
+        CommonJS = 1,
+        AMD = 2,
+        UMD = 3,
+        System = 4,
+        ES2015 = 5,
+        ESNext = 99
+    }
+    export enum JsxEmit {
+        None = 0,
+        Preserve = 1,
+        React = 2,
+        ReactNative = 3,
+        ReactJSX = 4,
+        ReactJSXDev = 5
+    }
+    export enum NewLineKind {
+        CarriageReturnLineFeed = 0,
+        LineFeed = 1
+    }
+    export enum ScriptTarget {
+        ES3 = 0,
+        ES5 = 1,
+        ES2015 = 2,
+        ES2016 = 3,
+        ES2017 = 4,
+        ES2018 = 5,
+        ES2019 = 6,
+        ES2020 = 7,
+        ESNext = 99,
+        JSON = 100,
+        Latest = 99
+    }
+    export enum ModuleResolutionKind {
+        Classic = 1,
+        NodeJs = 2
+    }
+    interface MapLike {
+        [index: string]: T;
+    }
+    type CompilerOptionsValue =
+        | string
+        | number
+        | boolean
+        | (string | number)[]
+        | string[]
+        | MapLike
+        | null
+        | undefined;
+    interface CompilerOptions {
+        allowJs?: boolean;
+        allowSyntheticDefaultImports?: boolean;
+        allowUmdGlobalAccess?: boolean;
+        allowUnreachableCode?: boolean;
+        allowUnusedLabels?: boolean;
+        alwaysStrict?: boolean;
+        baseUrl?: string;
+        charset?: string;
+        checkJs?: boolean;
+        declaration?: boolean;
+        declarationMap?: boolean;
+        emitDeclarationOnly?: boolean;
+        declarationDir?: string;
+        disableSizeLimit?: boolean;
+        disableSourceOfProjectReferenceRedirect?: boolean;
+        downlevelIteration?: boolean;
+        emitBOM?: boolean;
+        emitDecoratorMetadata?: boolean;
+        experimentalDecorators?: boolean;
+        forceConsistentCasingInFileNames?: boolean;
+        importHelpers?: boolean;
+        inlineSourceMap?: boolean;
+        inlineSources?: boolean;
+        isolatedModules?: boolean;
+        jsx?: JsxEmit;
+        keyofStringsOnly?: boolean;
+        lib?: string[];
+        locale?: string;
+        mapRoot?: string;
+        maxNodeModuleJsDepth?: number;
+        module?: ModuleKind;
+        moduleResolution?: ModuleResolutionKind;
+        newLine?: NewLineKind;
+        noEmit?: boolean;
+        noEmitHelpers?: boolean;
+        noEmitOnError?: boolean;
+        noErrorTruncation?: boolean;
+        noFallthroughCasesInSwitch?: boolean;
+        noImplicitAny?: boolean;
+        noImplicitReturns?: boolean;
+        noImplicitThis?: boolean;
+        noStrictGenericChecks?: boolean;
+        noUnusedLocals?: boolean;
+        noUnusedParameters?: boolean;
+        noImplicitUseStrict?: boolean;
+        noLib?: boolean;
+        noResolve?: boolean;
+        out?: string;
+        outDir?: string;
+        outFile?: string;
+        paths?: MapLike;
+        preserveConstEnums?: boolean;
+        preserveSymlinks?: boolean;
+        project?: string;
+        reactNamespace?: string;
+        jsxFactory?: string;
+        composite?: boolean;
+        removeComments?: boolean;
+        rootDir?: string;
+        rootDirs?: string[];
+        skipLibCheck?: boolean;
+        skipDefaultLibCheck?: boolean;
+        sourceMap?: boolean;
+        sourceRoot?: string;
+        strict?: boolean;
+        strictFunctionTypes?: boolean;
+        strictBindCallApply?: boolean;
+        strictNullChecks?: boolean;
+        strictPropertyInitialization?: boolean;
+        stripInternal?: boolean;
+        suppressExcessPropertyErrors?: boolean;
+        suppressImplicitAnyIndexErrors?: boolean;
+        target?: ScriptTarget;
+        traceResolution?: boolean;
+        resolveJsonModule?: boolean;
+        types?: string[];
+        /** Paths used to compute primary types search locations */
+        typeRoots?: string[];
+        esModuleInterop?: boolean;
+        useDefineForClassFields?: boolean;
+        [option: string]: CompilerOptionsValue | undefined;
+    }
+    export interface DiagnosticsOptions {
+        noSemanticValidation?: boolean;
+        noSyntaxValidation?: boolean;
+        noSuggestionDiagnostics?: boolean;
+        diagnosticCodesToIgnore?: number[];
+    }
+    export interface WorkerOptions {
+        /** A full HTTP path to a JavaScript file which adds a function `customTSWorkerFactory` to the self inside a web-worker */
+        customWorkerPath?: string;
+    }
+    interface IExtraLib {
+        content: string;
+        version: number;
+    }
+    export interface IExtraLibs {
+        [path: string]: IExtraLib;
+    }
+    /**
+     * A linked list of formatted diagnostic messages to be used as part of a multiline message.
+     * It is built from the bottom up, leaving the head to be the "main" diagnostic.
+     */
+    interface DiagnosticMessageChain {
+        messageText: string;
+        /** Diagnostic category: warning = 0, error = 1, suggestion = 2, message = 3 */
+        category: 0 | 1 | 2 | 3;
+        code: number;
+        next?: DiagnosticMessageChain[];
+    }
+    export interface Diagnostic extends DiagnosticRelatedInformation {
+        /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
+        reportsUnnecessary?: {};
+        reportsDeprecated?: {};
+        source?: string;
+        relatedInformation?: DiagnosticRelatedInformation[];
+    }
+    export interface DiagnosticRelatedInformation {
+        /** Diagnostic category: warning = 0, error = 1, suggestion = 2, message = 3 */
+        category: 0 | 1 | 2 | 3;
+        code: number;
+        /** TypeScriptWorker removes all but the `fileName` property to avoid serializing circular JSON structures. */
+        file:
+            | {
+                    fileName: string;
+              }
+            | undefined;
+        start: number | undefined;
+        length: number | undefined;
+        messageText: string | DiagnosticMessageChain;
+    }
+    interface EmitOutput {
+        outputFiles: OutputFile[];
+        emitSkipped: boolean;
+    }
+    interface OutputFile {
+        name: string;
+        writeByteOrderMark: boolean;
+        text: string;
+    }
+    export interface LanguageServiceDefaults {
+        /**
+         * Event fired when compiler options or diagnostics options are changed.
+         */
+        readonly onDidChange: IEvent;
+        /**
+         * Event fired when extra libraries registered with the language service change.
+         */
+        readonly onDidExtraLibsChange: IEvent;
+        readonly workerOptions: WorkerOptions;
+        /**
+         * Get the current extra libs registered with the language service.
+         */
+        getExtraLibs(): IExtraLibs;
+        /**
+         * Add an additional source file to the language service. Use this
+         * for typescript (definition) files that won't be loaded as editor
+         * documents, like `jquery.d.ts`.
+         *
+         * @param content The file content
+         * @param filePath An optional file path
+         * @returns A disposable which will remove the file from the
+         * language service upon disposal.
+         */
+        addExtraLib(content: string, filePath?: string): IDisposable;
+        /**
+         * Remove all existing extra libs and set the additional source
+         * files to the language service. Use this for typescript definition
+         * files that won't be loaded as editor documents, like `jquery.d.ts`.
+         * @param libs An array of entries to register.
+         */
+        setExtraLibs(
+            libs: {
+                content: string;
+                filePath?: string;
+            }[]
+        ): void;
+        /**
+         * Get current TypeScript compiler options for the language service.
+         */
+        getCompilerOptions(): CompilerOptions;
+        /**
+         * Set TypeScript compiler options.
+         */
+        setCompilerOptions(options: CompilerOptions): void;
+        /**
+         * Get the current diagnostics options for the language service.
+         */
+        getDiagnosticsOptions(): DiagnosticsOptions;
+        /**
+         * Configure whether syntactic and/or semantic validation should
+         * be performed
+         */
+        setDiagnosticsOptions(options: DiagnosticsOptions): void;
+        /**
+         * Configure webworker options
+         */
+        setWorkerOptions(options: WorkerOptions): void;
+        /**
+         * No-op.
+         */
+        setMaximumWorkerIdleTime(value: number): void;
+        /**
+         * Configure if all existing models should be eagerly sync'd
+         * to the worker on start or restart.
+         */
+        setEagerModelSync(value: boolean): void;
+        /**
+         * Get the current setting for whether all existing models should be eagerly sync'd
+         * to the worker on start or restart.
+         */
+        getEagerModelSync(): boolean;
+    }
+    export interface TypeScriptWorker {
+        /**
+         * Get diagnostic messages for any syntax issues in the given file.
+         */
+        getSyntacticDiagnostics(fileName: string): Promise;
+        /**
+         * Get diagnostic messages for any semantic issues in the given file.
+         */
+        getSemanticDiagnostics(fileName: string): Promise;
+        /**
+         * Get diagnostic messages for any suggestions related to the given file.
+         */
+        getSuggestionDiagnostics(fileName: string): Promise;
+        /**
+         * Get the content of a given file.
+         */
+        getScriptText(fileName: string): Promise;
+        /**
+         * Get diagnostic messages related to the current compiler options.
+         * @param fileName Not used
+         */
+        getCompilerOptionsDiagnostics(fileName: string): Promise;
+        /**
+         * Get code completions for the given file and position.
+         * @returns `Promise`
+         */
+        getCompletionsAtPosition(fileName: string, position: number): Promise;
+        /**
+         * Get code completion details for the given file, position, and entry.
+         * @returns `Promise`
+         */
+        getCompletionEntryDetails(
+            fileName: string,
+            position: number,
+            entry: string
+        ): Promise;
+        /**
+         * Get signature help items for the item at the given file and position.
+         * @returns `Promise`
+         */
+        getSignatureHelpItems(
+            fileName: string,
+            position: number,
+            options: any
+        ): Promise;
+        /**
+         * Get quick info for the item at the given position in the file.
+         * @returns `Promise`
+         */
+        getQuickInfoAtPosition(fileName: string, position: number): Promise;
+        /**
+         * Get other ranges which are related to the item at the given position in the file (often used for highlighting).
+         * @returns `Promise | undefined>`
+         */
+        getOccurrencesAtPosition(
+            fileName: string,
+            position: number
+        ): Promise | undefined>;
+        /**
+         * Get the definition of the item at the given position in the file.
+         * @returns `Promise | undefined>`
+         */
+        getDefinitionAtPosition(
+            fileName: string,
+            position: number
+        ): Promise | undefined>;
+        /**
+         * Get references to the item at the given position in the file.
+         * @returns `Promise`
+         */
+        getReferencesAtPosition(fileName: string, position: number): Promise;
+        /**
+         * Get outline entries for the item at the given position in the file.
+         * @returns `Promise`
+         */
+        getNavigationBarItems(fileName: string): Promise;
+        /**
+         * Get changes which should be applied to format the given file.
+         * @param options `typescript.FormatCodeOptions`
+         * @returns `Promise`
+         */
+        getFormattingEditsForDocument(fileName: string, options: any): Promise;
+        /**
+         * Get changes which should be applied to format the given range in the file.
+         * @param options `typescript.FormatCodeOptions`
+         * @returns `Promise`
+         */
+        getFormattingEditsForRange(
+            fileName: string,
+            start: number,
+            end: number,
+            options: any
+        ): Promise;
+        /**
+         * Get formatting changes which should be applied after the given keystroke.
+         * @param options `typescript.FormatCodeOptions`
+         * @returns `Promise`
+         */
+        getFormattingEditsAfterKeystroke(
+            fileName: string,
+            postion: number,
+            ch: string,
+            options: any
+        ): Promise;
+        /**
+         * Get other occurrences which should be updated when renaming the item at the given file and position.
+         * @returns `Promise`
+         */
+        findRenameLocations(
+            fileName: string,
+            positon: number,
+            findInStrings: boolean,
+            findInComments: boolean,
+            providePrefixAndSuffixTextForRename: boolean
+        ): Promise;
+        /**
+         * Get edits which should be applied to rename the item at the given file and position (or a failure reason).
+         * @param options `typescript.RenameInfoOptions`
+         * @returns `Promise`
+         */
+        getRenameInfo(fileName: string, positon: number, options: any): Promise;
+        /**
+         * Get transpiled output for the given file.
+         * @returns `typescript.EmitOutput`
+         */
+        getEmitOutput(fileName: string): Promise;
+        /**
+         * Get possible code fixes at the given position in the file.
+         * @param formatOptions `typescript.FormatCodeOptions`
+         * @returns `Promise>`
+         */
+        getCodeFixesAtPosition(
+            fileName: string,
+            start: number,
+            end: number,
+            errorCodes: number[],
+            formatOptions: any
+        ): Promise>;
+    }
+    export const typescriptVersion: string;
+    export const typescriptDefaults: LanguageServiceDefaults;
+    export const javascriptDefaults: LanguageServiceDefaults;
+    export const getTypeScriptWorker: () => Promise<(...uris: Uri[]) => Promise>;
+    export const getJavaScriptWorker: () => Promise<(...uris: Uri[]) => Promise>;
+}
+
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+
+declare namespace monaco.languages.css {
+    export interface DiagnosticsOptions {
+        readonly validate?: boolean;
+        readonly lint?: {
+            readonly compatibleVendorPrefixes?: 'ignore' | 'warning' | 'error';
+            readonly vendorPrefix?: 'ignore' | 'warning' | 'error';
+            readonly duplicateProperties?: 'ignore' | 'warning' | 'error';
+            readonly emptyRules?: 'ignore' | 'warning' | 'error';
+            readonly importStatement?: 'ignore' | 'warning' | 'error';
+            readonly boxModel?: 'ignore' | 'warning' | 'error';
+            readonly universalSelector?: 'ignore' | 'warning' | 'error';
+            readonly zeroUnits?: 'ignore' | 'warning' | 'error';
+            readonly fontFaceProperties?: 'ignore' | 'warning' | 'error';
+            readonly hexColorLength?: 'ignore' | 'warning' | 'error';
+            readonly argumentsInColorFunction?: 'ignore' | 'warning' | 'error';
+            readonly unknownProperties?: 'ignore' | 'warning' | 'error';
+            readonly ieHack?: 'ignore' | 'warning' | 'error';
+            readonly unknownVendorSpecificProperties?: 'ignore' | 'warning' | 'error';
+            readonly propertyIgnoredDueToDisplay?: 'ignore' | 'warning' | 'error';
+            readonly important?: 'ignore' | 'warning' | 'error';
+            readonly float?: 'ignore' | 'warning' | 'error';
+            readonly idSelector?: 'ignore' | 'warning' | 'error';
+        };
+    }
+    export interface ModeConfiguration {
+        /**
+         * Defines whether the built-in completionItemProvider is enabled.
+         */
+        readonly completionItems?: boolean;
+        /**
+         * Defines whether the built-in hoverProvider is enabled.
+         */
+        readonly hovers?: boolean;
+        /**
+         * Defines whether the built-in documentSymbolProvider is enabled.
+         */
+        readonly documentSymbols?: boolean;
+        /**
+         * Defines whether the built-in definitions provider is enabled.
+         */
+        readonly definitions?: boolean;
+        /**
+         * Defines whether the built-in references provider is enabled.
+         */
+        readonly references?: boolean;
+        /**
+         * Defines whether the built-in references provider is enabled.
+         */
+        readonly documentHighlights?: boolean;
+        /**
+         * Defines whether the built-in rename provider is enabled.
+         */
+        readonly rename?: boolean;
+        /**
+         * Defines whether the built-in color provider is enabled.
+         */
+        readonly colors?: boolean;
+        /**
+         * Defines whether the built-in foldingRange provider is enabled.
+         */
+        readonly foldingRanges?: boolean;
+        /**
+         * Defines whether the built-in diagnostic provider is enabled.
+         */
+        readonly diagnostics?: boolean;
+        /**
+         * Defines whether the built-in selection range provider is enabled.
+         */
+        readonly selectionRanges?: boolean;
+    }
+    export interface LanguageServiceDefaults {
+        readonly languageId: string;
+        readonly onDidChange: IEvent;
+        readonly diagnosticsOptions: DiagnosticsOptions;
+        readonly modeConfiguration: ModeConfiguration;
+        setDiagnosticsOptions(options: DiagnosticsOptions): void;
+        setModeConfiguration(modeConfiguration: ModeConfiguration): void;
+    }
+    export const cssDefaults: LanguageServiceDefaults;
+    export const scssDefaults: LanguageServiceDefaults;
+    export const lessDefaults: LanguageServiceDefaults;
+}
+
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+
+declare namespace monaco.languages.json {
+    export interface DiagnosticsOptions {
+        /**
+         * If set, the validator will be enabled and perform syntax validation as well as schema based validation.
+         */
+        readonly validate?: boolean;
+        /**
+         * If set, comments are tolerated. If set to false, syntax errors will be emitted for comments.
+         */
+        readonly allowComments?: boolean;
+        /**
+         * A list of known schemas and/or associations of schemas to file names.
+         */
+        readonly schemas?: {
+            /**
+             * The URI of the schema, which is also the identifier of the schema.
+             */
+            readonly uri: string;
+            /**
+             * A list of file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json'
+             */
+            readonly fileMatch?: string[];
+            /**
+             * The schema for the given URI.
+             */
+            readonly schema?: any;
+        }[];
+        /**
+         *  If set, the schema service would load schema content on-demand with 'fetch' if available
+         */
+        readonly enableSchemaRequest?: boolean;
+        /**
+         * The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used.
+         */
+        readonly schemaValidation?: SeverityLevel;
+        /**
+         * The severity of problems that occurred when resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used.
+         */
+        readonly schemaRequest?: SeverityLevel;
+    }
+    export type SeverityLevel = 'error' | 'warning' | 'ignore';
+    export interface ModeConfiguration {
+        /**
+         * Defines whether the built-in documentFormattingEdit provider is enabled.
+         */
+        readonly documentFormattingEdits?: boolean;
+        /**
+         * Defines whether the built-in documentRangeFormattingEdit provider is enabled.
+         */
+        readonly documentRangeFormattingEdits?: boolean;
+        /**
+         * Defines whether the built-in completionItemProvider is enabled.
+         */
+        readonly completionItems?: boolean;
+        /**
+         * Defines whether the built-in hoverProvider is enabled.
+         */
+        readonly hovers?: boolean;
+        /**
+         * Defines whether the built-in documentSymbolProvider is enabled.
+         */
+        readonly documentSymbols?: boolean;
+        /**
+         * Defines whether the built-in tokens provider is enabled.
+         */
+        readonly tokens?: boolean;
+        /**
+         * Defines whether the built-in color provider is enabled.
+         */
+        readonly colors?: boolean;
+        /**
+         * Defines whether the built-in foldingRange provider is enabled.
+         */
+        readonly foldingRanges?: boolean;
+        /**
+         * Defines whether the built-in diagnostic provider is enabled.
+         */
+        readonly diagnostics?: boolean;
+        /**
+         * Defines whether the built-in selection range provider is enabled.
+         */
+        readonly selectionRanges?: boolean;
+    }
+    export interface LanguageServiceDefaults {
+        readonly languageId: string;
+        readonly onDidChange: IEvent;
+        readonly diagnosticsOptions: DiagnosticsOptions;
+        readonly modeConfiguration: ModeConfiguration;
+        setDiagnosticsOptions(options: DiagnosticsOptions): void;
+        setModeConfiguration(modeConfiguration: ModeConfiguration): void;
+    }
+    export const jsonDefaults: LanguageServiceDefaults;
+}
+
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+
+declare namespace monaco.languages.html {
+    export interface HTMLFormatConfiguration {
+        readonly tabSize: number;
+        readonly insertSpaces: boolean;
+        readonly wrapLineLength: number;
+        readonly unformatted: string;
+        readonly contentUnformatted: string;
+        readonly indentInnerHtml: boolean;
+        readonly preserveNewLines: boolean;
+        readonly maxPreserveNewLines: number;
+        readonly indentHandlebars: boolean;
+        readonly endWithNewline: boolean;
+        readonly extraLiners: string;
+        readonly wrapAttributes: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline';
+    }
+    export interface CompletionConfiguration {
+        [provider: string]: boolean;
+    }
+    export interface Options {
+        /**
+         * If set, comments are tolerated. If set to false, syntax errors will be emitted for comments.
+         */
+        readonly format?: HTMLFormatConfiguration;
+        /**
+         * A list of known schemas and/or associations of schemas to file names.
+         */
+        readonly suggest?: CompletionConfiguration;
+    }
+    export interface ModeConfiguration {
+        /**
+         * Defines whether the built-in completionItemProvider is enabled.
+         */
+        readonly completionItems?: boolean;
+        /**
+         * Defines whether the built-in hoverProvider is enabled.
+         */
+        readonly hovers?: boolean;
+        /**
+         * Defines whether the built-in documentSymbolProvider is enabled.
+         */
+        readonly documentSymbols?: boolean;
+        /**
+         * Defines whether the built-in definitions provider is enabled.
+         */
+        readonly links?: boolean;
+        /**
+         * Defines whether the built-in references provider is enabled.
+         */
+        readonly documentHighlights?: boolean;
+        /**
+         * Defines whether the built-in rename provider is enabled.
+         */
+        readonly rename?: boolean;
+        /**
+         * Defines whether the built-in color provider is enabled.
+         */
+        readonly colors?: boolean;
+        /**
+         * Defines whether the built-in foldingRange provider is enabled.
+         */
+        readonly foldingRanges?: boolean;
+        /**
+         * Defines whether the built-in diagnostic provider is enabled.
+         */
+        readonly diagnostics?: boolean;
+        /**
+         * Defines whether the built-in selection range provider is enabled.
+         */
+        readonly selectionRanges?: boolean;
+        /**
+         * Defines whether the built-in documentFormattingEdit provider is enabled.
+         */
+        readonly documentFormattingEdits?: boolean;
+        /**
+         * Defines whether the built-in documentRangeFormattingEdit provider is enabled.
+         */
+        readonly documentRangeFormattingEdits?: boolean;
+    }
+    export interface LanguageServiceDefaults {
+        readonly languageId: string;
+        readonly modeConfiguration: ModeConfiguration;
+        readonly onDidChange: IEvent;
+        readonly options: Options;
+        setOptions(options: Options): void;
+    }
+    export const htmlDefaults: LanguageServiceDefaults;
+    export const handlebarDefaults: LanguageServiceDefaults;
+    export const razorDefaults: LanguageServiceDefaults;
+}
\ No newline at end of file
diff --git a/Blogger/main.coffee b/Blogger/main.coffee
index bf05f7a..e601d2b 100644
--- a/Blogger/main.coffee
+++ b/Blogger/main.coffee
@@ -19,6 +19,7 @@ class Blogger extends this.OS.application.BaseApplication
     constructor: (args) ->
         super "Blogger", args
     
+    
     main: () ->
         @user = {}
         @cvlist = @find "cv-list"
diff --git a/libantosdk/README.md b/libantosdk/README.md
new file mode 100644
index 0000000..3e23198
--- /dev/null
+++ b/libantosdk/README.md
@@ -0,0 +1,15 @@
+# libantosdk
+This is an example project, generated by AntOS Development Kit
+
+## Howto
+Use the CodePad command palette to access to the SDK functionalities:
+
+1. Create new project
+2. Init the project from the current folder located in side bar
+3. Build and run the project
+4. Release the project in zip package
+
+## Set up build target
+
+Open the `project.json` file from the current project tree and add/remove
+build target entries. Save the file
\ No newline at end of file
diff --git a/libantosdk/build.json b/libantosdk/build.json
new file mode 100644
index 0000000..bbe0410
--- /dev/null
+++ b/libantosdk/build.json
@@ -0,0 +1,70 @@
+{
+    "targets":{
+        "clean": {
+            "jobs": [
+                {
+                    "name": "vfs-rm",
+                    "data": ["build/debug/scheme.html"]
+                }
+            ]
+        },
+        "build": {
+            "require": ["ts"],
+            "jobs":[
+                {
+                    "name": "vfs-mkdir",
+                    "data": ["build","build/debug","build/release"]
+                },
+                {
+                    "name": "ts-import",
+                    "data": ["core/ts/core.d.ts", "core/ts/jquery.d.ts","core/ts/antos.d.ts"]
+                },
+                {
+                    "name": "ts-compile",
+                    "data": {
+                        "src": ["ts/main.ts"],
+                        "dest": "build/debug/main.js"
+                    }
+                }
+            ]
+        },
+        "uglify": {
+            "require": ["terser"],
+            "jobs": [
+                {
+                    "name":"terser-uglify",
+                    "data": ["build/debug/main.js"]
+                }
+            ]
+        },
+        "copy": {
+            "jobs": [
+                {
+                    "name": "vfs-cp",
+                    "data": {
+                        "src": [
+                            "package.json",
+                            "README.md",
+                            "scheme.html",
+                            "core"
+                        ],
+                        "dest":"build/debug"
+                    }
+                }
+            ]
+        },
+        "release": {
+            "depend": ["clean","build","uglify", "copy"],
+            "require": ["zip"],
+            "jobs": [
+                {
+                    "name": "zip-mk",
+                    "data": {
+                        "src":"build/debug",
+                        "dest":"build/release/libantosdk.zip"
+                    }
+                }
+            ]
+        }
+    }
+}
\ No newline at end of file
diff --git a/libantosdk/build/debug/README.md b/libantosdk/build/debug/README.md
new file mode 100644
index 0000000..3e23198
--- /dev/null
+++ b/libantosdk/build/debug/README.md
@@ -0,0 +1,15 @@
+# libantosdk
+This is an example project, generated by AntOS Development Kit
+
+## Howto
+Use the CodePad command palette to access to the SDK functionalities:
+
+1. Create new project
+2. Init the project from the current folder located in side bar
+3. Build and run the project
+4. Release the project in zip package
+
+## Set up build target
+
+Open the `project.json` file from the current project tree and add/remove
+build target entries. Save the file
\ No newline at end of file
diff --git a/libantosdk/build/debug/core/coffee.worker.js b/libantosdk/build/debug/core/coffee.worker.js
new file mode 100644
index 0000000..646cfcc
--- /dev/null
+++ b/libantosdk/build/debug/core/coffee.worker.js
@@ -0,0 +1,52 @@
+importScripts('coffeescript.js');
+
+class CompileCoffeeJob extends AntOSDKBaseJob {
+    constructor(data)
+    {
+        super(data);
+    }
+    execute()
+    {
+        if(!CoffeeScript)
+        {
+            const e_msg = "CoffeeScript module is not loaded";
+            this.log_error(e_msg);
+            return this.error(e_msg);
+        }
+        // very files all data
+        this.read_files(this.job.data.src)
+            .then((contents) => {
+                const errors = [];
+                for(let i in contents)
+                {
+                    const data = contents[i];
+                    const file = this.job.data.src[i];
+                    try {
+                        CoffeeScript.nodes(data);
+                        this.log_info(`File ${file} verified`);
+                    } catch (ex) {
+                        errors.push(ex);
+                        this.log_error(`${file}: ${ex.toString()}`);
+                    }
+                }
+                if(errors.length > 0)
+                {
+                    return this.error(errors);
+                }
+                const code = contents.join("\n");
+                const jsrc = CoffeeScript.compile(code);
+                // write to file
+                this.save_file(this.job.data.dest,jsrc)
+                    .then(r => {
+                        this.log_info(`File ${this.job.data.dest} generated`);
+                        this.result(this.job.data.dest);
+                    })
+                    .catch(e1 => {
+                        this.error(e1);
+                    });
+            })
+            .catch(e => this.error(e));
+    }
+}
+
+API.jobhandle["coffee-compile"] = CompileCoffeeJob;
\ No newline at end of file
diff --git a/libantosdk/build/debug/core/coffeescript.js b/libantosdk/build/debug/core/coffeescript.js
new file mode 100644
index 0000000..d348a2d
--- /dev/null
+++ b/libantosdk/build/debug/core/coffeescript.js
@@ -0,0 +1,8 @@
+/**
+ * CoffeeScript Compiler v2.5.1
+ * https://coffeescript.org
+ *
+ * Copyright 2011-2020, Jeremy Ashkenas
+ * Released under the MIT License
+ */
+function _get(target,property,receiver){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(target,property,receiver){var base=_superPropBase(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(receiver):desc.value}},_get(target,property,receiver||target)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_nonIterableRest()}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0,descriptor;i=6"},directories:{lib:"./lib/coffeescript"},main:"./lib/coffeescript/index",module:"./lib/coffeescript-browser-compiler-modern/coffeescript.js",browser:"./lib/coffeescript-browser-compiler-legacy/coffeescript.js",bin:{coffee:"./bin/coffee",cake:"./bin/cake"},files:["bin","lib","register.js","repl.js"],scripts:{test:"node ./bin/cake test","test-harmony":"node --harmony ./bin/cake test"},homepage:"https://coffeescript.org",bugs:"https://github.com/jashkenas/coffeescript/issues",repository:{type:"git",url:"git://github.com/jashkenas/coffeescript.git"},devDependencies:{"@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7","babel-preset-minify":"^0.5.1",codemirror:"^5.50.0",docco:"~0.8.0","highlight.js":"~9.17.1",jison:"^0.4.18","markdown-it":"~10.0.0",underscore:"~1.9.1",webpack:"~4.41.5"},dependencies:{}}}(),require["./helpers"]=function(){var exports={};return function(){var indexOf=[].indexOf,UNICODE_CODE_POINT_ESCAPE,attachCommentsToNode,buildLocationData,buildLocationHash,buildTokenDataDictionary,extend,_flatten,isBoolean,isNumber,isString,ref,repeat,syntaxErrorToString,unicodeCodePointToUnicodeEscapes;exports.starts=function(string,literal,start){return literal===string.substr(start,literal.length)},exports.ends=function(string,literal,back){var len;return len=literal.length,literal===string.substr(string.length-len-(back||0),len)},exports.repeat=repeat=function(str,n){var res;for(res="";0>>=1,str+=str;return res},exports.compact=function(array){var i,item,len1,results;for(results=[],i=0,len1=array.length;icodePoint)?toUnicodeEscape(codePoint):(high=_Mathfloor((codePoint-65536)/1024)+55296,low=(codePoint-65536)%1024+56320,"".concat(toUnicodeEscape(high)).concat(toUnicodeEscape(low)))},exports.replaceUnicodeCodePointEscapes=function(str){var _ref2=1indexOf.call(flags,"u"),str.replace(UNICODE_CODE_POINT_ESCAPE,function(match,escapedBackslash,codePointHex,offset){var codePointDecimal;return escapedBackslash?escapedBackslash:(codePointDecimal=parseInt(codePointHex,16),1114111levels)return opts.returnOnNegativeLevel?void 0:action.call(this,token,i);i+=1}return i-1}},{key:"removeLeadingNewlines",value:function removeLeadingNewlines(){var i,k,l,leadingNewlineToken,len,len1,ref,ref1,tag;for(ref=this.tokens,i=k=0,len=ref.length;k=i&&":"===this.tokens[i+1][0]?(startToken[0]="[",token[0]="]"):token[0]="INDEX_END"},this.scanTokens(function(token,i){return"INDEX_START"===token[0]&&(startToken=token,this.detectEnd(i+1,condition,action)),1})}},{key:"indexOfTag",value:function indexOfTag(i){var fuzz,j,k,ref,ref1;fuzz=0;for(var _len=arguments.length,pattern=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)pattern[_key-1]=arguments[_key];for(j=k=0,ref=pattern.length;0<=ref?kref;j=0<=ref?++k:--k)if(null!=pattern[j]&&("string"==typeof pattern[j]&&(pattern[j]=[pattern[j]]),ref1=this.tag(i+j+fuzz),0>indexOf.call(pattern[j],ref1)))return-1;return i+j+fuzz-1}},{key:"looksObjectish",value:function looksObjectish(j){var end,index;return-1!==this.indexOfTag(j,"@",null,":")||-1!==this.indexOfTag(j,null,":")||(index=this.indexOfTag(j,EXPRESSION_START),!!(-1!==index&&(end=null,this.detectEnd(index+1,function(token){var ref;return ref=token[0],0<=indexOf.call(EXPRESSION_END,ref)},function(token,i){return end=i}),":"===this.tag(end+1))))}},{key:"findTagsBackwards",value:function findTagsBackwards(i,tags){var backStack,ref,ref1,ref2,ref3,ref4,ref5;for(backStack=[];0<=i&&(backStack.length||(ref2=this.tag(i),0>indexOf.call(tags,ref2))&&((ref3=this.tag(i),0>indexOf.call(EXPRESSION_START,ref3))||this.tokens[i].generated)&&(ref4=this.tag(i),0>indexOf.call(LINEBREAKS,ref4)));)(ref=this.tag(i),0<=indexOf.call(EXPRESSION_END,ref))&&backStack.push(this.tag(i)),(ref1=this.tag(i),0<=indexOf.call(EXPRESSION_START,ref1))&&backStack.length&&backStack.pop(),i-=1;return ref5=this.tag(i),0<=indexOf.call(tags,ref5)}},{key:"addImplicitBracesAndParens",value:function addImplicitBracesAndParens(){var stack,start;return stack=[],start=null,this.scanTokens(function(token,i,tokens){var _this=this,_token=_slicedToArray(token,1),endImplicitCall,endImplicitObject,forward,implicitObjectContinues,implicitObjectIndent,inControlFlow,inImplicit,inImplicitCall,inImplicitControl,inImplicitObject,isImplicit,isImplicitCall,isImplicitObject,k,newLine,nextTag,nextToken,offset,preContinuationLineIndent,preObjectToken,prevTag,prevToken,ref,ref1,ref2,ref3,s,sameLine,stackIdx,stackItem,stackTag,stackTop,startIdx,startImplicitCall,startImplicitObject,startIndex,startTag,startsLine,tag;tag=_token[0];var _prevToken=prevToken=0"!==prevTag&&"->"!==prevTag&&"["!==prevTag&&"("!==prevTag&&","!==prevTag&&"{"!==prevTag&&"ELSE"!==prevTag&&"="!==prevTag)for(;inImplicitCall()||inImplicitObject()&&":"!==prevTag;)inImplicitCall()?endImplicitCall():endImplicitObject();return inImplicitControl()&&stack.pop(),stack.push([tag,i]),forward(1)}if(0<=indexOf.call(EXPRESSION_START,tag))return stack.push([tag,i]),forward(1);if(0<=indexOf.call(EXPRESSION_END,tag)){for(;inImplicit();)inImplicitCall()?endImplicitCall():inImplicitObject()?endImplicitObject():stack.pop();start=stack.pop()}if(inControlFlow=function(){var controlFlow,isFunc,seenFor,tagCurrentLine;return(seenFor=_this.findTagsBackwards(i,["FOR"])&&_this.findTagsBackwards(i,["FORIN","FOROF","FORFROM"]),controlFlow=seenFor||_this.findTagsBackwards(i,["WHILE","UNTIL","LOOP","LEADING_WHEN"]),!!controlFlow)&&(isFunc=!1,tagCurrentLine=token[2].first_line,_this.detectEnd(i,function(token){var ref;return ref=token[0],0<=indexOf.call(LINEBREAKS,ref)},function(token,i){var _ref4=tokens[i-1]||[],_ref5=_slicedToArray(_ref4,3),first_line;return prevTag=_ref5[0],first_line=_ref5[2].first_line,isFunc=tagCurrentLine===first_line&&("->"===prevTag||"=>"===prevTag)},{returnOnNegativeLevel:!0}),isFunc)},(0<=indexOf.call(IMPLICIT_FUNC,tag)&&token.spaced||"?"===tag&&0indexOf.call(EXPRESSION_END,ref1)):var _start=start,_start2=_slicedToArray(_start,2);return startTag=_start2[0],startIndex=_start2[1],"["===startTag&&0=s||(ref1=this.tag(s-1),0<=indexOf.call(LINEBREAKS,ref1))||tokens[s-1].newLine,stackTop()){var _stackTop=stackTop(),_stackTop2=_slicedToArray(_stackTop,2);if(stackTag=_stackTop2[0],stackIdx=_stackTop2[1],("{"===stackTag||"INDENT"===stackTag&&"{"===this.tag(stackIdx-1))&&(startsLine||","===this.tag(s-1)||"{"===this.tag(s-1))&&(ref2=this.tag(s-1),0>indexOf.call(UNFINISHED,ref2)))return forward(1)}return preObjectToken=1preContinuationLineIndent;)endImplicitObject();if(newLine="OUTDENT"===prevTag||prevToken.newLine,0<=indexOf.call(IMPLICIT_END,tag)||0<=indexOf.call(CALL_CLOSERS,tag)&&newLine||(".."===tag||"..."===tag)&&this.findTagsBackwards(i,["INDEX_START"]))for(;inImplicit();){var _stackTop3=stackTop(),_stackTop4=_slicedToArray(_stackTop3,3);stackTag=_stackTop4[0],stackIdx=_stackTop4[1];var _stackTop4$=_stackTop4[2];if(sameLine=_stackTop4$.sameLine,startsLine=_stackTop4$.startsLine,inImplicitCall()&&","!==prevTag||","===prevTag&&"TERMINATOR"===tag&&null==nextTag)endImplicitCall();else if(inImplicitObject()&&sameLine&&"TERMINATOR"!==tag&&":"!==prevTag&&!(("POST_IF"===tag||"FOR"===tag||"WHILE"===tag||"UNTIL"===tag)&&startsLine&&implicitObjectContinues(i+1)))endImplicitObject();else if(inImplicitObject()&&"TERMINATOR"===tag&&","!==prevTag&&!(startsLine&&this.looksObjectish(i+1)))endImplicitObject();else if(inImplicitControl()&&"CLASS"===tokens[stackTop()[1]][0]&&"TERMINATOR"===tag)stack.pop();else break}if(","===tag&&!this.looksObjectish(i+1)&&inImplicitObject()&&"FOROF"!==(ref3=this.tag(i+2))&&"FORIN"!==ref3&&("TERMINATOR"!==nextTag||!this.looksObjectish(i+2)))for(offset="OUTDENT"===nextTag?1:0;inImplicitObject();)endImplicitObject(i+offset);return forward(1)})}},{key:"enforceValidJSXAttributes",value:function enforceValidJSXAttributes(){return this.scanTokens(function(token,i,tokens){var next,ref;return token.jsxColon&&(next=tokens[i+1],"STRING_START"!==(ref=next[0])&&"STRING"!==ref&&"("!==ref&&throwSyntaxError("expected wrapped or quoted JSX attribute",next[2])),1})}},{key:"rescueStowawayComments",value:function rescueStowawayComments(){var dontShiftForward,insertPlaceholder,shiftCommentsBackward,shiftCommentsForward;return insertPlaceholder=function(token,j,tokens,method){return"TERMINATOR"!==tokens[j][0]&&tokens[method](generate("TERMINATOR","\n",tokens[j])),tokens[method](generate("JS","",tokens[j],token))},dontShiftForward=function(i,tokens){var j,ref;for(j=i+1;j!==tokens.length&&(ref=tokens[j][0],0<=indexOf.call(DISCARDED,ref));){if("INTERPOLATION_END"===tokens[j][0])return!0;j++}return!1},shiftCommentsForward=function(token,i,tokens){var comment,j,k,len,ref,ref1,ref2;for(j=i;j!==tokens.length&&(ref=tokens[j][0],0<=indexOf.call(DISCARDED,ref));)j++;if(!(j===tokens.length||(ref1=tokens[j][0],0<=indexOf.call(DISCARDED,ref1)))){for(ref2=token.comments,k=0,len=ref2.length;kindentSize)&&(!indented||comment.indented)&&!!(comment.locationData.range[0]afterPosition)},first){for(lastMatching=null,ref=_this2.allComments,k=ref.length-1;0<=k;k+=-1)if(comment=ref[k],matches(comment))lastMatching=comment;else if(lastMatching)return lastMatching;return lastMatching}for(ref1=_this2.allComments,l=ref1.length-1;0<=l;l+=-1)if(comment=ref1[l],matches(comment))return comment;return null},this.scanTokens(function(token,i,tokens){var isIndent,nextToken,nextTokenIndex,precedingComment,prevLocationData,prevToken,ref,ref1,ref2,useNextToken;if("INDENT"!==(ref=token[0])&&"OUTDENT"!==ref&&(!token.generated||"CALL_END"!==token[0]||null!=(ref1=token.data)&&ref1.closingTagNameToken)&&(!token.generated||"}"!==token[0]))return 1;if(isIndent="INDENT"===token[0],prevToken=null==(ref2=token.prevToken)?tokens[i-1]:ref2,prevLocationData=prevToken[2],useNextToken=token.explicit||token.generated,useNextToken)for(nextToken=token,nextTokenIndex=i;(nextToken.explicit||nextToken.generated)&&nextTokenIndex!==tokens.length-1;)nextToken=tokens[nextTokenIndex++];return(precedingComment=findPrecedingComment(useNextToken?nextToken:token,{afterPosition:prevLocationData.range[0],indentSize:token.indentSize,first:isIndent,indented:useNextToken}),isIndent&&(null==precedingComment||!precedingComment.newLine))?1:token.generated&&"CALL_END"===token[0]&&(null==precedingComment?void 0:precedingComment.indented)?1:(null!=precedingComment&&(prevLocationData=precedingComment.locationData),token[2]={first_line:null==precedingComment?prevLocationData.last_line:prevLocationData.first_line,first_column:null==precedingComment?prevLocationData.last_column:isIndent?0:prevLocationData.first_column,last_line:prevLocationData.last_line,last_column:prevLocationData.last_column,last_line_exclusive:prevLocationData.last_line_exclusive,last_column_exclusive:prevLocationData.last_column_exclusive,range:isIndent&&null!=precedingComment?[prevLocationData.range[0]-precedingComment.indentSize,prevLocationData.range[1]]:prevLocationData.range},1)})}},{key:"normalizeLines",value:function normalizeLines(){var _this3=this,action,closeElseTag,condition,ifThens,indent,leading_if_then,leading_switch_when,outdent,starter;return starter=indent=outdent=null,leading_switch_when=null,leading_if_then=null,ifThens=[],condition=function(token,i){var ref,ref1,ref2,ref3;return";"!==token[1]&&(ref=token[0],0<=indexOf.call(SINGLE_CLOSERS,ref))&&!("TERMINATOR"===token[0]&&(ref1=this.tag(i+1),0<=indexOf.call(EXPRESSION_CLOSE,ref1)))&&!("ELSE"===token[0]&&("THEN"!==starter||leading_if_then||leading_switch_when))&&("CATCH"!==(ref2=token[0])&&"FINALLY"!==ref2||"->"!==starter&&"=>"!==starter)||(ref3=token[0],0<=indexOf.call(CALL_CLOSERS,ref3))&&(this.tokens[i-1].newLine||"OUTDENT"===this.tokens[i-1][0])},action=function(token,i){return"ELSE"===token[0]&&"THEN"===starter&&ifThens.pop(),this.tokens.splice(","===this.tag(i-1)?i-1:i,0,outdent)},closeElseTag=function(tokens,i){var lastThen,outdentElse,tlen;if(tlen=ifThens.length,!(0"===tag||"=>"===tag)&&this.findTagsBackwards(i,["IF","WHILE","FOR","UNTIL","SWITCH","WHEN","LEADING_WHEN","[","INDEX_START"])&&!this.findTagsBackwards(i,["THEN","..","..."]),"TERMINATOR"===tag){if("ELSE"===this.tag(i+1)&&"OUTDENT"!==this.tag(i-1))return tokens.splice.apply(tokens,[i,1].concat(_toConsumableArray(this.indentation()))),1;if(ref=this.tag(i+1),0<=indexOf.call(EXPRESSION_CLOSE,ref))return";"===token[1]&&"OUTDENT"===this.tag(i+1)&&(tokens[i+1].prevToken=token,moveComments(token,tokens[i+1])),tokens.splice(i,1),0}if("CATCH"===tag)for(j=k=1;2>=k;j=++k)if("OUTDENT"===(ref1=this.tag(i+j))||"TERMINATOR"===ref1||"FINALLY"===ref1)return tokens.splice.apply(tokens,[i+j,0].concat(_toConsumableArray(this.indentation()))),2+j;if(("->"===tag||"=>"===tag)&&(","===(ref2=this.tag(i+1))||"]"===ref2||"."===this.tag(i+1)&&token.newLine)){var _this$indentation=this.indentation(tokens[i]),_this$indentation2=_slicedToArray(_this$indentation,2);return indent=_this$indentation2[0],outdent=_this$indentation2[1],tokens.splice(i+1,0,indent,outdent),1}if(0<=indexOf.call(SINGLE_LINERS,tag)&&"INDENT"!==this.tag(i+1)&&("ELSE"!==tag||"IF"!==this.tag(i+1))&&!conditionTag){starter=tag;var _this$indentation3=this.indentation(tokens[i]),_this$indentation4=_slicedToArray(_this$indentation3,2);return indent=_this$indentation4[0],outdent=_this$indentation4[1],"THEN"===starter&&(indent.fromThen=!0),"THEN"===tag&&(leading_switch_when=this.findTagsBackwards(i,["LEADING_WHEN"])&&"IF"===this.tag(i+1),leading_if_then=this.findTagsBackwards(i,["IF"])&&"IF"===this.tag(i+1)),"THEN"===tag&&this.findTagsBackwards(i,["IF"])&&ifThens.push(i),"ELSE"===tag&&"OUTDENT"!==this.tag(i-1)&&(i=closeElseTag(tokens,i)),tokens.splice(i+1,0,indent),this.detectEnd(i+2,condition,action),"THEN"===tag&&tokens.splice(i,1),1}return 1})}},{key:"tagPostfixConditionals",value:function tagPostfixConditionals(){var action,condition,original;return original=null,condition=function(token,i){var _token3=_slicedToArray(token,1),prevTag,tag;tag=_token3[0];var _this$tokens=_slicedToArray(this.tokens[i-1],1);return prevTag=_this$tokens[0],"TERMINATOR"===tag||"INDENT"===tag&&0>indexOf.call(SINGLE_LINERS,prevTag)},action=function(token){if("INDENT"!==token[0]||token.generated&&!token.fromThen)return original[0]="POST_"+original[0]},this.scanTokens(function(token,i){return"IF"===token[0]?(original=token,this.detectEnd(i+1,condition,action),1):1})}},{key:"exposeTokenDataToGrammar",value:function exposeTokenDataToGrammar(){return this.scanTokens(function(token){var key,ref,ref1,val;if(token.generated||token.data&&0!==Object.keys(token.data).length){for(key in token[1]=new String(token[1]),ref1=null==(ref=token.data)?{}:ref,ref1)hasProp.call(ref1,key)&&(val=ref1[key],token[1][key]=val);token.generated&&(token[1].generated=!0)}return 1})}},{key:"indentation",value:function indentation(origin){var indent,outdent;return indent=["INDENT",2],outdent=["OUTDENT",2],origin?(indent.generated=outdent.generated=!0,indent.origin=outdent.origin=origin):indent.explicit=outdent.explicit=!0,[indent,outdent]}},{key:"tag",value:function tag(i){var ref;return null==(ref=this.tokens[i])?void 0:ref[0]}}]),Rewriter}();return Rewriter.prototype.generate=generate,Rewriter}.call(this),BALANCED_PAIRS=[["(",")"],["[","]"],["{","}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["STRING_START","STRING_END"],["INTERPOLATION_START","INTERPOLATION_END"],["REGEX_START","REGEX_END"]],exports.INVERSES=INVERSES={},EXPRESSION_START=[],EXPRESSION_END=[],(k=0,len=BALANCED_PAIRS.length);k","=>","[","(","{","--","++"],IMPLICIT_UNSPACED_CALL=["+","-"],IMPLICIT_END=["POST_IF","FOR","WHILE","UNTIL","WHEN","BY","LOOP","TERMINATOR"],SINGLE_LINERS=["ELSE","->","=>","TRY","FINALLY","THEN"],SINGLE_CLOSERS=["TERMINATOR","CATCH","FINALLY","ELSE","OUTDENT","LEADING_WHEN"],LINEBREAKS=["TERMINATOR","INDENT","OUTDENT"],CALL_CLOSERS=[".","?.","::","?::"],CONTROL_IN_IMPLICIT=["IF","TRY","FINALLY","CATCH","CLASS","SWITCH"],DISCARDED=["(",")","[","]","{","}",":",".","..","...",",","=","++","--","?","AS","AWAIT","CALL_START","CALL_END","DEFAULT","DO","DO_IIFE","ELSE","EXTENDS","EXPORT","FORIN","FOROF","FORFROM","IMPORT","INDENT","INDEX_SOAK","INTERPOLATION_START","INTERPOLATION_END","LEADING_WHEN","OUTDENT","PARAM_END","REGEX_START","REGEX_END","RETURN","STRING_END","THROW","UNARY","YIELD"].concat(IMPLICIT_UNSPACED_CALL.concat(IMPLICIT_END.concat(CALL_CLOSERS.concat(CONTROL_IN_IMPLICIT)))),exports.UNFINISHED=UNFINISHED=["\\",".","?.","?::","UNARY","DO","DO_IIFE","MATH","UNARY_MATH","+","-","**","SHIFT","RELATION","COMPARE","&","^","|","&&","||","BIN?","EXTENDS"]}.call(this),{exports:exports}.exports}(),require["./lexer"]=function(){var exports={};return function(){var indexOf=[].indexOf,slice=[].slice,_require2=require("./rewriter"),BOM,BOOL,CALLABLE,CODE,COFFEE_ALIASES,COFFEE_ALIAS_MAP,COFFEE_KEYWORDS,COMMENT,COMPARABLE_LEFT_SIDE,COMPARE,COMPOUND_ASSIGN,HERECOMMENT_ILLEGAL,HEREDOC_DOUBLE,HEREDOC_INDENT,HEREDOC_SINGLE,HEREGEX,HEREGEX_COMMENT,HERE_JSTOKEN,IDENTIFIER,INDENTABLE_CLOSERS,INDEXABLE,INSIDE_JSX,INVERSES,JSTOKEN,JSX_ATTRIBUTE,JSX_FRAGMENT_IDENTIFIER,JSX_IDENTIFIER,JSX_IDENTIFIER_PART,JSX_INTERPOLATION,JS_KEYWORDS,LINE_BREAK,LINE_CONTINUER,Lexer,MATH,MULTI_DENT,NOT_REGEX,NUMBER,OPERATOR,POSSIBLY_DIVISION,REGEX,REGEX_FLAGS,REGEX_ILLEGAL,REGEX_INVALID_ESCAPE,RELATION,RESERVED,Rewriter,SHIFT,STRICT_PROSCRIBED,STRING_DOUBLE,STRING_INVALID_ESCAPE,STRING_SINGLE,STRING_START,TRAILING_SPACES,UNARY,UNARY_MATH,UNFINISHED,VALID_FLAGS,WHITESPACE,addTokenData,attachCommentsToNode,compact,count,flatten,invertLiterate,isForFrom,isUnassignable,key,locationDataToString,merge,parseNumber,repeat,replaceUnicodeCodePointEscapes,starts,throwSyntaxError;Rewriter=_require2.Rewriter,INVERSES=_require2.INVERSES,UNFINISHED=_require2.UNFINISHED;var _require3=require("./helpers");count=_require3.count,starts=_require3.starts,compact=_require3.compact,repeat=_require3.repeat,invertLiterate=_require3.invertLiterate,merge=_require3.merge,attachCommentsToNode=_require3.attachCommentsToNode,locationDataToString=_require3.locationDataToString,throwSyntaxError=_require3.throwSyntaxError,replaceUnicodeCodePointEscapes=_require3.replaceUnicodeCodePointEscapes,flatten=_require3.flatten,parseNumber=_require3.parseNumber,exports.Lexer=Lexer=function(){"use strict";function Lexer(){_classCallCheck(this,Lexer),this.error=this.error.bind(this)}return _createClass(Lexer,[{key:"tokenize",value:function tokenize(code){var opts=1this.indent,outdented:!noIndent&&indentSizethis.indent){if(noNewlines)return backslash||(this.continuationLineAdditionalIndent=size-this.indent),this.continuationLineAdditionalIndent&&(prev.continuationLineIndent=this.indent+this.continuationLineAdditionalIndent),this.suppressNewlines(),indent.length;if(!this.tokens.length)return this.baseIndent=this.indent=size,this.indentLiteral=newIndentLiteral,indent.length;diff=size-this.indent+this.outdebt,this.token("INDENT",diff,{offset:offset+indent.length-size,length:size}),this.indents.push(diff),this.ends.push({tag:"OUTDENT"}),this.outdebt=this.continuationLineAdditionalIndent=0,this.indent=size,this.indentLiteral=newIndentLiteral}else sizeindexOf.call(COMPARABLE_LEFT_SIDE,ref)))))return 0;var _match8=match,_match9=_slicedToArray(_match8,2);if(input=_match9[0],id=_match9[1],fullId=id,0<=indexOf.call(id,".")){var _id$split=id.split("."),_id$split2=_toArray(_id$split);id=_id$split2[0],properties=_id$split2.slice(1)}else properties=[];for(tagToken=this.token("JSX_TAG",id,{length:id.length+1,data:{openingBracketToken:this.makeToken("<","<"),tagNameToken:this.makeToken("IDENTIFIER",id,{offset:1})}}),offset=id.length+1,(j=0,len=properties.length);j",origin:tagToken,name:id,properties:properties}),this.jsxDepth++,fullId.length+1}if(jsxTag=this.atJSXTag()){if("/>"===this.chunk.slice(0,2))return this.pair("/>"),this.token("]","]",{length:2,generated:!0}),this.token("CALL_END",")",{length:2,generated:!0,data:{selfClosingSlashToken:this.makeToken("/","/"),closingBracketToken:this.makeToken(">",">",{offset:1})}}),this.jsxDepth--,2;if("{"===firstChar)return":"===prevChar?(token=this.token("(","{"),this.jsxObjAttribute[this.jsxDepth]=!1,addTokenData(this.tokens[this.tokens.length-3],{jsx:!0})):(token=this.token("{","{"),this.jsxObjAttribute[this.jsxDepth]=!0),this.ends.push({tag:"}",origin:token}),1;if(">"===firstChar){var _this$pair=this.pair("/>");openingTagToken=_this$pair.origin,this.token("]","]",{generated:!0,data:{closingBracketToken:this.makeToken(">",">")}}),this.token(",","JSX_COMMA",{generated:!0});var _this$matchWithInterp2=this.matchWithInterpolations(INSIDE_JSX,">",""})}),match=JSX_IDENTIFIER.exec(this.chunk.slice(end))||JSX_FRAGMENT_IDENTIFIER.exec(this.chunk.slice(end)),match&&match[1]==="".concat(jsxTag.name).concat(function(){var k,len1,ref1,results;for(ref1=jsxTag.properties,results=[],(k=0,len1=ref1.length);k"!==this.chunk[afterTag]&&this.error("missing closing > after tag name",{offset:afterTag,length:1}),endToken=this.token("CALL_END",")",{offset:end-2,length:fullTagName.length+3,generated:!0,data:{closingTagOpeningBracketToken:this.makeToken("<","<",{offset:end-2}),closingTagSlashToken:this.makeToken("/","/",{offset:end-1}),closingTagNameToken:this.makeToken("IDENTIFIER",fullTagName,{offset:end}),closingTagClosingBracketToken:this.makeToken(">",">",{offset:end+fullTagName.length})}}),addTokenData(openingTagToken,endToken.data),this.jsxDepth--,afterTag+1}return 0}return this.atJSXTag(1)?"}"===firstChar?(this.pair(firstChar),this.jsxObjAttribute[this.jsxDepth]?(this.token("}","}"),this.jsxObjAttribute[this.jsxDepth]=!1):this.token(")","}"),this.token(",",",",{generated:!0}),1):0:0}},{key:"atJSXTag",value:function atJSXTag(){var depth=0"===(null==last?void 0:last.tag)&&last}},{key:"literalToken",value:function literalToken(){var match,message,origin,prev,ref,ref1,ref2,ref3,ref4,ref5,skipToken,tag,token,value;if(match=OPERATOR.exec(this.chunk)){var _match12=match,_match13=_slicedToArray(_match12,1);value=_match13[0],CODE.test(value)&&this.tagParameters()}else value=this.chunk.charAt(0);if(tag=value,prev=this.prev(),prev&&0<=indexOf.call(["="].concat(_toConsumableArray(COMPOUND_ASSIGN)),value)&&(skipToken=!1,"="!==value||"||"!==(ref=prev[1])&&"&&"!==ref||prev.spaced||(prev[0]="COMPOUND_ASSIGN",prev[1]+="=",(null==(ref1=prev.data)?void 0:ref1.original)&&(prev.data.original+="="),prev[2].range=[prev[2].range[0],prev[2].range[1]+1],prev[2].last_column+=1,prev[2].last_column_exclusive+=1,prev=this.tokens[this.tokens.length-2],skipToken=!0),prev&&"PROPERTY"!==prev[0]&&(origin=null==(ref2=prev.origin)?prev:ref2,message=isUnassignable(prev[1],origin[1]),message&&this.error(message,origin[2])),skipToken))return value.length;if("("===value&&"IMPORT"===(null==prev?void 0:prev[0])&&(prev[0]="DYNAMIC_IMPORT"),"{"===value&&this.seenImport?this.importSpecifierList=!0:this.importSpecifierList&&"}"===value?this.importSpecifierList=!1:"{"===value&&"EXPORT"===(null==prev?void 0:prev[0])?this.exportSpecifierList=!0:this.exportSpecifierList&&"}"===value&&(this.exportSpecifierList=!1),";"===value)(ref3=null==prev?void 0:prev[0],0<=indexOf.call(["="].concat(_toConsumableArray(UNFINISHED)),ref3))&&this.error("unexpected ;"),this.seenFor=this.seenImport=this.seenExport=!1,tag="TERMINATOR";else if("*"===value&&"EXPORT"===(null==prev?void 0:prev[0]))tag="EXPORT_ALL";else if(0<=indexOf.call(MATH,value))tag="MATH";else if(0<=indexOf.call(COMPARE,value))tag="COMPARE";else if(0<=indexOf.call(COMPOUND_ASSIGN,value))tag="COMPOUND_ASSIGN";else if(0<=indexOf.call(UNARY,value))tag="UNARY";else if(0<=indexOf.call(UNARY_MATH,value))tag="UNARY_MATH";else if(0<=indexOf.call(SHIFT,value))tag="SHIFT";else if("?"===value&&(null==prev?void 0:prev.spaced))tag="BIN?";else if(prev)if("("===value&&!prev.spaced&&(ref4=prev[0],0<=indexOf.call(CALLABLE,ref4)))"?"===prev[0]&&(prev[0]="FUNC_EXIST"),tag="CALL_START";else if("["===value&&((ref5=prev[0],0<=indexOf.call(INDEXABLE,ref5))&&!prev.spaced||"::"===prev[0]))switch(tag="INDEX_START",prev[0]){case"?":prev[0]="INDEX_SOAK";}return token=this.makeToken(tag,value),"("===value||"{"===value||"["===value?this.ends.push({tag:INVERSES[value],origin:token}):")"===value||"}"===value||"]"===value?this.pair(value):void 0,(this.tokens.push(this.makeToken(tag,value)),value.length)}},{key:"tagParameters",value:function tagParameters(){var i,paramEndToken,stack,tok,tokens;if(")"!==this.tag())return this.tagDoIife();for(stack=[],tokens=this.tokens,i=tokens.length,paramEndToken=tokens[--i],paramEndToken[0]="PARAM_END";tok=tokens[--i];)switch(tok[0]){case")":stack.push(tok);break;case"(":case"CALL_START":if(stack.length)stack.pop();else return"("===tok[0]?(tok[0]="PARAM_START",this.tagDoIife(i-1)):(paramEndToken[0]="CALL_END",this);}return this}},{key:"tagDoIife",value:function tagDoIife(tokenIndex){var tok;return(tok=this.tokens[null==tokenIndex?this.tokens.length-1:tokenIndex],"DO"!==(null==tok?void 0:tok[0]))?this:(tok[0]="DO_IIFE",this)}},{key:"closeIndentation",value:function closeIndentation(){return this.outdentToken({moveOut:this.indent,indentSize:0})}},{key:"matchWithInterpolations",value:function matchWithInterpolations(regex,delimiter){var closingDelimiter=2=this.chunk.length?this.chunk:this.chunk.slice(0,+(offset-1)+1||9e9),lineCount=count(string,"\n"),column=this.chunkColumn,0previousLinesCompensation&&(previousLinesCompensation=0),columnCompensation=this.getLocationDataCompensation(this.chunkOffset+offset+previousLinesCompensation-column,this.chunkOffset+offset+previousLinesCompensation)}else column+=string.length,columnCompensation=compensation;return[this.chunkLine+lineCount,column+columnCompensation,this.chunkOffset+offset+compensation]}},{key:"makeLocationData",value:function makeLocationData(_ref16){var offsetInChunk=_ref16.offsetInChunk,length=_ref16.length,endOffset,lastCharacter,locationData;locationData={range:[]};var _this$getLineAndColum5=this.getLineAndColumnFromChunk(offsetInChunk),_this$getLineAndColum6=_slicedToArray(_this$getLineAndColum5,3);locationData.first_line=_this$getLineAndColum6[0],locationData.first_column=_this$getLineAndColum6[1],locationData.range[0]=_this$getLineAndColum6[2],lastCharacter=0indexOf.call([].concat(_toConsumableArray(JS_KEYWORDS),_toConsumableArray(COFFEE_KEYWORDS)),name):return"keyword '".concat(displayName,"' can't be assigned");case 0>indexOf.call(STRICT_PROSCRIBED,name):return"'".concat(displayName,"' can't be assigned");case 0>indexOf.call(RESERVED,name):return"reserved word '".concat(displayName,"' can't be assigned");default:return!1;}},exports.isUnassignable=isUnassignable,isForFrom=function(prev){var ref;return"IDENTIFIER"===prev[0]||"FOR"!==prev[0]&&"{"!==(ref=prev[1])&&"["!==ref&&","!==ref&&":"!==ref},addTokenData=function(token,data){return Object.assign(null==token.data?token.data={}:token.data,data)},JS_KEYWORDS=["true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","yield","await","if","else","switch","for","while","do","try","catch","finally","class","extends","super","import","export","default"],COFFEE_KEYWORDS=["undefined","Infinity","NaN","then","unless","until","loop","of","by","when"],COFFEE_ALIAS_MAP={and:"&&",or:"||",is:"==",isnt:"!=",not:"!",yes:"true",no:"false",on:"true",off:"false"},COFFEE_ALIASES=function(){var results;for(key in results=[],COFFEE_ALIAS_MAP)results.push(key);return results}(),COFFEE_KEYWORDS=COFFEE_KEYWORDS.concat(COFFEE_ALIASES),RESERVED=["case","function","var","void","with","const","let","enum","native","implements","interface","package","private","protected","public","static"],STRICT_PROSCRIBED=["arguments","eval"],exports.JS_FORBIDDEN=JS_KEYWORDS.concat(RESERVED).concat(STRICT_PROSCRIBED),BOM=65279,IDENTIFIER=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/,JSX_IDENTIFIER_PART=/(?:(?!\s)[\-$\w\x7f-\uffff])+/.source,JSX_IDENTIFIER=RegExp("^(?![\\d<])(".concat(JSX_IDENTIFIER_PART,"(?:\\s*:\\s*").concat(JSX_IDENTIFIER_PART,"|(?:\\s*\\.\\s*").concat(JSX_IDENTIFIER_PART,")+)?)")),JSX_FRAGMENT_IDENTIFIER=/^()>/,JSX_ATTRIBUTE=RegExp("^(?!\\d)(".concat(JSX_IDENTIFIER_PART,"(?:\\s*:\\s*").concat(JSX_IDENTIFIER_PART,")?)([^\\S]*=(?!=))?")),NUMBER=/^0b[01](?:_?[01])*n?|^0o[0-7](?:_?[0-7])*n?|^0x[\da-f](?:_?[\da-f])*n?|^\d+n|^(?:\d(?:_?\d)*)?\.?(?:\d(?:_?\d)*)+(?:e[+-]?(?:\d(?:_?\d)*)+)?/i,OPERATOR=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/,WHITESPACE=/^[^\n\S]+/,COMMENT=/^(\s*)###([^#][\s\S]*?)(?:###([^\n\S]*)|###$)|^((?:\s*#(?!##[^#]).*)+)/,CODE=/^[-=]>/,MULTI_DENT=/^(?:\n[^\n\S]*)+/,JSTOKEN=/^`(?!``)((?:[^`\\]|\\[\s\S])*)`/,HERE_JSTOKEN=/^```((?:[^`\\]|\\[\s\S]|`(?!``))*)```/,STRING_START=/^(?:'''|"""|'|")/,STRING_SINGLE=/^(?:[^\\']|\\[\s\S])*/,STRING_DOUBLE=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/,HEREDOC_SINGLE=/^(?:[^\\']|\\[\s\S]|'(?!''))*/,HEREDOC_DOUBLE=/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/,INSIDE_JSX=/^(?:[^\{<])*/,JSX_INTERPOLATION=/^(?:\{|<(?!\/))/,HEREDOC_INDENT=/\n+([^\n\S]*)(?=\S)/g,REGEX=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/,REGEX_FLAGS=/^\w*/,VALID_FLAGS=/^(?!.*(.).*\1)[gimsuy]*$/,HEREGEX=/^(?:[^\\\/#\s]|\\[\s\S]|\/(?!\/\/)|\#(?!\{)|\s+(?:#(?!\{).*)?)*/,HEREGEX_COMMENT=/(\s+)(#(?!{).*)/gm,REGEX_ILLEGAL=/^(\/|\/{3}\s*)(\*)/,POSSIBLY_DIVISION=/^\/=?\s/,HERECOMMENT_ILLEGAL=/\*\//,LINE_CONTINUER=/^\s*(?:,|\??\.(?![.\d])|\??::)/,STRING_INVALID_ESCAPE=/((?:^|[^\\])(?:\\\\)*)\\(?:(0\d|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/,REGEX_INVALID_ESCAPE=/((?:^|[^\\])(?:\\\\)*)\\(?:(0\d)|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/,TRAILING_SPACES=/\s+$/,COMPOUND_ASSIGN=["-=","+=","/=","*=","%=","||=","&&=","?=","<<=",">>=",">>>=","&=","^=","|=","**=","//=","%%="],UNARY=["NEW","TYPEOF","DELETE"],UNARY_MATH=["!","~"],SHIFT=["<<",">>",">>>"],COMPARE=["==","!=","<",">","<=",">="],MATH=["*","/","%","//","%%"],RELATION=["IN","OF","INSTANCEOF"],BOOL=["TRUE","FALSE"],CALLABLE=["IDENTIFIER","PROPERTY",")","]","?","@","THIS","SUPER","DYNAMIC_IMPORT"],INDEXABLE=CALLABLE.concat(["NUMBER","INFINITY","NAN","STRING","STRING_END","REGEX","REGEX_END","BOOL","NULL","UNDEFINED","}","::"]),COMPARABLE_LEFT_SIDE=["IDENTIFIER",")","]","NUMBER"],NOT_REGEX=INDEXABLE.concat(["++","--"]),LINE_BREAK=["INDENT","OUTDENT","TERMINATOR"],INDENTABLE_CLOSERS=[")","}","]"]}.call(this),{exports:exports}.exports}(),require["./parser"]=function(){var exports={},module={exports:exports},parser=function(){function Parser(){this.yy={}}var o=function(k,v,_o,l){for(_o=_o||{},l=k.length;l--;_o[k[l]]=v);return _o},$V0=[1,24],$V1=[1,59],$V2=[1,97],$V3=[1,98],$V4=[1,93],$V5=[1,99],$V6=[1,100],$V7=[1,95],$V8=[1,96],$V9=[1,68],$Va=[1,70],$Vb=[1,71],$Vc=[1,72],$Vd=[1,73],$Ve=[1,74],$Vf=[1,76],$Vg=[1,80],$Vh=[1,77],$Vi=[1,78],$Vj=[1,62],$Vk=[1,45],$Vl=[1,38],$Vm=[1,82],$Vn=[1,83],$Vo=[1,81],$Vp=[1,92],$Vq=[1,57],$Vr=[1,63],$Vs=[1,64],$Vt=[1,79],$Vu=[1,50],$Vv=[1,58],$Vw=[1,75],$Vx=[1,87],$Vy=[1,88],$Vz=[1,89],$VA=[1,90],$VB=[1,56],$VC=[1,86],$VD=[1,40],$VE=[1,41],$VF=[1,61],$VG=[1,42],$VH=[1,43],$VI=[1,44],$VJ=[1,46],$VK=[1,47],$VL=[1,101],$VM=[1,6,35,52,153],$VN=[1,6,33,35,52,74,76,96,135,142,153,156,164],$VO=[1,119],$VP=[1,120],$VQ=[1,121],$VR=[1,116],$VS=[1,104],$VT=[1,103],$VU=[1,102],$VV=[1,105],$VW=[1,106],$VX=[1,107],$VY=[1,108],$VZ=[1,109],$V_=[1,110],$V$=[1,111],$V01=[1,112],$V11=[1,113],$V21=[1,114],$V31=[1,115],$V41=[1,123],$V51=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$V61=[2,211],$V71=[1,129],$V81=[1,134],$V91=[1,130],$Va1=[1,131],$Vb1=[1,132],$Vc1=[1,135],$Vd1=[1,128],$Ve1=[1,6,33,35,52,74,76,96,135,142,153,155,156,157,163,164,181],$Vf1=[1,6,33,35,46,47,52,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vg1=[2,129],$Vh1=[2,133],$Vi1=[6,33,91,96],$Vj1=[2,106],$Vk1=[1,147],$Vl1=[1,146],$Vm1=[1,141],$Vn1=[1,150],$Vo1=[1,155],$Vp1=[1,153],$Vq1=[1,159],$Vr1=[1,165],$Vs1=[1,161],$Vt1=[1,162],$Vu1=[1,164],$Vv1=[1,169],$Vw1=[1,6,33,35,46,47,52,66,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vx1=[2,126],$Vy1=[1,6,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vz1=[2,31],$VA1=[1,194],$VB1=[1,195],$VC1=[2,93],$VD1=[1,201],$VE1=[1,207],$VF1=[1,222],$VG1=[1,217],$VH1=[1,226],$VI1=[1,223],$VJ1=[1,228],$VK1=[1,229],$VL1=[1,231],$VM1=[2,216],$VN1=[1,233],$VO1=[14,32,33,39,40,44,46,47,54,55,59,60,61,62,63,64,73,75,82,85,87,88,89,93,94,108,116,119,121,129,137,147,151,152,155,157,160,163,174,180,183,184,185,186,187,188,189,190],$VP1=[1,6,33,35,46,47,52,66,74,76,91,96,105,106,107,109,110,111,114,118,120,133,134,135,142,153,155,156,157,163,164,181,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203],$VQ1=[1,245],$VR1=[1,246],$VS1=[2,155],$VT1=[1,262],$VU1=[1,263],$VV1=[1,265],$VW1=[1,275],$VX1=[1,276],$VY1=[1,6,33,35,46,47,52,70,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$VZ1=[1,6,33,35,36,46,47,52,66,70,74,76,91,96,105,106,107,109,110,111,114,118,120,126,133,134,135,142,153,155,156,157,163,164,171,172,173,181,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203],$V_1=[1,6,33,35,46,47,49,51,52,57,70,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$V$1=[1,281],$V02=[46,47,134],$V12=[1,320],$V22=[1,319],$V32=[6,33],$V42=[2,104],$V52=[1,326],$V62=[6,33,35,91,96],$V72=[6,33,35,66,76,91,96],$V82=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,187,188,192,193,194,195,196,197,198,199,200,201,202],$V92=[2,366],$Va2=[2,367],$Vb2=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,187,188,192,194,195,196,197,198,199,200,201,202],$Vc2=[46,47,105,106,109,110,111,114,133,134],$Vd2=[1,355],$Ve2=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181],$Vf2=[2,91],$Vg2=[1,372],$Vh2=[1,374],$Vi2=[1,379],$Vj2=[1,381],$Vk2=[6,33,74,96],$Vl2=[2,236],$Vm2=[2,237],$Vn2=[1,6,33,35,46,47,52,66,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,171,172,173,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vo2=[1,395],$Vp2=[14,32,33,35,39,40,44,46,47,54,55,59,60,61,62,63,64,73,74,75,76,82,85,87,88,89,93,94,96,108,116,119,121,129,137,147,151,152,155,157,160,163,174,180,183,184,185,186,187,188,189,190],$Vq2=[1,397],$Vr2=[6,33,35,74,96],$Vs2=[6,14,32,33,35,39,40,44,46,47,54,55,59,60,61,62,63,64,73,74,75,76,82,85,87,88,89,93,94,96,108,116,119,121,129,137,147,151,152,155,157,160,163,174,180,183,184,185,186,187,188,189,190],$Vt2=[6,33,35,74,96,135],$Vu2=[1,6,33,35,46,47,52,57,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vv2=[1,408],$Vw2=[1,6,33,35,46,47,52,66,70,74,76,91,96,105,106,107,109,110,111,114,118,120,133,134,135,142,153,155,156,157,163,164,171,172,173,181,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203],$Vx2=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,164,181],$Vy2=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,156,164,181],$Vz2=[2,289],$VA2=[171,172,173],$VB2=[96,171,172,173],$VC2=[6,33,118],$VD2=[1,427],$VE2=[6,33,35,96,118],$VF2=[6,33,35,70,96,118],$VG2=[6,33,35,66,70,76,96,105,106,109,110,111,114,118,133,134],$VH2=[6,33,35,76,96,105,106,109,110,111,114,118,133,134],$VI2=[46,47,49,51],$VJ2=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,187,188,194,195,196,197,198,199,200,201,202],$VK2=[2,356],$VL2=[2,355],$VM2=[35,107],$VN2=[14,32,35,39,40,44,46,47,54,55,59,60,61,62,63,64,73,75,82,85,87,88,89,93,94,107,108,116,119,121,129,137,147,151,152,155,157,160,163,174,180,183,184,185,186,187,188,189,190],$VO2=[2,222],$VP2=[6,33,35],$VQ2=[2,105],$VR2=[1,466],$VS2=[1,467],$VT2=[1,6,33,35,46,47,52,74,76,91,96,105,106,107,109,110,111,114,118,133,134,135,142,149,150,153,155,156,157,163,164,176,178,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$VU2=[1,335],$VV2=[35,176,178],$VW2=[1,6,35,52,74,76,91,96,107,118,135,142,153,156,164,181],$VX2=[1,504],$VY2=[1,511],$VZ2=[1,6,33,35,52,74,76,96,135,142,153,156,164,181],$V_2=[2,120],$V$2=[1,524],$V03=[33,35,74],$V13=[1,532],$V23=[6,33,35,96,135],$V33=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,176,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$V43=[1,6,33,35,52,74,76,96,135,142,153,156,164,176],$V53=[2,303],$V63=[2,304],$V73=[2,319],$V83=[1,552],$V93=[1,553],$Va3=[6,33,35,118],$Vb3=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,157,163,164,181],$Vc3=[6,33,35,96],$Vd3=[1,6,33,35,52,74,76,91,96,107,118,135,142,149,153,155,156,157,163,164,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Ve3=[33,96],$Vf3=[1,604],$Vg3=[1,605],$Vh3=[1,612],$Vi3=[1,613],$Vj3=[1,630],$Vk3=[1,631],$Vl3=[2,274],$Vm3=[2,277],$Vn3=[2,290],$Vo3=[2,305],$Vp3=[2,309],$Vq3=[2,306],$Vr3=[2,310],$Vs3=[2,307],$Vt3=[2,308],$Vu3=[2,320],$Vv3=[2,321],$Vw3=[1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,181],$Vx3=[2,311],$Vy3=[2,313],$Vz3=[2,315],$VA3=[2,317],$VB3=[2,312],$VC3=[2,314],$VD3=[2,316],$VE3=[2,318],parser={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,ExpressionLine:8,Statement:9,FuncDirective:10,YieldReturn:11,AwaitReturn:12,Return:13,STATEMENT:14,Import:15,Export:16,Value:17,Code:18,Operation:19,Assign:20,If:21,Try:22,While:23,For:24,Switch:25,Class:26,Throw:27,Yield:28,CodeLine:29,IfLine:30,OperationLine:31,YIELD:32,INDENT:33,Object:34,OUTDENT:35,FROM:36,Block:37,Identifier:38,IDENTIFIER:39,JSX_TAG:40,Property:41,PROPERTY:42,AlphaNumeric:43,NUMBER:44,String:45,STRING:46,STRING_START:47,Interpolations:48,STRING_END:49,InterpolationChunk:50,INTERPOLATION_START:51,INTERPOLATION_END:52,Regex:53,REGEX:54,REGEX_START:55,Invocation:56,REGEX_END:57,Literal:58,JS:59,UNDEFINED:60,NULL:61,BOOL:62,INFINITY:63,NAN:64,Assignable:65,"=":66,AssignObj:67,ObjAssignable:68,ObjRestValue:69,":":70,SimpleObjAssignable:71,ThisProperty:72,"[":73,"]":74,"@":75,"...":76,ObjSpreadExpr:77,ObjSpreadIdentifier:78,Parenthetical:79,Super:80,This:81,SUPER:82,OptFuncExist:83,Arguments:84,DYNAMIC_IMPORT:85,Accessor:86,RETURN:87,AWAIT:88,PARAM_START:89,ParamList:90,PARAM_END:91,FuncGlyph:92,"->":93,"=>":94,OptComma:95,",":96,Param:97,ParamVar:98,Array:99,Splat:100,SimpleAssignable:101,Range:102,DoIife:103,MetaProperty:104,".":105,INDEX_START:106,INDEX_END:107,NEW_TARGET:108,"?.":109,"::":110,"?::":111,Index:112,IndexValue:113,INDEX_SOAK:114,Slice:115,"{":116,AssignList:117,"}":118,CLASS:119,EXTENDS:120,IMPORT:121,ImportDefaultSpecifier:122,ImportNamespaceSpecifier:123,ImportSpecifierList:124,ImportSpecifier:125,AS:126,DEFAULT:127,IMPORT_ALL:128,EXPORT:129,ExportSpecifierList:130,EXPORT_ALL:131,ExportSpecifier:132,FUNC_EXIST:133,CALL_START:134,CALL_END:135,ArgList:136,THIS:137,Elisions:138,ArgElisionList:139,OptElisions:140,RangeDots:141,"..":142,Arg:143,ArgElision:144,Elision:145,SimpleArgs:146,TRY:147,Catch:148,FINALLY:149,CATCH:150,THROW:151,"(":152,")":153,WhileLineSource:154,WHILE:155,WHEN:156,UNTIL:157,WhileSource:158,Loop:159,LOOP:160,ForBody:161,ForLineBody:162,FOR:163,BY:164,ForStart:165,ForSource:166,ForLineSource:167,ForVariables:168,OWN:169,ForValue:170,FORIN:171,FOROF:172,FORFROM:173,SWITCH:174,Whens:175,ELSE:176,When:177,LEADING_WHEN:178,IfBlock:179,IF:180,POST_IF:181,IfBlockLine:182,UNARY:183,DO:184,DO_IIFE:185,UNARY_MATH:186,"-":187,"+":188,"--":189,"++":190,"?":191,MATH:192,"**":193,SHIFT:194,COMPARE:195,"&":196,"^":197,"|":198,"&&":199,"||":200,"BIN?":201,RELATION:202,COMPOUND_ASSIGN:203,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",14:"STATEMENT",32:"YIELD",33:"INDENT",35:"OUTDENT",36:"FROM",39:"IDENTIFIER",40:"JSX_TAG",42:"PROPERTY",44:"NUMBER",46:"STRING",47:"STRING_START",49:"STRING_END",51:"INTERPOLATION_START",52:"INTERPOLATION_END",54:"REGEX",55:"REGEX_START",57:"REGEX_END",59:"JS",60:"UNDEFINED",61:"NULL",62:"BOOL",63:"INFINITY",64:"NAN",66:"=",70:":",73:"[",74:"]",75:"@",76:"...",82:"SUPER",85:"DYNAMIC_IMPORT",87:"RETURN",88:"AWAIT",89:"PARAM_START",91:"PARAM_END",93:"->",94:"=>",96:",",105:".",106:"INDEX_START",107:"INDEX_END",108:"NEW_TARGET",109:"?.",110:"::",111:"?::",114:"INDEX_SOAK",116:"{",118:"}",119:"CLASS",120:"EXTENDS",121:"IMPORT",126:"AS",127:"DEFAULT",128:"IMPORT_ALL",129:"EXPORT",131:"EXPORT_ALL",133:"FUNC_EXIST",134:"CALL_START",135:"CALL_END",137:"THIS",142:"..",147:"TRY",149:"FINALLY",150:"CATCH",151:"THROW",152:"(",153:")",155:"WHILE",156:"WHEN",157:"UNTIL",160:"LOOP",163:"FOR",164:"BY",169:"OWN",171:"FORIN",172:"FOROF",173:"FORFROM",174:"SWITCH",176:"ELSE",178:"LEADING_WHEN",180:"IF",181:"POST_IF",183:"UNARY",184:"DO",185:"DO_IIFE",186:"UNARY_MATH",187:"-",188:"+",189:"--",190:"++",191:"?",192:"MATH",193:"**",194:"SHIFT",195:"COMPARE",196:"&",197:"^",198:"|",199:"&&",200:"||",201:"BIN?",202:"RELATION",203:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[5,1],[5,1],[10,1],[10,1],[9,1],[9,1],[9,1],[9,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[8,1],[8,1],[8,1],[28,1],[28,2],[28,4],[28,3],[37,2],[37,3],[38,1],[38,1],[41,1],[43,1],[43,1],[45,1],[45,3],[48,1],[48,2],[50,3],[50,5],[50,2],[50,1],[53,1],[53,3],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[20,3],[20,4],[20,5],[67,1],[67,1],[67,3],[67,5],[67,3],[67,5],[71,1],[71,1],[71,1],[68,1],[68,3],[68,4],[68,1],[69,2],[69,2],[69,2],[69,2],[77,1],[77,1],[77,1],[77,1],[77,1],[77,3],[77,2],[77,3],[77,3],[78,2],[78,2],[13,2],[13,4],[13,1],[11,3],[11,2],[12,3],[12,2],[18,5],[18,2],[29,5],[29,2],[92,1],[92,1],[95,0],[95,1],[90,0],[90,1],[90,3],[90,4],[90,6],[97,1],[97,2],[97,2],[97,3],[97,1],[98,1],[98,1],[98,1],[98,1],[100,2],[100,2],[101,1],[101,2],[101,2],[101,1],[65,1],[65,1],[65,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[80,3],[80,4],[80,6],[104,3],[86,2],[86,2],[86,2],[86,2],[86,1],[86,1],[86,1],[112,3],[112,5],[112,2],[113,1],[113,1],[34,4],[117,0],[117,1],[117,3],[117,4],[117,6],[26,1],[26,2],[26,3],[26,4],[26,2],[26,3],[26,4],[26,5],[15,2],[15,4],[15,4],[15,5],[15,7],[15,6],[15,9],[124,1],[124,3],[124,4],[124,4],[124,6],[125,1],[125,3],[125,1],[125,3],[122,1],[123,3],[16,3],[16,5],[16,2],[16,4],[16,5],[16,6],[16,3],[16,5],[16,4],[16,5],[16,7],[130,1],[130,3],[130,4],[130,4],[130,6],[132,1],[132,3],[132,3],[132,1],[132,3],[56,3],[56,3],[56,3],[56,2],[83,0],[83,1],[84,2],[84,4],[81,1],[81,1],[72,2],[99,2],[99,3],[99,4],[141,1],[141,1],[102,5],[102,5],[115,3],[115,2],[115,3],[115,2],[115,2],[115,1],[136,1],[136,3],[136,4],[136,4],[136,6],[143,1],[143,1],[143,1],[143,1],[139,1],[139,3],[139,4],[139,4],[139,6],[144,1],[144,2],[140,1],[140,2],[138,1],[138,2],[145,1],[145,2],[146,1],[146,1],[146,3],[146,3],[22,2],[22,3],[22,4],[22,5],[148,3],[148,3],[148,2],[27,2],[27,4],[79,3],[79,5],[154,2],[154,4],[154,2],[154,4],[158,2],[158,4],[158,4],[158,2],[158,4],[158,4],[23,2],[23,2],[23,2],[23,2],[23,1],[159,2],[159,2],[24,2],[24,2],[24,2],[24,2],[161,2],[161,4],[161,2],[162,4],[162,2],[165,2],[165,3],[165,3],[170,1],[170,1],[170,1],[170,1],[168,1],[168,3],[166,2],[166,2],[166,4],[166,4],[166,4],[166,4],[166,4],[166,4],[166,6],[166,6],[166,6],[166,6],[166,6],[166,6],[166,6],[166,6],[166,2],[166,4],[166,4],[167,2],[167,2],[167,4],[167,4],[167,4],[167,4],[167,4],[167,4],[167,6],[167,6],[167,6],[167,6],[167,6],[167,6],[167,6],[167,6],[167,2],[167,4],[167,4],[25,5],[25,5],[25,7],[25,7],[25,4],[25,6],[175,1],[175,2],[177,3],[177,4],[179,3],[179,5],[21,1],[21,3],[21,3],[21,3],[182,3],[182,5],[30,1],[30,3],[30,3],[30,3],[31,2],[31,2],[31,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,4],[19,2],[19,2],[19,2],[19,2],[19,2],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,5],[19,4],[103,2]],performAction:function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 1:return this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Root(new yy.Block()));break;case 2:return this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Root($$[$0]));break;case 3:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(yy.Block.wrap([$$[$0]]));break;case 4:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)($$[$0-2].push($$[$0]));break;case 5:this.$=$$[$0-1];break;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 41:case 52:case 54:case 64:case 69:case 70:case 71:case 72:case 75:case 80:case 81:case 82:case 83:case 84:case 104:case 105:case 116:case 117:case 118:case 119:case 125:case 126:case 129:case 135:case 148:case 236:case 237:case 238:case 240:case 253:case 254:case 297:case 298:case 353:case 359:this.$=$$[$0];break;case 13:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.StatementLiteral($$[$0]));break;case 31:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Op($$[$0],new yy.Value(new yy.Literal(""))));break;case 32:case 363:case 364:case 365:case 367:case 368:case 371:case 394:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op($$[$0-1],$$[$0]));break;case 33:case 372:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Op($$[$0-3],$$[$0-1]));break;case 34:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Op($$[$0-2].concat($$[$0-1]),$$[$0]));break;case 35:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Block);break;case 36:case 149:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)($$[$0-1]);break;case 37:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.IdentifierLiteral($$[$0]));break;case 38:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(function(){var ref,ref1,ref2,ref3;return new yy.JSXTag($$[$0].toString(),{tagNameLocationData:$$[$0].tagNameToken[2],closingTagOpeningBracketLocationData:null==(ref=$$[$0].closingTagOpeningBracketToken)?void 0:ref[2],closingTagSlashLocationData:null==(ref1=$$[$0].closingTagSlashToken)?void 0:ref1[2],closingTagNameLocationData:null==(ref2=$$[$0].closingTagNameToken)?void 0:ref2[2],closingTagClosingBracketLocationData:null==(ref3=$$[$0].closingTagClosingBracketToken)?void 0:ref3[2]})}());break;case 39:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.PropertyName($$[$0].toString()));break;case 40:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.NumberLiteral($$[$0].toString(),{parsedValue:$$[$0].parsedValue}));break;case 42:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.StringLiteral($$[$0].slice(1,-1),{quote:$$[$0].quote,initialChunk:$$[$0].initialChunk,finalChunk:$$[$0].finalChunk,indent:$$[$0].indent,double:$$[$0].double,heregex:$$[$0].heregex}));break;case 43:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.StringWithInterpolations(yy.Block.wrap($$[$0-1]),{quote:$$[$0-2].quote,startQuote:yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Literal($$[$0-2].toString()))}));break;case 44:case 107:case 156:case 175:case 197:case 231:case 245:case 249:case 301:case 347:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)([$$[$0]]);break;case 45:case 246:case 250:case 348:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)($$[$0-1].concat($$[$0]));break;case 46:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Interpolation($$[$0-1]));break;case 47:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Interpolation($$[$0-2]));break;case 48:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Interpolation);break;case 49:case 282:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)($$[$0]);break;case 50:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.RegexLiteral($$[$0].toString(),{delimiter:$$[$0].delimiter,heregexCommentTokens:$$[$0].heregexCommentTokens}));break;case 51:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.RegexWithInterpolations($$[$0-1],{heregexCommentTokens:$$[$0].heregexCommentTokens}));break;case 53:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.PassthroughLiteral($$[$0].toString(),{here:$$[$0].here,generated:$$[$0].generated}));break;case 55:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.UndefinedLiteral($$[$0]));break;case 56:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.NullLiteral($$[$0]));break;case 57:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.BooleanLiteral($$[$0].toString(),{originalValue:$$[$0].original}));break;case 58:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.InfinityLiteral($$[$0].toString(),{originalValue:$$[$0].original}));break;case 59:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.NaNLiteral($$[$0]));break;case 60:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-2],$$[$0]));break;case 61:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-3],$$[$0]));break;case 62:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-4],$$[$0-1]));break;case 63:case 122:case 127:case 128:case 130:case 131:case 132:case 133:case 134:case 136:case 137:case 299:case 300:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Value($$[$0]));break;case 65:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Assign(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Value($$[$0-2])),$$[$0],"object",{operatorToken:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))}));break;case 66:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Assign(yy.addDataToNode(yy,_$[$0-4],$$[$0-4],null,null,!0)(new yy.Value($$[$0-4])),$$[$0-1],"object",{operatorToken:yy.addDataToNode(yy,_$[$0-3],$$[$0-3],null,null,!0)(new yy.Literal($$[$0-3]))}));break;case 67:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Assign(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Value($$[$0-2])),$$[$0],null,{operatorToken:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))}));break;case 68:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Assign(yy.addDataToNode(yy,_$[$0-4],$$[$0-4],null,null,!0)(new yy.Value($$[$0-4])),$$[$0-1],null,{operatorToken:yy.addDataToNode(yy,_$[$0-3],$$[$0-3],null,null,!0)(new yy.Literal($$[$0-3]))}));break;case 73:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Value(new yy.ComputedPropertyName($$[$0-1])));break;case 74:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Value(yy.addDataToNode(yy,_$[$0-3],$$[$0-3],null,null,!0)(new yy.ThisLiteral($$[$0-3])),[yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.ComputedPropertyName($$[$0-1]))],"this"));break;case 76:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Splat(new yy.Value($$[$0-1])));break;case 77:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Splat(new yy.Value($$[$0]),{postfix:!1}));break;case 78:case 120:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Splat($$[$0-1]));break;case 79:case 121:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Splat($$[$0],{postfix:!1}));break;case 85:case 209:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.SuperCall(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Super),$$[$0],$$[$0-1].soak,$$[$0-2]));break;case 86:case 210:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.DynamicImportCall(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.DynamicImport),$$[$0]));break;case 87:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Call(new yy.Value($$[$0-2]),$$[$0],$$[$0-1].soak));break;case 88:case 208:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Call($$[$0-2],$$[$0],$$[$0-1].soak));break;case 89:case 90:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Value($$[$0-1]).add($$[$0]));break;case 91:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Return($$[$0]));break;case 92:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Return(new yy.Value($$[$0-1])));break;case 93:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Return);break;case 94:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.YieldReturn($$[$0],{returnKeyword:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))}));break;case 95:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.YieldReturn(null,{returnKeyword:yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Literal($$[$0]))}));break;case 96:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.AwaitReturn($$[$0],{returnKeyword:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))}));break;case 97:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.AwaitReturn(null,{returnKeyword:yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Literal($$[$0]))}));break;case 98:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Code($$[$0-3],$$[$0],$$[$0-1],yy.addDataToNode(yy,_$[$0-4],$$[$0-4],null,null,!0)(new yy.Literal($$[$0-4]))));break;case 99:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Code([],$$[$0],$$[$0-1]));break;case 100:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Code($$[$0-3],yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(yy.Block.wrap([$$[$0]])),$$[$0-1],yy.addDataToNode(yy,_$[$0-4],$$[$0-4],null,null,!0)(new yy.Literal($$[$0-4]))));break;case 101:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Code([],yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(yy.Block.wrap([$$[$0]])),$$[$0-1]));break;case 102:case 103:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.FuncGlyph($$[$0]));break;case 106:case 155:case 247:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)([]);break;case 108:case 157:case 176:case 198:case 232:case 241:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)($$[$0-2].concat($$[$0]));break;case 109:case 158:case 177:case 199:case 233:case 242:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)($$[$0-3].concat($$[$0]));break;case 110:case 159:case 179:case 201:case 235:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)($$[$0-5].concat($$[$0-2]));break;case 111:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Param($$[$0]));break;case 112:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Param($$[$0-1],null,!0));break;case 113:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Param($$[$0],null,{postfix:!1}));break;case 114:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Param($$[$0-2],$$[$0]));break;case 115:case 239:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Expansion);break;case 123:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)($$[$0-1].add($$[$0]));break;case 124:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Value($$[$0-1]).add($$[$0]));break;case 138:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Super(yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Access($$[$0])),yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Literal($$[$0-2]))));break;case 139:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Super(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Index($$[$0-1])),yy.addDataToNode(yy,_$[$0-3],$$[$0-3],null,null,!0)(new yy.Literal($$[$0-3]))));break;case 140:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)(new yy.Super(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Index($$[$0-2])),yy.addDataToNode(yy,_$[$0-5],$$[$0-5],null,null,!0)(new yy.Literal($$[$0-5]))));break;case 141:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.MetaProperty(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.IdentifierLiteral($$[$0-2])),yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Access($$[$0]))));break;case 142:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Access($$[$0]));break;case 143:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Access($$[$0],{soak:!0}));break;case 144:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)([yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Access(new yy.PropertyName("prototype"),{shorthand:!0})),yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Access($$[$0]))]);break;case 145:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)([yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Access(new yy.PropertyName("prototype"),{shorthand:!0,soak:!0})),yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Access($$[$0]))]);break;case 146:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Access(new yy.PropertyName("prototype"),{shorthand:!0}));break;case 147:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Access(new yy.PropertyName("prototype"),{shorthand:!0,soak:!0}));break;case 150:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)($$[$0-2]);break;case 151:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(yy.extend($$[$0],{soak:!0}));break;case 152:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Index($$[$0]));break;case 153:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Slice($$[$0]));break;case 154:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Obj($$[$0-2],$$[$0-3].generated));break;case 160:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Class);break;case 161:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Class(null,null,$$[$0]));break;case 162:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Class(null,$$[$0]));break;case 163:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Class(null,$$[$0-1],$$[$0]));break;case 164:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Class($$[$0]));break;case 165:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Class($$[$0-1],null,$$[$0]));break;case 166:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Class($$[$0-2],$$[$0]));break;case 167:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Class($$[$0-3],$$[$0-1],$$[$0]));break;case 168:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(null,$$[$0]));break;case 169:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause($$[$0-2],null),$$[$0]));break;case 170:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause(null,$$[$0-2]),$$[$0]));break;case 171:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause(null,new yy.ImportSpecifierList([])),$$[$0]));break;case 172:this.$=yy.addDataToNode(yy,_$[$0-6],$$[$0-6],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause(null,new yy.ImportSpecifierList($$[$0-4])),$$[$0]));break;case 173:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause($$[$0-4],$$[$0-2]),$$[$0]));break;case 174:this.$=yy.addDataToNode(yy,_$[$0-8],$$[$0-8],_$[$0],$$[$0],!0)(new yy.ImportDeclaration(new yy.ImportClause($$[$0-7],new yy.ImportSpecifierList($$[$0-4])),$$[$0]));break;case 178:case 200:case 234:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)($$[$0-2]);break;case 180:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.ImportSpecifier($$[$0]));break;case 181:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ImportSpecifier($$[$0-2],$$[$0]));break;case 182:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.ImportSpecifier(yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.DefaultLiteral($$[$0]))));break;case 183:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ImportSpecifier(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.DefaultLiteral($$[$0-2])),$$[$0]));break;case 184:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.ImportDefaultSpecifier($$[$0]));break;case 185:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ImportNamespaceSpecifier(new yy.Literal($$[$0-2]),$$[$0]));break;case 186:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(new yy.ExportSpecifierList([])));break;case 187:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(new yy.ExportSpecifierList($$[$0-2])));break;case 188:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration($$[$0]));break;case 189:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-2],$$[$0],null,{moduleDeclaration:"export"}))));break;case 190:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-3],$$[$0],null,{moduleDeclaration:"export"}))));break;case 191:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-4],$$[$0-1],null,{moduleDeclaration:"export"}))));break;case 192:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ExportDefaultDeclaration($$[$0]));break;case 193:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.ExportDefaultDeclaration(new yy.Value($$[$0-1])));break;case 194:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.ExportAllDeclaration(new yy.Literal($$[$0-2]),$$[$0]));break;case 195:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(new yy.ExportSpecifierList([]),$$[$0]));break;case 196:this.$=yy.addDataToNode(yy,_$[$0-6],$$[$0-6],_$[$0],$$[$0],!0)(new yy.ExportNamedDeclaration(new yy.ExportSpecifierList($$[$0-4]),$$[$0]));break;case 202:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.ExportSpecifier($$[$0]));break;case 203:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ExportSpecifier($$[$0-2],$$[$0]));break;case 204:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ExportSpecifier($$[$0-2],yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.DefaultLiteral($$[$0]))));break;case 205:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.ExportSpecifier(yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.DefaultLiteral($$[$0]))));break;case 206:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.ExportSpecifier(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.DefaultLiteral($$[$0-2])),$$[$0]));break;case 207:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.TaggedTemplateCall($$[$0-2],$$[$0],$$[$0-1].soak));break;case 211:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)({soak:!1});break;case 212:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)({soak:!0});break;case 213:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)([]);break;case 214:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(function(){return $$[$0-2].implicit=$$[$0-3].generated,$$[$0-2]}());break;case 215:case 216:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Value(new yy.ThisLiteral($$[$0])));break;case 217:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Value(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.ThisLiteral($$[$0-1])),[yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Access($$[$0]))],"this"));break;case 218:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Arr([]));break;case 219:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Arr($$[$0-1]));break;case 220:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Arr([].concat($$[$0-2],$$[$0-1])));break;case 221:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)({exclusive:!1});break;case 222:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)({exclusive:!0});break;case 223:case 224:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Range($$[$0-3],$$[$0-1],$$[$0-2].exclusive?"exclusive":"inclusive"));break;case 225:case 227:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Range($$[$0-2],$$[$0],$$[$0-1].exclusive?"exclusive":"inclusive"));break;case 226:case 228:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Range($$[$0-1],null,$$[$0].exclusive?"exclusive":"inclusive"));break;case 229:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Range(null,$$[$0],$$[$0-1].exclusive?"exclusive":"inclusive"));break;case 230:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Range(null,null,$$[$0].exclusive?"exclusive":"inclusive"));break;case 243:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)($$[$0-2].concat($$[$0-1]));break;case 244:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)($$[$0-5].concat($$[$0-4],$$[$0-2],$$[$0-1]));break;case 248:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)([].concat($$[$0]));break;case 251:this.$=yy.addDataToNode(yy,_$[$0],$$[$0],_$[$0],$$[$0],!0)(new yy.Elision);break;case 252:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)($$[$0-1]);break;case 255:case 256:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)([].concat($$[$0-2],$$[$0]));break;case 257:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Try($$[$0]));break;case 258:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Try($$[$0-1],$$[$0]));break;case 259:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Try($$[$0-2],null,$$[$0],yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))));break;case 260:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Try($$[$0-3],$$[$0-2],$$[$0],yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))));break;case 261:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Catch($$[$0],$$[$0-1]));break;case 262:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Catch($$[$0],yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Value($$[$0-1]))));break;case 263:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Catch($$[$0]));break;case 264:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Throw($$[$0]));break;case 265:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Throw(new yy.Value($$[$0-1])));break;case 266:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Parens($$[$0-1]));break;case 267:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Parens($$[$0-2]));break;case 268:case 272:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.While($$[$0]));break;case 269:case 273:case 274:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.While($$[$0-2],{guard:$$[$0]}));break;case 270:case 275:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.While($$[$0],{invert:!0}));break;case 271:case 276:case 277:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.While($$[$0-2],{invert:!0,guard:$$[$0]}));break;case 278:case 279:case 287:case 288:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)($$[$0-1].addBody($$[$0]));break;case 280:case 281:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(Object.assign($$[$0],{postfix:!0}).addBody(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(yy.Block.wrap([$$[$0-1]]))));break;case 283:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.While(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.BooleanLiteral("true")),{isLoop:!0}).addBody($$[$0]));break;case 284:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.While(yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.BooleanLiteral("true")),{isLoop:!0}).addBody(yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(yy.Block.wrap([$$[$0]]))));break;case 285:case 286:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(function(){return $$[$0].postfix=!0,$$[$0].addBody($$[$0-1])}());break;case 289:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.For([],{source:yy.addDataToNode(yy,_$[$0],$$[$0],null,null,!0)(new yy.Value($$[$0]))}));break;case 290:case 292:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.For([],{source:yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(new yy.Value($$[$0-2])),step:$$[$0]}));break;case 291:case 293:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)($$[$0-1].addSource($$[$0]));break;case 294:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.For([],{name:$$[$0][0],index:$$[$0][1]}));break;case 295:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(function(){var _$$$$=_slicedToArray($$[$0],2),index,name;return name=_$$$$[0],index=_$$$$[1],new yy.For([],{name:name,index:index,await:!0,awaitTag:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))})}());break;case 296:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(function(){var _$$$$2=_slicedToArray($$[$0],2),index,name;return name=_$$$$2[0],index=_$$$$2[1],new yy.For([],{name:name,index:index,own:!0,ownTag:yy.addDataToNode(yy,_$[$0-1],$$[$0-1],null,null,!0)(new yy.Literal($$[$0-1]))})}());break;case 302:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)([$$[$0-2],$$[$0]]);break;case 303:case 322:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)({source:$$[$0]});break;case 304:case 323:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)({source:$$[$0],object:!0});break;case 305:case 306:case 324:case 325:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)({source:$$[$0-2],guard:$$[$0]});break;case 307:case 308:case 326:case 327:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)({source:$$[$0-2],guard:$$[$0],object:!0});break;case 309:case 310:case 328:case 329:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)({source:$$[$0-2],step:$$[$0]});break;case 311:case 312:case 313:case 314:case 330:case 331:case 332:case 333:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)({source:$$[$0-4],guard:$$[$0-2],step:$$[$0]});break;case 315:case 316:case 317:case 318:case 334:case 335:case 336:case 337:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)({source:$$[$0-4],step:$$[$0-2],guard:$$[$0]});break;case 319:case 338:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)({source:$$[$0],from:!0});break;case 320:case 321:case 339:case 340:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)({source:$$[$0-2],guard:$$[$0],from:!0});break;case 341:case 342:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Switch($$[$0-3],$$[$0-1]));break;case 343:case 344:this.$=yy.addDataToNode(yy,_$[$0-6],$$[$0-6],_$[$0],$$[$0],!0)(new yy.Switch($$[$0-5],$$[$0-3],yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0-1],$$[$0-1],!0)($$[$0-1])));break;case 345:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Switch(null,$$[$0-1]));break;case 346:this.$=yy.addDataToNode(yy,_$[$0-5],$$[$0-5],_$[$0],$$[$0],!0)(new yy.Switch(null,$$[$0-3],yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0-1],$$[$0-1],!0)($$[$0-1])));break;case 349:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.SwitchWhen($$[$0-1],$$[$0]));break;case 350:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!1)(yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0-1],$$[$0-1],!0)(new yy.SwitchWhen($$[$0-2],$$[$0-1])));break;case 351:case 357:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.If($$[$0-1],$$[$0],{type:$$[$0-2]}));break;case 352:case 358:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)($$[$0-4].addElse(yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.If($$[$0-1],$$[$0],{type:$$[$0-2]}))));break;case 354:case 360:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)($$[$0-2].addElse($$[$0]));break;case 355:case 356:case 361:case 362:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.If($$[$0],yy.addDataToNode(yy,_$[$0-2],$$[$0-2],null,null,!0)(yy.Block.wrap([$$[$0-2]])),{type:$$[$0-1],postfix:!0}));break;case 366:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op($$[$0-1].toString(),$$[$0],void 0,void 0,{originalOperator:$$[$0-1].original}));break;case 369:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("-",$$[$0]));break;case 370:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("+",$$[$0]));break;case 373:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("--",$$[$0]));break;case 374:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("++",$$[$0]));break;case 375:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("--",$$[$0-1],null,!0));break;case 376:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Op("++",$$[$0-1],null,!0));break;case 377:this.$=yy.addDataToNode(yy,_$[$0-1],$$[$0-1],_$[$0],$$[$0],!0)(new yy.Existence($$[$0-1]));break;case 378:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Op("+",$$[$0-2],$$[$0]));break;case 379:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Op("-",$$[$0-2],$$[$0]));break;case 380:case 381:case 382:case 384:case 385:case 386:case 389:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Op($$[$0-1],$$[$0-2],$$[$0]));break;case 383:case 387:case 388:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Op($$[$0-1].toString(),$$[$0-2],$$[$0],void 0,{originalOperator:$$[$0-1].original}));break;case 390:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(function(){var ref,ref1;return new yy.Op($$[$0-1].toString(),$$[$0-2],$$[$0],void 0,{invertOperator:null==(ref=null==(ref1=$$[$0-1].invert)?void 0:ref1.original)?$$[$0-1].invert:ref})}());break;case 391:this.$=yy.addDataToNode(yy,_$[$0-2],$$[$0-2],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-2],$$[$0],$$[$0-1].toString(),{originalContext:$$[$0-1].original}));break;case 392:this.$=yy.addDataToNode(yy,_$[$0-4],$$[$0-4],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-4],$$[$0-1],$$[$0-3].toString(),{originalContext:$$[$0-3].original}));break;case 393:this.$=yy.addDataToNode(yy,_$[$0-3],$$[$0-3],_$[$0],$$[$0],!0)(new yy.Assign($$[$0-3],$$[$0],$$[$0-2].toString(),{originalContext:$$[$0-2].original}));}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{1:[3]},{1:[2,2],6:$VL},o($VM,[2,3]),o($VN,[2,6],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VN,[2,7]),o($VN,[2,8],{165:122,158:124,161:125,155:$VO,157:$VP,163:$VQ,181:$V41}),o($VN,[2,9]),o($V51,[2,16],{83:126,86:127,112:133,46:$V61,47:$V61,134:$V61,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1,133:$Vd1}),o($V51,[2,17],{112:133,86:136,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1}),o($V51,[2,18]),o($V51,[2,19]),o($V51,[2,20]),o($V51,[2,21]),o($V51,[2,22]),o($V51,[2,23]),o($V51,[2,24]),o($V51,[2,25]),o($V51,[2,26]),o($V51,[2,27]),o($VN,[2,28]),o($VN,[2,29]),o($VN,[2,30]),o($Ve1,[2,12]),o($Ve1,[2,13]),o($Ve1,[2,14]),o($Ve1,[2,15]),o($VN,[2,10]),o($VN,[2,11]),o($Vf1,$Vg1,{66:[1,137]}),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),o($Vf1,$Vh1),o($Vf1,[2,134]),o($Vf1,[2,135]),o($Vf1,[2,136]),o($Vf1,[2,137]),o($Vi1,$Vj1,{90:138,97:139,98:140,38:142,72:143,99:144,34:145,39:$V2,40:$V3,73:$Vk1,75:$Vl1,76:$Vm1,116:$Vp}),{5:149,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,33:$Vn1,34:66,37:148,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:151,8:152,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:156,8:157,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:158,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:166,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:167,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:168,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:$Vv1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:[1,170],88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{17:172,18:173,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:174,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:171,102:32,103:34,104:37,108:$Vo,116:$Vp,137:$Vt,152:$Vw,185:$Vu1},{17:172,18:173,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:174,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:175,102:32,103:34,104:37,108:$Vo,116:$Vp,137:$Vt,152:$Vw,185:$Vu1},o($Vw1,$Vx1,{189:[1,176],190:[1,177],203:[1,178]}),o($V51,[2,353],{176:[1,179]}),{33:$Vn1,37:180},{33:$Vn1,37:181},{33:$Vn1,37:182},o($V51,[2,282]),{33:$Vn1,37:183},{33:$Vn1,37:184},{7:185,8:186,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:[1,187],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vy1,[2,160],{58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,99:65,34:66,43:67,53:69,38:84,72:85,45:94,92:160,17:172,18:173,65:174,37:188,101:190,33:$Vn1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,120:[1,189],137:$Vt,152:$Vw,185:$Vu1}),{7:191,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,192],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([1,6,35,52,74,76,96,135,142,153,155,156,157,163,164,181,191,192,193,194,195,196,197,198,199,200,201,202],$Vz1,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:193,14:$V0,32:$Vo1,33:$VA1,36:$VB1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:[1,196],88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,160:$Vz,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($VN,[2,359],{176:[1,197]}),{18:199,29:198,89:$Vl,92:39,93:$Vm,94:$Vn},o([1,6,35,52,74,76,96,135,142,153,155,156,157,163,164,181],$VC1,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:200,14:$V0,32:$Vo1,33:$VD1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,160:$Vz,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),{38:206,39:$V2,40:$V3,45:202,46:$V5,47:$V6,116:[1,205],122:203,123:204,128:$VE1},{26:209,38:210,39:$V2,40:$V3,116:[1,208],119:$Vq,127:[1,211],131:[1,212]},o($Vw1,[2,127]),o($Vw1,[2,128]),o($Vf1,[2,52]),o($Vf1,[2,53]),o($Vf1,[2,54]),o($Vf1,[2,55]),o($Vf1,[2,56]),o($Vf1,[2,57]),o($Vf1,[2,58]),o($Vf1,[2,59]),{4:213,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,33:[1,214],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:215,8:216,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$VF1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,74:$VG1,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,138:218,139:219,143:224,144:221,145:220,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{83:227,105:$VJ1,106:$VK1,133:$Vd1,134:$V61},{84:230,134:$VL1},o($Vf1,[2,215]),o($Vf1,$VM1,{41:232,42:$VN1}),{105:[1,234]},o($VO1,[2,102]),o($VO1,[2,103]),o($VP1,[2,122]),o($VP1,[2,125]),{7:235,8:236,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:237,8:238,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:239,8:240,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:242,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:$Vn1,34:66,37:241,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{34:251,38:248,39:$V2,40:$V3,72:249,73:$Vf,75:$Vl1,88:$VQ1,99:250,102:243,116:$Vp,168:244,169:$VR1,170:247},{166:252,167:253,171:[1,254],172:[1,255],173:[1,256]},o([6,33,96,118],$VS1,{45:94,117:257,67:258,68:259,69:260,71:261,43:264,77:266,38:267,41:268,72:269,78:270,34:271,79:272,80:273,81:274,39:$V2,40:$V3,42:$VN1,44:$V4,46:$V5,47:$V6,73:$VT1,75:$VU1,76:$VV1,82:$VW1,85:$VX1,116:$Vp,137:$Vt,152:$Vw}),o($VY1,[2,40]),o($VY1,[2,41]),o($Vf1,[2,50]),{17:172,18:173,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:277,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:174,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:278,102:32,103:34,104:37,108:$Vo,116:$Vp,137:$Vt,152:$Vw,185:$Vu1},o($VZ1,[2,37]),o($VZ1,[2,38]),o($V_1,[2,42]),{45:282,46:$V5,47:$V6,48:279,50:280,51:$V$1},o($VM,[2,5],{7:4,8:5,9:6,10:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,11:27,12:28,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,92:39,101:48,179:49,158:51,154:52,159:53,161:54,162:55,182:60,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,5:283,14:$V0,32:$V1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$VC,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($V51,[2,377]),{7:284,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:285,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:286,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:287,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:288,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:289,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:290,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:291,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:292,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:293,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:294,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:295,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:296,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:297,8:298,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V51,[2,281]),o($V51,[2,286]),{7:237,8:299,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:239,8:300,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{34:251,38:248,39:$V2,40:$V3,72:249,73:$Vf,75:$Vl1,88:$VQ1,99:250,102:301,116:$Vp,168:244,169:$VR1,170:247},{166:252,171:[1,302],172:[1,303],173:[1,304]},{7:305,8:306,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V51,[2,280]),o($V51,[2,285]),{45:307,46:$V5,47:$V6,84:308,134:$VL1},o($VP1,[2,123]),o($V02,[2,212]),{41:309,42:$VN1},{41:310,42:$VN1},o($VP1,[2,146],{41:311,42:$VN1}),o($VP1,[2,147],{41:312,42:$VN1}),o($VP1,[2,148]),{7:315,8:317,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:[1,314],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$V12,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,113:313,115:316,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,141:318,142:$V22,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{106:$V81,112:321,114:$Vc1},o($VP1,[2,124]),{6:[1,323],7:322,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,324],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V32,$V42,{95:327,91:[1,325],96:$V52}),o($V62,[2,107]),o($V62,[2,111],{66:[1,329],76:[1,328]}),o($V62,[2,115],{38:142,72:143,99:144,34:145,98:330,39:$V2,40:$V3,73:$Vk1,75:$Vl1,116:$Vp}),o($V72,[2,116]),o($V72,[2,117]),o($V72,[2,118]),o($V72,[2,119]),{41:232,42:$VN1},{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$VF1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,74:$VG1,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,138:218,139:219,143:224,144:221,145:220,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vf1,[2,99]),o($VN,[2,101]),{4:334,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,34:66,35:[1,333],38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V82,$V92,{158:117,161:118,165:122,191:$VU}),o($VN,[2,363]),{7:168,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:$Vv1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{155:$VO,157:$VP,158:124,161:125,163:$VQ,165:122,181:$V41},o([1,6,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,191,192,193,194,195,196,197,198,199,200,201,202],$Vz1,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:193,14:$V0,32:$Vo1,33:$VA1,36:$VB1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,160:$Vz,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($V82,$Va2,{158:117,161:118,165:122,191:$VU}),o($VN,[2,364]),o($Vb2,[2,368],{158:117,161:118,165:122,191:$VU,193:$VW}),o($Vi1,$Vj1,{97:139,98:140,38:142,72:143,99:144,34:145,90:336,39:$V2,40:$V3,73:$Vk1,75:$Vl1,76:$Vm1,116:$Vp}),{33:$Vn1,37:148},{7:337,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:338,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{155:$VO,157:$VP,158:124,161:125,163:$VQ,165:122,181:[1,339]},{18:199,89:$Vq1,92:160,93:$Vm,94:$Vn},{7:340,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vb2,[2,369],{158:117,161:118,165:122,191:$VU,193:$VW}),o($Vb2,[2,370],{158:117,161:118,165:122,191:$VU,193:$VW}),o($V82,[2,371],{158:117,161:118,165:122,191:$VU}),{34:341,116:$Vp},o($VN,[2,97],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:342,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$VC1,157:$VC1,163:$VC1,181:$VC1,160:$Vz,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($V51,[2,373],{46:$Vx1,47:$Vx1,105:$Vx1,106:$Vx1,109:$Vx1,110:$Vx1,111:$Vx1,114:$Vx1,133:$Vx1,134:$Vx1}),o($V02,$V61,{83:126,86:127,112:133,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1,133:$Vd1}),{86:136,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,112:133,114:$Vc1},o($Vc2,$Vg1),o($V51,[2,374],{46:$Vx1,47:$Vx1,105:$Vx1,106:$Vx1,109:$Vx1,110:$Vx1,111:$Vx1,114:$Vx1,133:$Vx1,134:$Vx1}),o($V51,[2,375]),o($V51,[2,376]),{6:[1,345],7:343,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,344],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{33:$Vn1,37:346,180:[1,347]},o($V51,[2,257],{148:348,149:[1,349],150:[1,350]}),o($V51,[2,278]),o($V51,[2,279]),o($V51,[2,287]),o($V51,[2,288]),{33:[1,351],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[1,352]},{175:353,177:354,178:$Vd2},o($V51,[2,161]),{7:356,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vy1,[2,164],{37:357,33:$Vn1,46:$Vx1,47:$Vx1,105:$Vx1,106:$Vx1,109:$Vx1,110:$Vx1,111:$Vx1,114:$Vx1,133:$Vx1,134:$Vx1,120:[1,358]}),o($Ve2,[2,264],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{34:359,116:$Vp},o($Ve2,[2,32],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{34:360,116:$Vp},{7:361,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([1,6,35,52,74,76,96,135,142,153,156,164],[2,95],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:362,14:$V0,32:$Vo1,33:$VD1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$VC1,157:$VC1,163:$VC1,181:$VC1,160:$Vz,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),{33:$Vn1,37:363,180:[1,364]},o($VN,[2,365]),o($Vf1,[2,394]),o($Ve1,$Vf2,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{34:365,116:$Vp},o($Ve1,[2,168]),{36:[1,366],96:[1,367]},{36:[1,368]},{33:$Vg2,38:373,39:$V2,40:$V3,118:[1,369],124:370,125:371,127:$Vh2},o([36,96],[2,184]),{126:[1,375]},{33:$Vi2,38:380,39:$V2,40:$V3,118:[1,376],127:$Vj2,130:377,132:378},o($Ve1,[2,188]),{66:[1,382]},{7:383,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,384],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{36:[1,385]},{6:$VL,153:[1,386]},{4:387,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vk2,$Vl2,{158:117,161:118,165:122,141:388,76:[1,389],142:$V22,155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vk2,$Vm2,{141:390,76:$V12,142:$V22}),o($Vn2,[2,218]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,74:[1,391],75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,143:393,145:392,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([6,33,74],$V42,{140:394,95:396,96:$Vo2}),o($Vp2,[2,249],{6:$Vq2}),o($Vr2,[2,240]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$VF1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,138:399,139:398,143:224,144:221,145:220,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vs2,[2,251]),o($Vr2,[2,245]),o($Vt2,[2,238]),o($Vt2,[2,239],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:400,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),{84:401,134:$VL1},{41:402,42:$VN1},{7:403,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,404],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vu2,[2,210]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$Vv2,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,135:[1,405],136:406,137:$Vt,143:407,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vw2,[2,217]),o($Vw2,[2,39]),{41:409,42:$VN1},{33:$Vn1,37:410,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:$Vn1,37:411},o($Vx2,[2,272],{158:117,161:118,165:122,155:$VO,156:[1,412],157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:[2,268],156:[1,413]},o($Vx2,[2,275],{158:117,161:118,165:122,155:$VO,156:[1,414],157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:[2,270],156:[1,415]},o($V51,[2,283]),o($Vy2,[2,284],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:$Vz2,164:[1,416]},o($VA2,[2,294]),{34:251,38:248,39:$V2,40:$V3,72:249,73:$Vk1,75:$Vl1,99:250,116:$Vp,168:417,170:247},{34:251,38:248,39:$V2,40:$V3,72:249,73:$Vk1,75:$Vl1,99:250,116:$Vp,168:418,170:247},o($VA2,[2,301],{96:[1,419]}),o($VB2,[2,297]),o($VB2,[2,298]),o($VB2,[2,299]),o($VB2,[2,300]),o($V51,[2,291]),{33:[2,293]},{7:420,8:421,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:422,8:423,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:424,8:425,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VC2,$V42,{95:426,96:$VD2}),o($VE2,[2,156]),o($VE2,[2,63],{70:[1,428]}),o($VE2,[2,64]),o($VF2,[2,72],{112:133,83:431,86:432,66:[1,429],76:[1,430],105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1,133:$Vd1,134:$V61}),{7:433,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([76,105,106,109,110,111,114,133,134],$VM1,{41:232,42:$VN1,73:[1,434]}),o($VF2,[2,75]),{34:271,38:267,39:$V2,40:$V3,41:268,42:$VN1,71:435,72:269,75:$Vg,77:436,78:270,79:272,80:273,81:274,82:$VW1,85:$VX1,116:$Vp,137:$Vt,152:$Vw},{76:[1,437],83:438,86:439,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,112:133,114:$Vc1,133:$Vd1,134:$V61},o($VG2,[2,69]),o($VG2,[2,70]),o($VG2,[2,71]),o($VH2,[2,80]),o($VH2,[2,81]),o($VH2,[2,82]),o($VH2,[2,83]),o($VH2,[2,84]),{83:440,105:$VJ1,106:$VK1,133:$Vd1,134:$V61},{84:441,134:$VL1},o($Vc2,$Vh1,{57:[1,442]}),o($Vc2,$Vx1),{45:282,46:$V5,47:$V6,49:[1,443],50:444,51:$V$1},o($VI2,[2,44]),{4:445,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,33:[1,446],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,52:[1,447],53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VI2,[2,49]),o($VM,[2,4]),o($VJ2,[2,378],{158:117,161:118,165:122,191:$VU,192:$VV,193:$VW}),o($VJ2,[2,379],{158:117,161:118,165:122,191:$VU,192:$VV,193:$VW}),o($Vb2,[2,380],{158:117,161:118,165:122,191:$VU,193:$VW}),o($Vb2,[2,381],{158:117,161:118,165:122,191:$VU,193:$VW}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,194,195,196,197,198,199,200,201,202],[2,382],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,195,196,197,198,199,200,201],[2,383],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,196,197,198,199,200,201],[2,384],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,197,198,199,200,201],[2,385],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,198,199,200,201],[2,386],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,199,200,201],[2,387],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,200,201],[2,388],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,201],[2,389],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,202:$V31}),o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,164,181,195,196,197,198,199,200,201,202],[2,390],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX}),o($Vy2,$VK2,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VN,[2,362]),{156:[1,448]},{156:[1,449]},o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,156,157,163,181,187,188,191,192,193,194,195,196,197,198,199,200,201,202],$Vz2,{164:[1,450]}),{7:451,8:452,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:453,8:454,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:455,8:456,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vy2,$VL2,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VN,[2,361]),o($Vu2,[2,207]),o($Vu2,[2,208]),o($VP1,[2,142]),o($VP1,[2,143]),o($VP1,[2,144]),o($VP1,[2,145]),{107:[1,457]},{7:315,8:317,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$V12,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,113:458,115:316,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,141:318,142:$V22,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VM2,[2,152],{158:117,161:118,165:122,141:459,76:$V12,142:$V22,155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VM2,[2,153]),{76:$V12,141:460,142:$V22},o($VM2,[2,230],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:461,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($VN2,[2,221]),o($VN2,$VO2),o($VP1,[2,151]),o($Ve2,[2,60],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:462,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:463,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{92:464,93:$Vm,94:$Vn},o($VP2,$VQ2,{98:140,38:142,72:143,99:144,34:145,97:465,39:$V2,40:$V3,73:$Vk1,75:$Vl1,76:$Vm1,116:$Vp}),{6:$VR2,33:$VS2},o($V62,[2,112]),{7:468,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V62,[2,113]),o($Vt2,$Vl2,{158:117,161:118,165:122,76:[1,469],155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vt2,$Vm2),o($VT2,[2,35]),{6:$VL,35:[1,470]},{7:471,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V32,$V42,{95:327,91:[1,472],96:$V52}),o($V82,$V92,{158:117,161:118,165:122,191:$VU}),o($V82,$Va2,{158:117,161:118,165:122,191:$VU}),{7:473,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{33:$Vn1,37:410,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{35:[1,474]},o($VN,[2,96],{158:117,161:118,165:122,155:$Vf2,157:$Vf2,163:$Vf2,181:$Vf2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,[2,391],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:475,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:476,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V51,[2,354]),{7:477,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V51,[2,258],{149:[1,478]}),{33:$Vn1,37:479},{33:$Vn1,34:481,37:482,38:480,39:$V2,40:$V3,116:$Vp},{175:483,177:354,178:$Vd2},{175:484,177:354,178:$Vd2},{35:[1,485],176:[1,486],177:487,178:$Vd2},o($VV2,[2,347]),{7:489,8:490,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,146:488,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VW2,[2,162],{158:117,161:118,165:122,37:491,33:$Vn1,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($V51,[2,165]),{7:492,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{35:[1,493]},{35:[1,494]},o($Ve2,[2,34],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VN,[2,94],{158:117,161:118,165:122,155:$Vf2,157:$Vf2,163:$Vf2,181:$Vf2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VN,[2,360]),{7:496,8:495,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{35:[1,497]},{45:498,46:$V5,47:$V6},{116:[1,500],123:499,128:$VE1},{45:501,46:$V5,47:$V6},{36:[1,502]},o($VC2,$V42,{95:503,96:$VX2}),o($VE2,[2,175]),{33:$Vg2,38:373,39:$V2,40:$V3,124:505,125:371,127:$Vh2},o($VE2,[2,180],{126:[1,506]}),o($VE2,[2,182],{126:[1,507]}),{38:508,39:$V2,40:$V3},o($Ve1,[2,186],{36:[1,509]}),o($VC2,$V42,{95:510,96:$VY2}),o($VE2,[2,197]),{33:$Vi2,38:380,39:$V2,40:$V3,127:$Vj2,130:512,132:378},o($VE2,[2,202],{126:[1,513]}),o($VE2,[2,205],{126:[1,514]}),{6:[1,516],7:515,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,517],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VZ2,[2,192],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{34:518,116:$Vp},{45:519,46:$V5,47:$V6},o($Vf1,[2,266]),{6:$VL,35:[1,520]},{7:521,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([14,32,39,40,44,46,47,54,55,59,60,61,62,63,64,73,75,82,85,87,88,89,93,94,108,116,119,121,129,137,147,151,152,155,157,160,163,174,180,183,184,185,186,187,188,189,190],$VO2,{6:$V_2,33:$V_2,74:$V_2,96:$V_2}),{7:522,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vn2,[2,219]),o($Vp2,[2,250],{6:$Vq2}),o($Vr2,[2,246]),{33:$V$2,74:[1,523]},o([6,33,35,74],$VQ2,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,92:39,101:48,179:49,158:51,154:52,159:53,161:54,162:55,182:60,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,9:154,145:220,143:224,100:225,7:331,8:332,144:525,138:526,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,76:$VH1,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,93:$Vm,94:$Vn,96:$VI1,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$VC,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($V03,[2,247],{6:[1,527]}),o($Vs2,[2,252]),o($VP2,$V42,{95:396,140:528,96:$Vo2}),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,143:393,145:392,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vt2,[2,121],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vu2,[2,209]),o($Vf1,[2,138]),{107:[1,529],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{7:530,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vu2,[2,213]),o([6,33,135],$V42,{95:531,96:$V13}),o($V23,[2,231]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$Vv2,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,136:533,137:$Vt,143:407,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vf1,[2,141]),o($V33,[2,351]),o($V43,[2,357]),{7:534,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:535,8:536,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:537,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:538,8:539,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:540,8:541,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VA2,[2,295]),o($VA2,[2,296]),{34:251,38:248,39:$V2,40:$V3,72:249,73:$Vk1,75:$Vl1,99:250,116:$Vp,170:542},{33:$V53,155:$VO,156:[1,543],157:$VP,158:117,161:118,163:$VQ,164:[1,544],165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,322],156:[1,545],164:[1,546]},{33:$V63,155:$VO,156:[1,547],157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,323],156:[1,548]},{33:$V73,155:$VO,156:[1,549],157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,338],156:[1,550]},{6:$V83,33:$V93,118:[1,551]},o($Va3,$VQ2,{45:94,68:259,69:260,71:261,43:264,77:266,38:267,41:268,72:269,78:270,34:271,79:272,80:273,81:274,67:554,39:$V2,40:$V3,42:$VN1,44:$V4,46:$V5,47:$V6,73:$VT1,75:$VU1,76:$VV1,82:$VW1,85:$VX1,116:$Vp,137:$Vt,152:$Vw}),{7:555,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,556],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:557,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,33:[1,558],34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VE2,[2,76]),{84:559,134:$VL1},o($VH2,[2,89]),{74:[1,560],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{7:561,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VE2,[2,77],{112:133,83:431,86:432,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1,133:$Vd1,134:$V61}),o($VE2,[2,79],{112:133,83:438,86:439,105:$V71,106:$V81,109:$V91,110:$Va1,111:$Vb1,114:$Vc1,133:$Vd1,134:$V61}),o($VE2,[2,78]),{84:562,134:$VL1},o($VH2,[2,90]),{84:563,134:$VL1},o($VH2,[2,86]),o($Vf1,[2,51]),o($V_1,[2,43]),o($VI2,[2,45]),{6:$VL,52:[1,564]},{4:565,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VI2,[2,48]),{7:566,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:567,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:568,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o([1,6,33,35,52,74,76,91,96,107,118,135,142,153,155,157,163,181],$V53,{158:117,161:118,165:122,156:[1,569],164:[1,570],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{156:[1,571],164:[1,572]},o($Vb3,$V63,{158:117,161:118,165:122,156:[1,573],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{156:[1,574]},o($Vb3,$V73,{158:117,161:118,165:122,156:[1,575],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{156:[1,576]},o($VP1,[2,149]),{35:[1,577]},o($VM2,[2,226],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:578,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($VM2,[2,228],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,101:48,179:49,158:51,154:52,159:53,161:54,162:55,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,92:160,9:163,7:579,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($VM2,[2,229],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,[2,61],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{35:[1,580],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{5:582,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$V1,33:$Vn1,34:66,37:581,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vk,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V62,[2,108]),{34:145,38:142,39:$V2,40:$V3,72:143,73:$Vk1,75:$Vl1,76:$Vm1,97:583,98:140,99:144,116:$Vp},o($Vc3,$Vj1,{97:139,98:140,38:142,72:143,99:144,34:145,90:584,39:$V2,40:$V3,73:$Vk1,75:$Vl1,76:$Vm1,116:$Vp}),o($V62,[2,114],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vt2,$V_2),o($VT2,[2,36]),o($Vy2,$VK2,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{92:585,93:$Vm,94:$Vn},o($Vy2,$VL2,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($V51,[2,372]),{35:[1,586],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($Ve2,[2,393],{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:$Vn1,37:587,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:$Vn1,37:588},o($V51,[2,259]),{33:$Vn1,37:589},{33:$Vn1,37:590},o($Vd3,[2,263]),{35:[1,591],176:[1,592],177:487,178:$Vd2},{35:[1,593],176:[1,594],177:487,178:$Vd2},o($V51,[2,345]),{33:$Vn1,37:595},o($VV2,[2,348]),{33:$Vn1,37:596,96:[1,597]},o($Ve3,[2,253],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve3,[2,254]),o($V51,[2,163]),o($VW2,[2,166],{158:117,161:118,165:122,37:598,33:$Vn1,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($V51,[2,265]),o($V51,[2,33]),{33:$Vn1,37:599},{155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($Ve1,[2,92]),o($Ve1,[2,169]),{36:[1,600]},{33:$Vg2,38:373,39:$V2,40:$V3,124:601,125:371,127:$Vh2},o($Ve1,[2,170]),{45:602,46:$V5,47:$V6},{6:$Vf3,33:$Vg3,118:[1,603]},o($Va3,$VQ2,{38:373,125:606,39:$V2,40:$V3,127:$Vh2}),o($VP2,$V42,{95:607,96:$VX2}),{38:608,39:$V2,40:$V3},{38:609,39:$V2,40:$V3},{36:[2,185]},{45:610,46:$V5,47:$V6},{6:$Vh3,33:$Vi3,118:[1,611]},o($Va3,$VQ2,{38:380,132:614,39:$V2,40:$V3,127:$Vj2}),o($VP2,$V42,{95:615,96:$VY2}),{38:616,39:$V2,40:$V3,127:[1,617]},{38:618,39:$V2,40:$V3},o($VZ2,[2,189],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:619,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:620,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{35:[1,621]},o($Ve1,[2,194]),{153:[1,622]},{74:[1,623],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{74:[1,624],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($Vn2,[2,220]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$VF1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,138:399,139:625,143:224,144:221,145:220,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vr2,[2,241]),o($V03,[2,248],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,92:39,101:48,179:49,158:51,154:52,159:53,161:54,162:55,182:60,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,9:154,100:225,7:331,8:332,145:392,143:393,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,76:$VH1,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,93:$Vm,94:$Vn,96:$VI1,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$VC,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,96:$VI1,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,138:399,143:224,144:626,145:220,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{33:$V$2,35:[1,627]},o($Vf1,[2,139]),{35:[1,628],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{6:$Vj3,33:$Vk3,135:[1,629]},o([6,33,35,135],$VQ2,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,65:29,58:30,79:31,102:32,56:33,103:34,81:35,80:36,104:37,92:39,101:48,179:49,158:51,154:52,159:53,161:54,162:55,182:60,99:65,34:66,43:67,53:69,38:84,72:85,165:91,45:94,9:154,100:225,7:331,8:332,143:632,14:$V0,32:$Vo1,39:$V2,40:$V3,44:$V4,46:$V5,47:$V6,54:$V7,55:$V8,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,73:$Vf,75:$Vg,76:$VH1,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,93:$Vm,94:$Vn,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,155:$Vx,157:$Vy,160:$Vz,163:$VA,174:$VB,180:$VC,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK}),o($VP2,$V42,{95:633,96:$V13}),o($Vy2,[2,273],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:$Vl3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,269]},o($Vy2,[2,276],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{33:$Vm3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,271]},{33:$Vn3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,292]},o($VA2,[2,302]),{7:634,8:635,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:636,8:637,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:638,8:639,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:640,8:641,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:642,8:643,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:644,8:645,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:646,8:647,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:648,8:649,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($Vn2,[2,154]),{34:271,38:267,39:$V2,40:$V3,41:268,42:$VN1,43:264,44:$V4,45:94,46:$V5,47:$V6,67:650,68:259,69:260,71:261,72:269,73:$VT1,75:$VU1,76:$VV1,77:266,78:270,79:272,80:273,81:274,82:$VW1,85:$VX1,116:$Vp,137:$Vt,152:$Vw},o($Vc3,$VS1,{45:94,67:258,68:259,69:260,71:261,43:264,77:266,38:267,41:268,72:269,78:270,34:271,79:272,80:273,81:274,117:651,39:$V2,40:$V3,42:$VN1,44:$V4,46:$V5,47:$V6,73:$VT1,75:$VU1,76:$VV1,82:$VW1,85:$VX1,116:$Vp,137:$Vt,152:$Vw}),o($VE2,[2,157]),o($VE2,[2,65],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:652,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VE2,[2,67],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:653,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($VH2,[2,87]),o($VF2,[2,73]),{74:[1,654],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($VH2,[2,88]),o($VH2,[2,85]),o($VI2,[2,46]),{6:$VL,35:[1,655]},o($Vy2,$Vl3,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vy2,$Vm3,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Vy2,$Vn3,{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{7:656,8:657,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:658,8:659,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:660,8:661,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:662,8:663,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:664,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:665,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:666,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:667,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{107:[1,668]},o($VM2,[2,225],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VM2,[2,227],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($V51,[2,62]),o($Vf1,[2,98]),o($VN,[2,100]),o($V62,[2,109]),o($VP2,$V42,{95:669,96:$V52}),{33:$Vn1,37:581},o($V51,[2,392]),o($V33,[2,352]),o($V51,[2,260]),o($Vd3,[2,261]),o($Vd3,[2,262]),o($V51,[2,341]),{33:$Vn1,37:670},o($V51,[2,342]),{33:$Vn1,37:671},{35:[1,672]},o($VV2,[2,349],{6:[1,673]}),{7:674,8:675,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V51,[2,167]),o($V43,[2,358]),{45:676,46:$V5,47:$V6},o($VC2,$V42,{95:677,96:$VX2}),o($Ve1,[2,171]),{36:[1,678]},{38:373,39:$V2,40:$V3,125:679,127:$Vh2},{33:$Vg2,38:373,39:$V2,40:$V3,124:680,125:371,127:$Vh2},o($VE2,[2,176]),{6:$Vf3,33:$Vg3,35:[1,681]},o($VE2,[2,181]),o($VE2,[2,183]),o($Ve1,[2,195]),o($Ve1,[2,187],{36:[1,682]}),{38:380,39:$V2,40:$V3,127:$Vj2,132:683},{33:$Vi2,38:380,39:$V2,40:$V3,127:$Vj2,130:684,132:378},o($VE2,[2,198]),{6:$Vh3,33:$Vi3,35:[1,685]},o($VE2,[2,203]),o($VE2,[2,204]),o($VE2,[2,206]),o($VZ2,[2,190],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{35:[1,686],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($Ve1,[2,193]),o($Vf1,[2,267]),o($Vf1,[2,223]),o($Vf1,[2,224]),o($VP2,$V42,{95:396,140:687,96:$Vo2}),o($Vr2,[2,242]),o($Vr2,[2,243]),{107:[1,688]},o($Vu2,[2,214]),{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,143:689,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:331,8:332,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,33:$Vv2,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,76:$VH1,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,100:225,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,136:690,137:$Vt,143:407,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V23,[2,232]),{6:$Vj3,33:$Vk3,35:[1,691]},{33:$Vo3,155:$VO,157:$VP,158:117,161:118,163:$VQ,164:[1,692],165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,324],164:[1,693]},{33:$Vp3,155:$VO,156:[1,694],157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,328],156:[1,695]},{33:$Vq3,155:$VO,157:$VP,158:117,161:118,163:$VQ,164:[1,696],165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,325],164:[1,697]},{33:$Vr3,155:$VO,156:[1,698],157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,329],156:[1,699]},{33:$Vs3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,326]},{33:$Vt3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,327]},{33:$Vu3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,339]},{33:$Vv3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,340]},o($VE2,[2,158]),o($VP2,$V42,{95:700,96:$VD2}),{35:[1,701],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{35:[1,702],155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VU2,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},o($VF2,[2,74]),{52:[1,703]},o($Vw3,$Vo3,{158:117,161:118,165:122,164:[1,704],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{164:[1,705]},o($Vb3,$Vp3,{158:117,161:118,165:122,156:[1,706],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{156:[1,707]},o($Vw3,$Vq3,{158:117,161:118,165:122,164:[1,708],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{164:[1,709]},o($Vb3,$Vr3,{158:117,161:118,165:122,156:[1,710],187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{156:[1,711]},o($Ve2,$Vs3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$Vt3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$Vu3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$Vv3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($VP1,[2,150]),{6:$VR2,33:$VS2,35:[1,712]},{35:[1,713]},{35:[1,714]},o($V51,[2,346]),o($VV2,[2,350]),o($Ve3,[2,255],{158:117,161:118,165:122,155:$VO,157:$VP,163:$VQ,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve3,[2,256]),o($Ve1,[2,173]),{6:$Vf3,33:$Vg3,118:[1,715]},{45:716,46:$V5,47:$V6},o($VE2,[2,177]),o($VP2,$V42,{95:717,96:$VX2}),o($VE2,[2,178]),{45:718,46:$V5,47:$V6},o($VE2,[2,199]),o($VP2,$V42,{95:719,96:$VY2}),o($VE2,[2,200]),o($Ve1,[2,191]),{33:$V$2,35:[1,720]},o($Vf1,[2,140]),o($V23,[2,233]),o($VP2,$V42,{95:721,96:$V13}),o($V23,[2,234]),{7:722,8:723,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:724,8:725,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:726,8:727,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:728,8:729,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:730,8:731,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:732,8:733,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:734,8:735,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:736,8:737,9:154,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vl,92:39,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$VC,182:60,183:$VD,184:$VE,185:$VF,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{6:$V83,33:$V93,35:[1,738]},o($VE2,[2,66]),o($VE2,[2,68]),o($VI2,[2,47]),{7:739,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:740,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:741,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:742,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:743,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:744,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:745,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},{7:746,9:163,13:23,14:$V0,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:$Vo1,34:66,38:84,39:$V2,40:$V3,43:67,44:$V4,45:94,46:$V5,47:$V6,53:69,54:$V7,55:$V8,56:33,58:30,59:$V9,60:$Va,61:$Vb,62:$Vc,63:$Vd,64:$Ve,65:29,72:85,73:$Vf,75:$Vg,79:31,80:36,81:35,82:$Vh,85:$Vi,87:$Vj,88:$Vp1,89:$Vq1,92:160,93:$Vm,94:$Vn,99:65,101:48,102:32,103:34,104:37,108:$Vo,116:$Vp,119:$Vq,121:$Vr,129:$Vs,137:$Vt,147:$Vu,151:$Vv,152:$Vw,154:52,155:$Vx,157:$Vy,158:51,159:53,160:$Vz,161:54,162:55,163:$VA,165:91,174:$VB,179:49,180:$Vr1,183:$Vs1,184:$Vt1,185:$Vu1,186:$VG,187:$VH,188:$VI,189:$VJ,190:$VK},o($V62,[2,110]),o($V51,[2,343]),o($V51,[2,344]),{36:[1,747]},o($Ve1,[2,172]),{6:$Vf3,33:$Vg3,35:[1,748]},o($Ve1,[2,196]),{6:$Vh3,33:$Vi3,35:[1,749]},o($Vr2,[2,244]),{6:$Vj3,33:$Vk3,35:[1,750]},{33:$Vx3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,330]},{33:$Vy3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,332]},{33:$Vz3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,334]},{33:$VA3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,336]},{33:$VB3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,331]},{33:$VC3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,333]},{33:$VD3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,335]},{33:$VE3,155:$VO,157:$VP,158:117,161:118,163:$VQ,165:122,181:$VR,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31},{33:[2,337]},o($VE2,[2,159]),o($Ve2,$Vx3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$Vy3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$Vz3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$VA3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$VB3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$VC3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$VD3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),o($Ve2,$VE3,{158:117,161:118,165:122,187:$VS,188:$VT,191:$VU,192:$VV,193:$VW,194:$VX,195:$VY,196:$VZ,197:$V_,198:$V$,199:$V01,200:$V11,201:$V21,202:$V31}),{45:751,46:$V5,47:$V6},o($VE2,[2,179]),o($VE2,[2,201]),o($V23,[2,235]),o($Ve1,[2,174])],defaultActions:{253:[2,293],508:[2,185],536:[2,269],539:[2,271],541:[2,292],643:[2,326],645:[2,327],647:[2,339],649:[2,340],723:[2,330],725:[2,332],727:[2,334],729:[2,336],731:[2,331],733:[2,333],735:[2,335],737:[2,337]},parseError:function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},parse:function(input){var self=this,stack=[0],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,recovering=0,EOF=1,args=lstack.slice.call(arguments,1),lexer=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer,sharedState.yy.parser=this,"undefined"==typeof lexer.yylloc&&(lexer.yylloc={});var yyloc=lexer.yylloc;lstack.push(yyloc);var ranges=lexer.options&&lexer.options.ranges;this.parseError="function"==typeof sharedState.yy.parseError?sharedState.yy.parseError:Object.getPrototypeOf(this).parseError;_token_stack:var lex=function(){var token;return token=lexer.lex()||EOF,"number"!=typeof token&&(token=self.symbols_[token]||token),token};for(var yyval={},symbol,preErrorSymbol,state,action,r,p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((null===symbol||"undefined"==typeof symbol)&&(symbol=lex()),action=table[state]&&table[state][symbol]),"undefined"==typeof action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer.match,token:this.terminals_[symbol]||symbol,line:lexer.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&1indexOf.call(this.compiledComments,comment)))&&(this.compiledComments.push(comment),commentFragment=comment.here?new HereComment(comment).compileNode(o):new LineComment(comment).compileNode(o),commentFragment.isHereComment&&!commentFragment.newLine||node.includeCommentFragments()?unshiftCommentFragment(commentFragment):(0===fragments.length&&fragments.push(this.makeCode("")),commentFragment.unshift?(null==(base1=fragments[0]).precedingComments&&(base1.precedingComments=[]),fragments[0].precedingComments.push(commentFragment)):(null==(base2=fragments[fragments.length-1]).followingComments&&(base2.followingComments=[]),fragments[fragments.length-1].followingComments.push(commentFragment))));return fragments}},{key:"cache",value:function cache(o,level,shouldCache){var complex,ref,sub;return complex=null==shouldCache?this.shouldCache():shouldCache(this),complex?(ref=new IdentifierLiteral(o.scope.freeVariable("ref")),sub=new Assign(ref,this),level?[sub.compileToFragments(o,level),[this.makeCode(ref.value)]]:[sub,ref]):(ref=level?this.compileToFragments(o,level):this,[ref,ref])}},{key:"hoist",value:function hoist(){var compileNode,compileToFragments,target;return this.hoisted=!0,target=new HoistTarget(this),compileNode=this.compileNode,compileToFragments=this.compileToFragments,this.compileNode=function(o){return target.update(compileNode,o)},this.compileToFragments=function(o){return target.update(compileToFragments,o)},target}},{key:"cacheToCodeFragments",value:function cacheToCodeFragments(cacheValues){return[fragmentsToText(cacheValues[0]),fragmentsToText(cacheValues[1])]}},{key:"makeReturn",value:function makeReturn(results,mark){var node;return mark?void(this.canBeReturned=!0):(node=this.unwrapAll(),results?new Call(new Literal("".concat(results,".push")),[node]):new Return(node))}},{key:"contains",value:function contains(pred){var node;return node=void 0,this.traverseChildren(!1,function(n){if(pred(n))return node=n,!1}),node}},{key:"lastNode",value:function lastNode(list){return 0===list.length?null:list[list.length-1]}},{key:"toString",value:function toString(){var idt=0LEVEL_TOP&&this.checkForPureStatementInExpression(),this.isStatement(o)&&o.level!==LEVEL_TOP&&null!=o.scope&&this.makeReturn(null,!0),o}},{key:"astNode",value:function astNode(o){return Object.assign({},{type:this.astType(o)},this.astProperties(o),this.astLocationData())}},{key:"astProperties",value:function astProperties(){return{}}},{key:"astType",value:function astType(){return this.constructor.name}},{key:"astLocationData",value:function astLocationData(){return jisonLocationDataToAstLocationData(this.locationData)}},{key:"isStatementAst",value:function isStatementAst(o){return this.isStatement(o)}},{key:"eachChild",value:function eachChild(func){var attr,child,j,k,len1,len2,ref1,ref2;if(!this.children)return this;for(ref1=this.children,j=0,len1=ref1.length;j=LEVEL_LIST?this.wrapInParentheses(answer):answer)}},{key:"compileRoot",value:function compileRoot(o){var fragments;return this.spaced=!0,fragments=this.compileWithDeclarations(o),HoistTarget.expand(fragments),this.compileComments(fragments)}},{key:"compileWithDeclarations",value:function compileWithDeclarations(o){var assigns,declaredVariable,declaredVariables,declaredVariablesIndex,declars,exp,fragments,i,j,k,len1,len2,post,ref1,rest,scope,spaced;for(fragments=[],post=[],ref1=this.expressions,(i=j=0,len1=ref1.length);j=LEVEL_OP?this.wrapInParentheses(code):code}},{key:"astType",value:function astType(){return"Identifier"}},{key:"astProperties",value:function astProperties(){return{name:"NaN",declaration:!1}}}]),NaNLiteral}(NumberLiteral),exports.StringLiteral=StringLiteral=function(_Literal2){"use strict";function StringLiteral(originalValue){var _ref24=1=LEVEL_ACCESS?"(void 0)":"void 0")]}},{key:"astType",value:function astType(){return"Identifier"}},{key:"astProperties",value:function astProperties(){return{name:this.value,declaration:!1}}}]),UndefinedLiteral}(Literal),exports.NullLiteral=NullLiteral=function(_Literal10){"use strict";function NullLiteral(){return _classCallCheck(this,NullLiteral),_possibleConstructorReturn(this,_getPrototypeOf(NullLiteral).call(this,"null"))}return _inherits(NullLiteral,_Literal10),NullLiteral}(Literal),exports.BooleanLiteral=BooleanLiteral=function(_Literal11){"use strict";function BooleanLiteral(value){var _ref27=1this.properties.length&&!this.base.shouldCache()&&(null==name||!name.shouldCache()))?[this,this]:(base=new Value(this.base,this.properties.slice(0,-1)),base.shouldCache()&&(bref=new IdentifierLiteral(o.scope.freeVariable("base")),base=new Value(new Parens(new Assign(bref,base)))),!name)?[base,bref]:(name.shouldCache()&&(nref=new IdentifierLiteral(o.scope.freeVariable("name")),name=new Index(new Assign(nref,name.index)),nref=new Index(nref)),[base.add(name),new Value(bref||base.base,[nref||name])])}},{key:"compileNode",value:function compileNode(o){var fragments,j,len1,prop,props;for(this.base.front=this.front,props=this.properties,fragments=props.length&&null!=this.base.cached?this.base.cached:this.base.compileToFragments(o,props.length?LEVEL_ACCESS:null),props.length&&SIMPLENUM.test(fragmentsToText(fragments))&&fragments.push(this.makeCode(".")),(j=0,len1=props.length);j")),(_fragments8=fragments).push.apply(_fragments8,_toConsumableArray(this.content.compileNode(o,LEVEL_LIST))),(_fragments9=fragments).push.apply(_fragments9,[this.makeCode("")]))}else fragments.push(this.makeCode(" />"));return fragments}},{key:"isFragment",value:function isFragment(){return!this.tagName.base.value.length}},{key:"astNode",value:function astNode(o){var tagName;return this.openingElementLocationData=jisonLocationDataToAstLocationData(this.attributes.locationData),tagName=this.tagName.base,tagName.locationData=tagName.tagNameLocationData,null!=this.content&&(this.closingElementLocationData=mergeAstLocationData(jisonLocationDataToAstLocationData(tagName.closingTagOpeningBracketLocationData),jisonLocationDataToAstLocationData(tagName.closingTagClosingBracketLocationData))),_get(_getPrototypeOf(JSXElement.prototype),"astNode",this).call(this,o)}},{key:"astType",value:function astType(){return this.isFragment()?"JSXFragment":"JSXElement"}},{key:"elementAstProperties",value:function elementAstProperties(o){var _this34=this,closingElement,columnDiff,currentExpr,openingElement,rangeDiff,ref1,shiftAstLocationData,tagNameAst;if(tagNameAst=function(){var tag;return tag=_this34.tagName.unwrap(),(null==tag?void 0:tag.value)&&0<=indexOf.call(tag.value,":")&&(tag=new JSXNamespacedName(tag)),tag.ast(o)},openingElement=Object.assign({type:"JSXOpeningElement",name:tagNameAst(),selfClosing:null==this.closingElementLocationData,attributes:this.attributes.ast(o)},this.openingElementLocationData),closingElement=null,null!=this.closingElementLocationData&&(closingElement=Object.assign({type:"JSXClosingElement",name:Object.assign(tagNameAst(),jisonLocationDataToAstLocationData(this.tagName.base.closingTagNameLocationData))},this.closingElementLocationData),"JSXMemberExpression"===(ref1=closingElement.name.type)||"JSXNamespacedName"===ref1))if(rangeDiff=closingElement.range[0]-openingElement.range[0]+"/".length,columnDiff=closingElement.loc.start.column-openingElement.loc.start.column+"/".length,shiftAstLocationData=function(node){return node.range=[node.range[0]+rangeDiff,node.range[1]+rangeDiff],node.start+=rangeDiff,node.end+=rangeDiff,node.loc.start={line:_this34.closingElementLocationData.loc.start.line,column:node.loc.start.column+columnDiff},node.loc.end={line:_this34.closingElementLocationData.loc.start.line,column:node.loc.end.column+columnDiff}},"JSXMemberExpression"===closingElement.name.type){for(currentExpr=closingElement.name;"JSXMemberExpression"===currentExpr.type;)currentExpr!==closingElement.name&&shiftAstLocationData(currentExpr),shiftAstLocationData(currentExpr.property),currentExpr=currentExpr.object;shiftAstLocationData(currentExpr)}else shiftAstLocationData(closingElement.name.namespace),shiftAstLocationData(closingElement.name.name);return{openingElement:openingElement,closingElement:closingElement}}},{key:"fragmentAstProperties",value:function fragmentAstProperties(){var closingFragment,openingFragment;return openingFragment=Object.assign({type:"JSXOpeningFragment"},this.openingElementLocationData),closingFragment=Object.assign({type:"JSXClosingFragment"},this.closingElementLocationData),{openingFragment:openingFragment,closingFragment:closingFragment}}},{key:"contentAst",value:function contentAst(o){var base1,child,children,content,element,emptyExpression,expression,j,len1,results1,unwrapped;if(!this.content||("function"==typeof(base1=this.content.base).isEmpty?base1.isEmpty():void 0))return[];for(content=this.content.unwrapAll(),children=function(){var j,len1,ref1,results1;if(content instanceof StringLiteral)return[new JSXText(content)];for(ref1=this.content.unwrapAll().extractElements(o,{includeInterpolationWrappers:!0,isJsx:!0}),results1=[],(j=0,len1=ref1.length);jLEVEL_TOP){var _superCall$cache=superCall.cache(o,null,YES),_superCall$cache2=_slicedToArray(_superCall$cache,2);superCall=_superCall$cache2[0],ref=_superCall$cache2[1],replacement.push(ref)}return replacement.unshift(superCall),replacement.compileToFragments(o,o.level===LEVEL_TOP?o.level:LEVEL_LIST)}}]),SuperCall}(Call);return SuperCall.prototype.children=Call.prototype.children.concat(["expressions"]),SuperCall}.call(this),exports.Super=Super=function(){var Super=function(_Base19){"use strict";function Super(accessor,superLiteral){var _this36;return _classCallCheck(this,Super),_this36=_possibleConstructorReturn(this,_getPrototypeOf(Super).call(this)),_this36.accessor=accessor,_this36.superLiteral=superLiteral,_this36}return _inherits(Super,_Base19),_createClass(Super,[{key:"compileNode",value:function compileNode(o){var fragments,method,name,nref,ref1,ref2,salvagedComments,variable;if(this.checkInInstanceMethod(o),method=o.scope.namedMethod(),null==method.ctor&&null==this.accessor){var _method=method;name=_method.name,variable=_method.variable,(name.shouldCache()||name instanceof Index&&name.index.isAssignable())&&(nref=new IdentifierLiteral(o.scope.parent.freeVariable("name")),name.index=new Assign(nref,name.index)),this.accessor=null==nref?name:new Index(nref)}return(null==(ref1=this.accessor)||null==(ref2=ref1.name)?void 0:ref2.comments)&&(salvagedComments=this.accessor.name.comments,delete this.accessor.name.comments),fragments=new Value(new Literal("super"),this.accessor?[this.accessor]:[]).compileToFragments(o),salvagedComments&&attachCommentsToNode(salvagedComments,this.accessor.name),fragments}},{key:"checkInInstanceMethod",value:function checkInInstanceMethod(o){var method;if(method=o.scope.namedMethod(),null==method||!method.isMethod)return this.error("cannot use super outside of an instance method")}},{key:"astNode",value:function astNode(o){var ref1;return this.checkInInstanceMethod(o),null==this.accessor?_get(_getPrototypeOf(Super.prototype),"astNode",this).call(this,o):new Value(new Super().withLocationDataFrom(null==(ref1=this.superLiteral)?this:ref1),[this.accessor]).withLocationDataFrom(this).ast(o)}}]),Super}(Base);return Super.prototype.children=["accessor"],Super}.call(this),exports.RegexWithInterpolations=RegexWithInterpolations=function(){var RegexWithInterpolations=function(_Base20){"use strict";function RegexWithInterpolations(call1){var _ref37=1").concat(this.equals);var _ref39=[this.fromNum,this.toNum];return from=_ref39[0],to=_ref39[1],stepNotZero="".concat(null==(ref1=this.stepNum)?this.stepVar:ref1," !== 0"),stepCond="".concat(null==(ref2=this.stepNum)?this.stepVar:ref2," > 0"),lowerBound="".concat(lt," ").concat(known?to:this.toVar),upperBound="".concat(gt," ").concat(known?to:this.toVar),condPart=null==this.step?known?"".concat(from<=to?lt:gt," ").concat(to):"(".concat(this.fromVar," <= ").concat(this.toVar," ? ").concat(lowerBound," : ").concat(upperBound,")"):null!=this.stepNum&&0!==this.stepNum?0 0"):"".concat(this.fromVar," <= ").concat(this.toVar),stepPart=this.stepVar?"".concat(idx," += ").concat(this.stepVar):known?namedIndex?from<=to?"++".concat(idx):"--".concat(idx):from<=to?"".concat(idx,"++"):"".concat(idx,"--"):namedIndex?"".concat(cond," ? ++").concat(idx," : --").concat(idx):"".concat(cond," ? ").concat(idx,"++ : ").concat(idx,"--"),namedIndex&&(varPart="".concat(idxName," = ").concat(varPart)),namedIndex&&(stepPart="".concat(idxName," = ").concat(stepPart)),[this.makeCode("".concat(varPart,"; ").concat(condPart,"; ").concat(stepPart))]}},{key:"compileArray",value:function compileArray(o){var args,body,cond,hasArgs,i,idt,known,post,pre,range,ref1,result,vars;return(known=null!=this.fromNum&&null!=this.toNum,known&&20>=_Mathabs(this.fromNum-this.toNum))?(range=function(){for(var results1=[],j=ref1=this.fromNum,ref2=this.toNum;ref1<=ref2?j<=ref2:j>=ref2;ref1<=ref2?j++:j--)results1.push(j);return results1}.apply(this),this.exclusive&&range.pop(),[this.makeCode("[".concat(range.join(", "),"]"))]):(idt=this.tab+TAB,i=o.scope.freeVariable("i",{single:!0,reserve:!1}),result=o.scope.freeVariable("results",{reserve:!1}),pre="\n".concat(idt,"var ").concat(result," = [];"),known?(o.index=i,body=fragmentsToText(this.compileNode(o))):(vars="".concat(i," = ").concat(this.fromC)+(this.toC===this.toVar?"":", ".concat(this.toC)),cond="".concat(this.fromVar," <= ").concat(this.toVar),body="var ".concat(vars,"; ").concat(cond," ? ").concat(i," <").concat(this.equals," ").concat(this.toVar," : ").concat(i," >").concat(this.equals," ").concat(this.toVar,"; ").concat(cond," ? ").concat(i,"++ : ").concat(i,"--")),post="{ ".concat(result,".push(").concat(i,"); }\n").concat(idt,"return ").concat(result,";\n").concat(o.indent),hasArgs=function(node){return null==node?void 0:node.contains(isLiteralArguments)},(hasArgs(this.from)||hasArgs(this.to))&&(args=", arguments"),[this.makeCode("(function() {".concat(pre,"\n").concat(idt,"for (").concat(body,")").concat(post,"}).apply(this").concat(null==args?"":args,")"))])}},{key:"astProperties",value:function astProperties(o){var ref1,ref2,ref3,ref4;return{from:null==(ref1=null==(ref2=this.from)?void 0:ref2.ast(o))?null:ref1,to:null==(ref3=null==(ref4=this.to)?void 0:ref4.ast(o))?null:ref3,exclusive:this.exclusive}}}]),Range}(Base);return Range.prototype.children=["from","to"],Range}.call(this),exports.Slice=Slice=function(){var Slice=function(_Base25){"use strict";function Slice(range1){var _this42;return _classCallCheck(this,Slice),_this42=_possibleConstructorReturn(this,_getPrototypeOf(Slice).call(this)),_this42.range=range1,_this42}return _inherits(Slice,_Base25),_createClass(Slice,[{key:"compileNode",value:function compileNode(o){var _this$range=this.range,compiled,compiledText,from,fromCompiled,to,toStr;return to=_this$range.to,from=_this$range.from,(null==from?void 0:from.shouldCache())&&(from=new Value(new Parens(from))),(null==to?void 0:to.shouldCache())&&(to=new Value(new Parens(to))),fromCompiled=(null==from?void 0:from.compileToFragments(o,LEVEL_PAREN))||[this.makeCode("0")],to&&(compiled=to.compileToFragments(o,LEVEL_PAREN),compiledText=fragmentsToText(compiled),(this.range.exclusive||-1!=+compiledText)&&(toStr=", "+(this.range.exclusive?compiledText:to.isNumber()?"".concat(+compiledText+1):(compiled=to.compileToFragments(o,LEVEL_ACCESS),"+".concat(fragmentsToText(compiled)," + 1 || 9e9"))))),[this.makeCode(".slice(".concat(fragmentsToText(fromCompiled)).concat(toStr||"",")"))]}},{key:"astNode",value:function astNode(o){return this.range.ast(o)}}]),Slice}(Base);return Slice.prototype.children=["range"],Slice}.call(this),exports.Obj=Obj=function(){var Obj=function(_Base26){"use strict";function Obj(props){var generated=!!(1start)return exprs.push(new Value(new Obj(properties.slice(start,end),!0)))};assign=properties[end];)(initializerExpression=this.addInitializerExpression(assign,o))&&(pushSlice(),exprs.push(initializerExpression),initializer.push(initializerExpression),start=end+1),end++;pushSlice(),splice.apply(expressions,[i,i-i+1].concat(exprs)),exprs,i+=exprs.length}else(initializerExpression=this.addInitializerExpression(expression,o))&&(initializer.push(initializerExpression),expressions[i]=initializerExpression),i+=1;for(k=0,len2=initializer.length;kLEVEL_LIST||isValue&&this.variable.base instanceof Obj&&!this.nestedLhs&&!0!==this.param?this.wrapInParentheses(answer):answer)}},{key:"compileObjectDestruct",value:function compileObjectDestruct(o){var assigns,props,refVal,splat,splatProp;this.variable.base.reorderProperties(),props=this.variable.base.properties;var _slice1$call15=slice1.call(props,-1),_slice1$call16=_slicedToArray(_slice1$call15,1);return splat=_slice1$call16[0],splatProp=splat.name,assigns=[],refVal=new Value(new IdentifierLiteral(o.scope.freeVariable("ref"))),props.splice(-1,1,new Splat(refVal)),assigns.push(new Assign(new Value(new Obj(props)),this.value).compileToFragments(o,LEVEL_LIST)),assigns.push(new Assign(new Value(splatProp),refVal).compileToFragments(o,LEVEL_LIST)),this.joinFragmentArrays(assigns,", ")}},{key:"compileDestructuring",value:function compileDestructuring(o){var _this58=this,assignObjects,assigns,code,compSlice,compSplice,complexObjects,expIdx,expans,fragments,hasObjAssigns,isExpans,isSplat,leftObjs,loopObjects,obj,objIsUnassignable,objects,olen,processObjects,pushAssign,ref,refExp,restVar,rightObjs,slicer,splatVar,splatVarAssign,splatVarRef,splats,splatsAndExpans,top,value,vvar,vvarText;if(top=o.level===LEVEL_TOP,value=this.value,objects=this.variable.base.objects,olen=objects.length,0===olen)return code=value.compileToFragments(o),o.level>=LEVEL_OP?this.wrapInParentheses(code):code;var _objects=objects,_objects2=_slicedToArray(_objects,1);obj=_objects2[0],this.disallowLoneExpansion();var _this$getAndCheckSpla=this.getAndCheckSplatsAndExpansions();return splats=_this$getAndCheckSpla.splats,expans=_this$getAndCheckSpla.expans,splatsAndExpans=_this$getAndCheckSpla.splatsAndExpans,isSplat=0<(null==splats?void 0:splats.length),isExpans=0<(null==expans?void 0:expans.length),vvar=value.compileToFragments(o,LEVEL_LIST),vvarText=fragmentsToText(vvar),assigns=[],pushAssign=function(variable,val){return assigns.push(new Assign(variable,val,null,{param:_this58.param,subpattern:!0}).compileToFragments(o,LEVEL_LIST))},isSplat&&(splatVar=objects[splats[0]].name.unwrap(),(splatVar instanceof Arr||splatVar instanceof Obj)&&(splatVarRef=new IdentifierLiteral(o.scope.freeVariable("ref")),objects[splats[0]].name=splatVarRef,splatVarAssign=function(){return pushAssign(new Value(splatVar),splatVarRef)})),(!(value.unwrap()instanceof IdentifierLiteral)||this.variable.assigns(vvarText))&&(ref=o.scope.freeVariable("ref"),assigns.push([this.makeCode(ref+" = ")].concat(_toConsumableArray(vvar))),vvar=[this.makeCode(ref)],vvarText=ref),slicer=function(type){return function(vvar,start){var end=!!(2LEVEL_TOP?this.wrapInParentheses(answer):answer}},{key:"eachName",value:function eachName(iterator){return this.variable.unwrapAll().eachName(iterator)}},{key:"isDefaultAssignment",value:function isDefaultAssignment(){return this.param||this.nestedLhs}},{key:"propagateLhs",value:function propagateLhs(){var ref1,ref2;return(null==(ref1=this.variable)?void 0:"function"==typeof ref1.isArray?ref1.isArray():void 0)||(null==(ref2=this.variable)?void 0:"function"==typeof ref2.isObject?ref2.isObject():void 0)?this.variable.base.propagateLhs(!0):void 0}},{key:"throwUnassignableConditionalError",value:function throwUnassignableConditionalError(name){return this.variable.error("the variable \"".concat(name,"\" can't be assigned with ").concat(this.context," because it has not been declared before"))}},{key:"isConditional",value:function isConditional(){var ref1;return"||="===(ref1=this.context)||"&&="===ref1||"?="===ref1}},{key:"astNode",value:function astNode(o){var variable;return this.disallowLoneExpansion(),this.getAndCheckSplatsAndExpansions(),this.isConditional()&&(variable=this.variable.unwrap(),variable instanceof IdentifierLiteral&&!o.scope.check(variable.value)&&this.throwUnassignableConditionalError(variable.value)),this.addScopeVariables(o,{allowAssignmentToExpansion:!0,allowAssignmentToNontrailingSplat:!0,allowAssignmentToEmptyArray:!0,allowAssignmentToComplexSplat:!0}),_get(_getPrototypeOf(Assign.prototype),"astNode",this).call(this,o)}},{key:"astType",value:function astType(){return this.isDefaultAssignment()?"AssignmentPattern":"AssignmentExpression"}},{key:"astProperties",value:function astProperties(o){var ref1,ret;return ret={right:this.value.ast(o,LEVEL_LIST),left:this.variable.ast(o,LEVEL_LIST)},this.isDefaultAssignment()||(ret.operator=null==(ref1=this.originalContext)?"=":ref1),ret}}]),Assign}(Base);return Assign.prototype.children=["variable","value"],Assign.prototype.isAssignable=YES,Assign.prototype.isStatementAst=NO,Assign}.call(this),exports.FuncGlyph=FuncGlyph=function(_Base39){"use strict";function FuncGlyph(glyph){var _this59;return _classCallCheck(this,FuncGlyph),_this59=_possibleConstructorReturn(this,_getPrototypeOf(FuncGlyph).call(this)),_this59.glyph=glyph,_this59}return _inherits(FuncGlyph,_Base39),FuncGlyph}(Base),exports.Code=Code=function(){var Code=function(_Base40){"use strict";function Code(params,body,funcGlyph,paramStart){var _this60;_classCallCheck(this,Code);var ref1;return _this60=_possibleConstructorReturn(this,_getPrototypeOf(Code).call(this)),_this60.funcGlyph=funcGlyph,_this60.paramStart=paramStart,_this60.params=params||[],_this60.body=body||new Block,_this60.bound="=>"===(null==(ref1=_this60.funcGlyph)?void 0:ref1.glyph),_this60.isGenerator=!1,_this60.isAsync=!1,_this60.isMethod=!1,_this60.body.traverseChildren(!1,function(node){if((node instanceof Op&&node.isYield()||node instanceof YieldReturn)&&(_this60.isGenerator=!0),(node instanceof Op&&node.isAwait()||node instanceof AwaitReturn)&&(_this60.isAsync=!0),node instanceof For&&node.isAwait())return _this60.isAsync=!0}),_this60.propagateLhs(),_this60}return _inherits(Code,_Base40),_createClass(Code,[{key:"isStatement",value:function isStatement(){return this.isMethod}},{key:"makeScope",value:function makeScope(parentScope){return new Scope(parentScope,this.body,this)}},{key:"compileNode",value:function compileNode(o){var _this$body$expression3,_answer4,answer,body,boundMethodCheck,comment,condition,exprs,generatedVariables,haveBodyParam,haveSplatParam,i,ifTrue,j,k,l,len1,len2,len3,m,methodScope,modifiers,name,param,paramToAddToScope,params,paramsAfterSplat,ref,ref1,ref2,ref3,ref4,ref5,ref6,ref7,ref8,scopeVariablesCount,signature,splatParamName,thisAssignments,wasEmpty,yieldNode;for(this.checkForAsyncOrGeneratorConstructor(),this.bound&&((null==(ref1=o.scope.method)?void 0:ref1.bound)&&(this.context=o.scope.method.context),!this.context&&(this.context="this")),this.updateOptions(o),params=[],exprs=[],thisAssignments=null==(ref2=null==(ref3=this.thisAssignments)?void 0:ref3.slice())?[]:ref2,paramsAfterSplat=[],haveSplatParam=!1,haveBodyParam=!1,this.checkForDuplicateParams(),this.disallowLoneExpansionAndMultipleSplats(),this.eachParamName(function(name,node,param,obj){var replacement,target;if(node["this"])return name=node.properties[0].name.value,0<=indexOf.call(JS_FORBIDDEN,name)&&(name="_".concat(name)),target=new IdentifierLiteral(o.scope.freeVariable(name,{reserve:!1})),replacement=param.name instanceof Obj&&obj instanceof Assign&&"="===obj.operatorToken.value?new Assign(new IdentifierLiteral(name),target,"object"):target,param.renameParam(node,replacement),thisAssignments.push(new Assign(node,target))}),ref4=this.params,(i=j=0,len1=ref4.length);j")),answer.push(this.makeCode(" {")),null==body?void 0:body.length){var _answer5;(_answer5=answer).push.apply(_answer5,[this.makeCode("\n")].concat(_toConsumableArray(body),[this.makeCode("\n".concat(this.tab))]))}return answer.push(this.makeCode("}")),this.isMethod?indentInitial(answer,this):this.front||o.level>=LEVEL_ACCESS?this.wrapInParentheses(answer):answer}},{key:"updateOptions",value:function updateOptions(o){return o.scope=del(o,"classScope")||this.makeScope(o.scope),o.scope.shared=del(o,"sharedScope"),o.indent+=TAB,delete o.bare,delete o.isExistentialEquals}},{key:"checkForDuplicateParams",value:function checkForDuplicateParams(){var paramNames;return paramNames=[],this.eachParamName(function(name,node){return 0<=indexOf.call(paramNames,name)&&node.error("multiple parameters named '".concat(name,"'")),paramNames.push(name)})}},{key:"eachParamName",value:function eachParamName(iterator){var j,len1,param,ref1,results1;for(ref1=this.params,results1=[],(j=0,len1=ref1.length);j(null==(ref1=this.funcGlyph)?void 0:ref1.locationData.first_line)},this.isMethod?this.methodAstProperties(o):{})}},{key:"astLocationData",value:function(){var astLocationData,functionLocationData;return(functionLocationData=_get(_getPrototypeOf(Code.prototype),"astLocationData",this).call(this),!this.isMethod)?functionLocationData:(astLocationData=mergeAstLocationData(this.name.astLocationData(),functionLocationData),null!=this.isStatic.staticClassName&&(astLocationData=mergeAstLocationData(this.isStatic.staticClassName.astLocationData(),astLocationData)),astLocationData)}}]),Code}(Base);return Code.prototype.children=["params","body"],Code.prototype.jumps=NO,Code}.call(this),exports.Param=Param=function(){var Param=function(_Base41){"use strict";function Param(name1,value1,splat1){var _this65;_classCallCheck(this,Param);var message,token;return _this65=_possibleConstructorReturn(this,_getPrototypeOf(Param).call(this)),_this65.name=name1,_this65.value=value1,_this65.splat=splat1,message=isUnassignable(_this65.name.unwrapAll().value),message&&_this65.name.error(message),_this65.name instanceof Obj&&_this65.name.generated&&(token=_this65.name.objects[0].operatorToken,token.error("unexpected ".concat(token.value))),_this65}return _inherits(Param,_Base41),_createClass(Param,[{key:"compileToFragments",value:function compileToFragments(o){return this.name.compileToFragments(o,LEVEL_LIST)}},{key:"compileToFragmentsWithoutComments",value:function compileToFragmentsWithoutComments(o){return this.name.compileToFragmentsWithoutComments(o,LEVEL_LIST)}},{key:"asReference",value:function asReference(o){var name,node;return this.reference?this.reference:(node=this.name,node["this"]?(name=node.properties[0].name.value,0<=indexOf.call(JS_FORBIDDEN,name)&&(name="_".concat(name)),node=new IdentifierLiteral(o.scope.freeVariable(name))):node.shouldCache()&&(node=new IdentifierLiteral(o.scope.freeVariable("arg"))),node=new Value(node),node.updateLocationDataIfMissing(this.locationData),this.reference=node)}},{key:"shouldCache",value:function shouldCache(){return this.name.shouldCache()}},{key:"eachName",value:function eachName(iterator){var _this66=this,name=1"===ref1||">="===ref1||"<="===ref1||"==="===ref1||"!=="===ref1}},{key:"isChain",value:function isChain(){return this.isChainable()&&this.first.isChainable()}},{key:"invert",value:function invert(){var allInvertable,curr,fst,op,ref1;if(this.isInOperator())return this.invertOperator="!",this;if(this.isChain()){for(allInvertable=!0,curr=this;curr&&curr.operator;)allInvertable&&(allInvertable=curr.operator in INVERSIONS),curr=curr.first;if(!allInvertable)return new Parens(this).invert();for(curr=this;curr&&curr.operator;)curr.invert=!curr.invert,curr.operator=INVERSIONS[curr.operator],curr=curr.first;return this}return(op=INVERSIONS[this.operator])?(this.operator=op,this.first.unwrap()instanceof Op&&this.first.invert(),this):this.second?new Parens(this).invert():"!"===this.operator&&(fst=this.first.unwrap())instanceof Op&&("!"===(ref1=fst.operator)||"in"===ref1||"instanceof"===ref1)?fst:new Op("!",this)}},{key:"unfoldSoak",value:function unfoldSoak(o){var ref1;return("++"===(ref1=this.operator)||"--"===ref1||"delete"===ref1)&&_unfoldSoak(o,this,"first")}},{key:"generateDo",value:function generateDo(exp){var call,func,j,len1,param,passedParams,ref,ref1;for(passedParams=[],func=exp instanceof Assign&&(ref=exp.value.unwrap())instanceof Code?ref:exp,ref1=func.params||[],(j=0,len1=ref1.length);j=LEVEL_ACCESS?new Parens(this).compileToFragments(o):(plusMinus="+"===op||"-"===op,("typeof"===op||"delete"===op||plusMinus&&this.first instanceof Op&&this.first.operator===op)&&parts.push([this.makeCode(" ")]),plusMinus&&this.first instanceof Op&&(this.first=new Parens(this.first)),parts.push(this.first.compileToFragments(o,LEVEL_OP)),this.flip&&parts.reverse(),this.joinFragmentArrays(parts,""))}},{key:"compileContinuation",value:function compileContinuation(o){var op,parts,ref1;return parts=[],op=this.operator,this.checkContinuation(o),0<=indexOf.call(Object.keys(this.first),"expression")&&!(this.first instanceof Throw)?null!=this.first.expression&&parts.push(this.first.expression.compileToFragments(o,LEVEL_OP)):(o.level>=LEVEL_PAREN&&parts.push([this.makeCode("(")]),parts.push([this.makeCode(op)]),""!==(null==(ref1=this.first.base)?void 0:ref1.value)&&parts.push([this.makeCode(" ")]),parts.push(this.first.compileToFragments(o,LEVEL_OP)),o.level>=LEVEL_PAREN&&parts.push([this.makeCode(")")])),this.joinFragmentArrays(parts,"")}},{key:"checkContinuation",value:function checkContinuation(o){var ref1;if(null==o.scope.parent&&this.error("".concat(this.operator," can only occur inside functions")),(null==(ref1=o.scope.method)?void 0:ref1.bound)&&o.scope.method.isGenerator)return this.error("yield cannot occur inside bound (fat arrow) functions")}},{key:"compileFloorDivision",value:function compileFloorDivision(o){var div,floor,second;return floor=new Value(new IdentifierLiteral("Math"),[new Access(new PropertyName("floor"))]),second=this.second.shouldCache()?new Parens(this.second):this.second,div=new Op("/",this.first,second),new Call(floor,[div]).compileToFragments(o)}},{key:"compileModulo",value:function compileModulo(o){var mod;return mod=new Value(new Literal(utility("modulo",o))),new Call(mod,[this.first,this.second]).compileToFragments(o)}},{key:"toString",value:function toString(idt){return _get(_getPrototypeOf(Op.prototype),"toString",this).call(this,idt,this.constructor.name+" "+this.operator)}},{key:"checkDeleteOperand",value:function checkDeleteOperand(o){if("delete"===this.operator&&o.scope.check(this.first.unwrapAll().value))return this.error("delete operand may not be argument or var")}},{key:"astNode",value:function astNode(o){return(this.isYield()||this.isAwait())&&this.checkContinuation(o),this.checkDeleteOperand(o),_get(_getPrototypeOf(Op.prototype),"astNode",this).call(this,o)}},{key:"astType",value:function astType(){if(this.isAwait())return"AwaitExpression";if(this.isYield())return"YieldExpression";if(this.isChain())return"ChainedComparison";switch(this.operator){case"||":case"&&":case"?":return"LogicalExpression";case"++":case"--":return"UpdateExpression";default:return this.isUnary()?"UnaryExpression":"BinaryExpression";}}},{key:"operatorAst",value:function operatorAst(){return"".concat(this.invertOperator?"".concat(this.invertOperator," "):"").concat(this.originalOperator)}},{key:"chainAstProperties",value:function chainAstProperties(o){var currentOp,operand,operands,operators;for(operators=[this.operatorAst()],operands=[this.second],currentOp=this.first;;)if(operators.unshift(currentOp.operatorAst()),operands.unshift(currentOp.second),currentOp=currentOp.first,!currentOp.isChainable()){operands.unshift(currentOp);break}return{operators:operators,operands:function(){var j,len1,results1;for(results1=[],j=0,len1=operands.length;j= 0"))),fragmentsToText(sub)===fragmentsToText(ref))?fragments:(fragments=sub.concat(this.makeCode(", "),fragments),o.levelindexOf.call(salvagedComments,comment)&&salvagedComments.push(comment);return delete child.comments}}),attachCommentsToNode(salvagedComments,_assertThisInitialized(_this74)),moveComments(_this74.expression,_assertThisInitialized(_this74)),_this74}return _inherits(Existence,_Base51),_createClass(Existence,[{key:"compileNode",value:function compileNode(o){var cmp,cnj,code;if(this.expression.front=this.front,code=this.expression.compile(o,LEVEL_OP),this.expression.unwrap()instanceof IdentifierLiteral&&!o.scope.check(code)){var _ref58=this.negated?["===","||"]:["!==","&&"],_ref59=_slicedToArray(_ref58,2);cmp=_ref59[0],cnj=_ref59[1],code="typeof ".concat(code," ").concat(cmp," \"undefined\"")+("undefined"===this.comparisonTarget?"":" ".concat(cnj," ").concat(code," ").concat(cmp," ").concat(this.comparisonTarget))}else cmp="null"===this.comparisonTarget?this.negated?"==":"!=":this.negated?"===":"!==",code="".concat(code," ").concat(cmp," ").concat(this.comparisonTarget);return[this.makeCode(o.level<=LEVEL_COND?code:"(".concat(code,")"))]}},{key:"astType",value:function astType(){return"UnaryExpression"}},{key:"astProperties",value:function astProperties(o){return{argument:this.expression.ast(o),operator:"?",prefix:!1}}}]),Existence}(Base);return Existence.prototype.children=["expression"],Existence.prototype.invert=NEGATE,Existence}.call(this),exports.Parens=Parens=function(){var Parens=function(_Base52){"use strict";function Parens(body1){var _this75;return _classCallCheck(this,Parens),_this75=_possibleConstructorReturn(this,_getPrototypeOf(Parens).call(this)),_this75.body=body1,_this75}return _inherits(Parens,_Base52),_createClass(Parens,[{key:"unwrap",value:function unwrap(){return this.body}},{key:"shouldCache",value:function shouldCache(){return this.body.shouldCache()}},{key:"compileNode",value:function compileNode(o){var bare,expr,fragments,ref1,shouldWrapComment;return(expr=this.body.unwrap(),shouldWrapComment=null==(ref1=expr.comments)?void 0:ref1.some(function(comment){return comment.here&&!comment.unshift&&!comment.newLine}),expr instanceof Value&&expr.isAtomic()&&!this.jsxAttribute&&!shouldWrapComment)?(expr.front=this.front,expr.compileToFragments(o)):(fragments=expr.compileToFragments(o,LEVEL_PAREN),bare=o.level=fragments.length),this.jsxAttribute?this.wrapInBraces(fragments):bare?fragments:this.wrapInParentheses(fragments))}},{key:"astNode",value:function astNode(o){return this.body.unwrap().ast(o,LEVEL_PAREN)}}]),Parens}(Base);return Parens.prototype.children=["body"],Parens}.call(this),exports.StringWithInterpolations=StringWithInterpolations=function(){var StringWithInterpolations=function(_Base53){"use strict";function StringWithInterpolations(body1){var _ref60=1stepNum,!(this.step&&null!=stepNum&&down)&&(lvar=scope.freeVariable("len")),declare="".concat(kvarAssign).concat(ivar," = 0, ").concat(lvar," = ").concat(svar,".length"),declareDown="".concat(kvarAssign).concat(ivar," = ").concat(svar,".length - 1"),compare="".concat(ivar," < ").concat(lvar),compareDown="".concat(ivar," >= 0"),this.step?(null==stepNum?(compare="".concat(stepVar," > 0 ? ").concat(compare," : ").concat(compareDown),declare="(".concat(stepVar," > 0 ? (").concat(declare,") : ").concat(declareDown,")")):down&&(compare=compareDown,declare=declareDown),increment="".concat(ivar," += ").concat(stepVar)):increment="".concat(kvar===ivar?"".concat(ivar,"++"):"++".concat(ivar)),forPartFragments=[this.makeCode("".concat(declare,"; ").concat(compare,"; ").concat(kvarAssign).concat(increment))])),this.returns&&(resultPart="".concat(this.tab).concat(rvar," = [];\n"),returnResult="\n".concat(this.tab,"return ").concat(rvar,";"),body.makeReturn(rvar)),this.guard&&(1=LEVEL_COND?this.wrapInParentheses(fragments):fragments}},{key:"unfoldSoak",value:function unfoldSoak(){return this.soak&&this}},{key:"processedCondition",value:function processedCondition(){return null==this.processedConditionCache?this.processedConditionCache="unless"===this.type?this.condition.invert():this.condition:this.processedConditionCache}},{key:"isStatementAst",value:function isStatementAst(o){return o.level===LEVEL_TOP}},{key:"astType",value:function astType(o){return this.isStatementAst(o)?"IfStatement":"ConditionalExpression"}},{key:"astProperties",value:function astProperties(o){var isStatement,ref1,ref2,ref3,ref4;return isStatement=this.isStatementAst(o),{test:this.condition.ast(o,isStatement?LEVEL_PAREN:LEVEL_COND),consequent:isStatement?this.body.ast(o,LEVEL_TOP):this.bodyNode().ast(o,LEVEL_TOP),alternate:this.isChain?this.elseBody.unwrap().ast(o,isStatement?LEVEL_TOP:LEVEL_COND):isStatement||1!==(null==(ref1=this.elseBody)||null==(ref2=ref1.expressions)?void 0:ref2.length)?null==(ref3=null==(ref4=this.elseBody)?void 0:ref4.ast(o,LEVEL_TOP))?null:ref3:this.elseBody.expressions[0].ast(o,LEVEL_TOP),postfix:!!this.postfix,inverted:"unless"===this.type}}}]),If}(Base);return If.prototype.children=["condition","body","elseBody"],If}.call(this),exports.Sequence=Sequence=function(){var Sequence=function(_Base61){"use strict";function Sequence(expressions1){var _this85;return _classCallCheck(this,Sequence),_this85=_possibleConstructorReturn(this,_getPrototypeOf(Sequence).call(this)),_this85.expressions=expressions1,_this85}return _inherits(Sequence,_Base61),_createClass(Sequence,[{key:"astNode",value:function astNode(o){return 1===this.expressions.length?this.expressions[0].ast(o):_get(_getPrototypeOf(Sequence.prototype),"astNode",this).call(this,o)}},{key:"astType",value:function astType(){return"SequenceExpression"}},{key:"astProperties",value:function astProperties(o){var expression;return{expressions:function(){var j,len1,ref1,results1;for(ref1=this.expressions,results1=[],(j=0,len1=ref1.length);jb?a:b},isAstLocGreater=function(a,b){return!!(a.line>b.line)||a.line===b.line&&a.column>b.column},isLocationDataStartGreater=function(a,b){return!!(a.first_line>b.first_line)||a.first_line===b.first_line&&a.first_column>b.first_column},isLocationDataEndGreater=function(a,b){return!!(a.last_line>b.last_line)||a.last_line===b.last_line&&a.last_column>b.last_column},exports.mergeLocationData=mergeLocationData=function(locationDataA,locationDataB){var _ref69=2=column);)column--;return mapping&&[mapping.sourceLine,mapping.sourceColumn]}}]),LineMap}(),SourceMap=function(){var SourceMap=function(){"use strict";function SourceMap(){_classCallCheck(this,SourceMap),this.lines=[]}return _createClass(SourceMap,[{key:"add",value:function add(sourceLocation,generatedLocation){var options=2=line);)line--;return lineMap&&lineMap.sourceLocation(column)}},{key:"generate",value:function generate(){var options=0"],v3={version:3,file:options.generatedFile||"",sourceRoot:options.sourceRoot||"",sources:sources,names:[],mappings:buffer},(options.sourceMap||options.inlineMap)&&(v3.sourcesContent=[code]),v3}},{key:"encodeVlq",value:function encodeVlq(value){var answer,nextChunk,signBit,valueToEncode;for(answer="",signBit=0>value?1:0,valueToEncode=(_Mathabs(value)<<1)+signBit;valueToEncode||!answer;)nextChunk=valueToEncode&VLQ_VALUE_MASK,valueToEncode>>=VLQ_SHIFT,valueToEncode&&(nextChunk|=VLQ_CONTINUATION_BIT),answer+=this.encodeBase64(nextChunk);return answer}},{key:"encodeBase64",value:function encodeBase64(value){return BASE64_CHARS[value]||function(){throw new Error("Cannot Base64 encode value: ".concat(value))}()}}]),SourceMap}(),BASE64_CHARS,VLQ_CONTINUATION_BIT,VLQ_SHIFT,VLQ_VALUE_MASK;return VLQ_SHIFT=5,VLQ_CONTINUATION_BIT=1<",checkShebangLine(filename,code),generateSourceMap&&(map=new SourceMap),tokens=lexer.tokenize(code,options),options.referencedVars=function(){var i,len,results;for(results=[],i=0,len=tokens.length;i"),line=frame.getLineNumber(),column=frame.getColumnNumber(),source=getSourceMapping(filename,line,column),fileLocation=source?"".concat(filename,":").concat(source[0],":").concat(source[1]):"".concat(filename,":").concat(line,":").concat(column)),functionName=frame.getFunctionName(),isConstructor=frame.isConstructor(),isMethodCall=!(frame.isToplevel()||isConstructor),isMethodCall?(methodName=frame.getMethodName(),typeName=frame.getTypeName(),functionName?(tp=as="",typeName&&functionName.indexOf(typeName)&&(tp="".concat(typeName,".")),methodName&&functionName.indexOf(".".concat(methodName))!==functionName.length-methodName.length-1&&(as=" [as ".concat(methodName,"]")),"".concat(tp).concat(functionName).concat(as," (").concat(fileLocation,")")):"".concat(typeName,".").concat(methodName||""," (").concat(fileLocation,")")):isConstructor?"new ".concat(functionName||""," (").concat(fileLocation,")"):functionName?"".concat(functionName," (").concat(fileLocation,")"):fileLocation},getSourceMap=function(filename,line,column){var answer,i,map,ref,ref1,sourceLocation;if(!(""===filename||(ref=filename.slice(filename.lastIndexOf(".")),0<=indexOf.call(FILE_EXTENSIONS,ref))))return null;if(""!==filename&&null!=sourceMaps[filename])return sourceMaps[filename][sourceMaps[filename].length-1];if(null!=sourceMaps[""])for(ref1=sourceMaps[""],i=ref1.length-1;0<=i;i+=-1)if(map=ref1[i],sourceLocation=map.sourceLocation([line-1,column-1]),null!=(null==sourceLocation?void 0:sourceLocation[0])&&null!=sourceLocation[1])return map;return null==sources[filename]?null:(answer=compile(sources[filename][sources[filename].length-1],{filename:filename,sourceMap:!0,literate:helpers.isLiterate(filename)}),answer.sourceMap)},Error.prepareStackTrace=function(err,stack){var frame,frames,getSourceMapping;return getSourceMapping=function(filename,line,column){var answer,sourceMap;return sourceMap=getSourceMap(filename,line,column),null!=sourceMap&&(answer=sourceMap.sourceLocation([line-1,column-1])),null==answer?null:[answer[0]+1,answer[1]+1]},frames=function(){var i,len,results;for(results=[],i=0,len=stack.length;i5&&t<2015&&(t+=2009),i[n]=t}else i[n]=e&&D(e,n)?e[n]:t[n];else i[n]=t[n];return i}function a(){}function s(){return!1}function u(){return!0}function c(){return this}function l(){return null}var f=function(){function e(e,o,a){var s,u=[],c=[];function l(){var l=o(e[s],s),f=l instanceof r;return f&&(l=l.v),l instanceof n?(l=l.v)instanceof i?c.push.apply(c,a?l.v.slice().reverse():l.v):c.push(l):l!==t&&(l instanceof i?u.push.apply(u,a?l.v.slice().reverse():l.v):u.push(l)),f}if(Array.isArray(e))if(a){for(s=e.length;--s>=0&&!l(););u.reverse(),c.reverse()}else for(s=0;s=0;)e[n]===t&&e.splice(n,1)}function h(e,t){if(e.length<2)return e.slice();return function e(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),o=n.slice(i);return function(e,n){for(var i=[],r=0,o=0,a=0;r!?|~^")),R=/[0-9a-f]/i,w=/^0x[0-9a-f]+$/i,x=/^0[0-7]+$/,N=/^0o[0-7]+$/i,k=/^0b[01]+$/i,I=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,L=/^(0[xob])?[0-9a-f]+n$/i,P=E(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),V=E(n("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),B=E(n("\n\r\u2028\u2029")),K=E(n(";]),:")),U=E(n("[{(,;:")),G=E(n("[]{}(),;:")),H={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function X(e,t){if(z(e.charCodeAt(t))){if(W(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(W(e.charCodeAt(t))&&z(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function z(e){return e>=55296&&e<=56319}function W(e){return e>=56320&&e<=57343}function Y(e){return e>=48&&e<=57}function q(e){return H.ID_Start.test(e)}function $(e){return H.ID_Continue.test(e)}function j(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Z(e,t){if(/^[a-z_$][a-z0-9_$]*$/i.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var n=H.ID_Start.exec(e);return!(!n||0!==n.index)&&(!(e=e.slice(n[0].length))||!!(n=H.ID_Continue.exec(e))&&n[0].length===e.length)}function J(e,t=!0){if(!t&&e.includes("e"))return NaN;if(w.test(e))return parseInt(e.substr(2),16);if(x.test(e))return parseInt(e.substr(1),8);if(N.test(e))return parseInt(e.substr(2),8);if(k.test(e))return parseInt(e.substr(2),2);if(I.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}class Q extends Error{constructor(e,t,n,i,r){super(),this.name="SyntaxError",this.message=e,this.filename=t,this.line=n,this.col=i,this.pos=r}}function ee(e,t,n,i,r){throw new Q(e,t,n,i,r)}function te(e,t,n){return e.type==t&&(null==n||e.value==n)}var ne={};function ie(e,t,n,i){var r={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return X(r.text,r.pos)}function a(e,t){var n=X(r.text,r.pos++);if(e&&!n)throw ne;return B.has(n)?(r.newline_before=r.newline_before||!t,++r.line,r.col=0,"\r"==n&&"\n"==o()&&(++r.pos,n="\n")):(n.length>1&&(++r.pos,++r.col),++r.col),n}function s(e){for(;e--;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,t){var n=r.text.indexOf(e,r.pos);if(t&&-1==n)throw ne;return n}function l(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var f=!1,p=null;function _(n,i,o){r.regex_allowed="operator"==n&&!oe.has(i)||"keyword"==n&&F.has(i)||"punc"==n&&U.has(i)||"arrow"==n,"punc"==n&&"."==i?f=!0:o||(f=!1);var a={type:n,value:i,line:r.tokline,col:r.tokcol,pos:r.tokpos,endline:r.line,endcol:r.col,endpos:r.pos,nlb:r.newline_before,file:t};return/^(?:num|string|regexp)$/i.test(n)&&(a.raw=e.substring(a.pos,a.endpos)),o||(a.comments_before=r.comments_before,a.comments_after=r.comments_before=[]),r.newline_before=!1,a=new fe(a),o||(p=a),a}function d(){for(;V.has(o());)a()}function m(e){ee(e,t,r.tokline,r.tokcol,r.tokpos)}function h(e){var t=!1,n=!1,i=!1,r="."==e,s=!1,u=function(e){for(var t,n="",i=0;(t=o())&&e(t,i++);)n+=a();return n}((function(o,a){if(s)return!1;switch(o.charCodeAt(0)){case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!t&&(t=n=!0);case 45:return n||0==a&&!e;case 43:return n;case n=!1,46:return!(r||i||t)&&(r=!0)}return"n"===o?(s=!0,!0):R.test(o)}));if(e&&(u=e+u),x.test(u)&&H.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode"),u.endsWith("n")){const e=u.slice(0,-1),t=J(e,w.test(e));if(!r&&L.test(u)&&!isNaN(t))return _("big_int",e);m("Invalid or unexpected token")}var c=J(u);if(!isNaN(c))return _("num",c);m("Invalid syntax: "+u)}function E(e){return e>="0"&&e<="7"}function g(e,t,n){var i,s=a(!0,e);switch(s.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(D(2,t));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,l=c("}",!0)-r.pos;return(l>6||(u=D(l,t))>1114111)&&m("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(D(4,t));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}if(E(s)){if(n&&t){"0"===s&&!E(o())||m("Octal escape sequences are not allowed in template strings")}return function(e,t){var n=o();n>="0"&&n<="7"&&(e+=a(!0))[0]<="3"&&(n=o())>="0"&&n<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&H.has_directive("use strict")&&t&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,t)}return s}function D(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(o(),16)))return parseInt(n,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),n+=i}return parseInt(n,16)}var S=K("Unterminated string constant",(function(){for(var e=a(),t="";;){var n=a(!0,!0);if("\\"==n)n=g(!0,!0);else if("\r"==n||"\n"==n)m("Unterminated string constant");else if(n==e)break;t+=n}var i=_("string",t);return i.quote=e,i})),v=K("Unterminated template",(function(e){e&&r.template_braces.push(r.brace_counter);var t,n,i="",s="";for(a(!0,!0);"`"!=(t=a(!0,!0));){if("\r"==t)"\n"==o()&&++r.pos,t="\n";else if("$"==t&&"{"==o())return a(!0,!0),r.brace_counter++,(n=_(e?"template_head":"template_substitution",i)).raw=s,n;if(s+=t,"\\"==t){var u=r.pos;t=g(!0,!(p&&("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value))),!0),s+=r.text.substr(u,r.pos-u)}i+=t}return r.template_braces.pop(),(n=_(e?"template_head":"template_substitution",i)).raw=s,n.end=!0,n}));function A(e){var t,n=r.regex_allowed,i=function(){for(var e=r.text,t=r.pos,n=r.text.length;t"===o()?(a(),_("arrow","=>")):k("=");case 96:return v(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return v(!1)}if(Y(c))return h();if(G.has(t))return _("punc",a());if(M.has(t))return k();if(92==c||q(t))return E=void 0,E=y(),f?_("name",E):C.has(E)?_("atom",E):b.has(E)?P.has(E)?_("operator",E):_("keyword",E):_("name",E);break}var E;m("Unexpected character '"+t+"'")}return H.next=a,H.peek=o,H.context=function(e){return e&&(r=e),r},H.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},H.push_directives_stack=function(){r.directive_stack.push([])},H.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],t=0;t0},H}var re=E(["typeof","void","delete","--","++","!","~","-","+"]),oe=E(["--","++"]),ae=E(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),se=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ue=E(["atom","num","big_int","string","regexp","name"]);function ce(e,t){const n=new Map;t=o(t,{bare_returns:!1,ecma:2017,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var i={input:"string"==typeof e?ie(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function r(e,t){return te(i.token,e,t)}function a(){return i.peeked||(i.peeked=i.input())}function s(){return i.prev=i.token,i.peeked||a(),i.token=i.peeked,i.peeked=null,i.in_directives=i.in_directives&&("string"==i.token.type||r("punc",";")),i.token}function u(){return i.prev}function c(e,t,n,r){var o=i.input.context();ee(e,o.filename,null!=t?t:o.tokline,null!=n?n:o.tokcol,null!=r?r:o.tokpos)}function l(e,t){c(t,e.line,e.col)}function f(e){null==e&&(e=i.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(r(e,t))return s();l(i.token,"Unexpected token "+i.token.type+" «"+i.token.value+"», expected "+e+" «"+t+"»")}function _(e){return p("punc",e)}function d(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function m(){return!t.strict&&(r("eof")||r("punc","}")||d(i.token))}function h(){return i.in_generator===i.in_function}function E(){return i.in_async===i.in_function}function g(e){r("punc",";")?s():e||m()||f()}function D(){_("(");var e=qe(!0);return _(")"),e}function S(e){return function(...t){const n=i.token,r=e(...t);return r.start=n,r.end=u(),r}}function v(){(r("operator","/")||r("operator","/="))&&(i.peeked=null,i.token=i.input(i.token.value.substr(1)))}i.token=s();var A=S((function(e,n,o){switch(v(),i.token.type){case"string":if(i.in_directives){var h=a();!i.token.raw.includes("\\")&&(te(h,"punc",";")||te(h,"punc","}")||d(h)||te(h,"eof"))?i.input.add_directive(i.token.value):i.in_directives=!1}var S=i.in_directives,y=T();return S&&y.body instanceof fn?new me(y.body):y;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return T();case"name":if("async"==i.token.value&&te(a(),"keyword","function"))return s(),s(),n&&c("functions are not allowed as the body of a loop"),F(Be,!1,!0,e);if("import"==i.token.value&&!te(a(),"punc","(")){s();var C=function(){var e,t,n=u();r("name")&&(e=le(en));r("punc",",")&&s();((t=J(!0))||e)&&p("name","from");var o=i.token;"string"!==o.type&&f();return s(),new _t({start:n,imported_name:e,imported_names:t,module_name:new fn({start:o,value:o.value,quote:o.quote,end:o}),end:i.token})}();return g(),C}return te(a(),"punc",":")?function(){var e=le(nn);"await"===e.name&&E()&&l(i.prev,"await cannot be used as label inside async function");i.labels.some(t=>t.name===e.name)&&c("Label "+e.name+" defined twice");_(":"),i.labels.push(e);var t=A();i.labels.pop(),t instanceof ye||e.references.forEach((function(t){t instanceof je&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))}));return new Te({body:t,label:e})}():T();case"punc":switch(i.token.value){case"{":return new Se({start:i.token,body:N(),end:u()});case"[":case"(":return T();case";":return i.in_directives=!1,s(),new ve;default:f()}case"keyword":switch(i.token.value){case"break":return s(),b($e);case"continue":return s(),b(je);case"debugger":return s(),g(),new de;case"do":s();var O=tt(A);p("keyword","while");var M=D();return g(!0),new Ce({body:O,condition:M});case"while":return s(),new Oe({condition:D(),body:tt((function(){return A(!1,!0)}))});case"for":return s(),function(){var e="`for await` invalid in this context",t=i.token;"name"==t.type&&"await"==t.value?(E()||l(t,e),s()):t=!1;_("(");var n=null;if(r("punc",";"))t&&l(t,e);else{n=r("keyword","var")?(s(),L(!0)):r("keyword","let")?(s(),P(!0)):r("keyword","const")?(s(),V(!0)):qe(!0,!0);var o=r("operator","in"),a=r("name","of");if(t&&!a&&l(t,e),o||a)return n instanceof st?n.definitions.length>1&&l(n.start,"Only one variable declaration allowed in for..in loop"):xe(n)||(n=Xe(n))instanceof Ke||l(n.start,"Invalid left-hand side in for..in loop"),s(),o?function(e){var t=qe(!0);return _(")"),new Me({init:e,object:t,body:tt((function(){return A(!1,!0)}))})}(n):function(e,t){var n=e instanceof st?e.definitions[0].name:null,i=qe(!0);return _(")"),new Re({await:t,init:e,name:n,object:i,body:tt((function(){return A(!1,!0)}))})}(n,!!t)}return function(e){_(";");var t=r("punc",";")?null:qe(!0);_(";");var n=r("punc",")")?null:qe(!0);return _(")"),new Fe({init:e,condition:t,step:n,body:tt((function(){return A(!1,!0)}))})}(n)}();case"class":return s(),n&&c("classes are not allowed as the body of a loop"),o&&c("classes are not allowed as the body of an if"),q(Pt);case"function":return s(),n&&c("functions are not allowed as the body of a loop"),F(Be,!1,!1,e);case"if":return s(),function(){var e=D(),t=A(!1,!1,!0),n=null;r("keyword","else")&&(s(),n=A(!1,!1,!0));return new Qe({condition:e,body:t,alternative:n})}();case"return":0!=i.in_function||t.bare_returns||c("'return' outside of function"),s();var w=null;return r("punc",";")?s():m()||(w=qe(!0),g()),new We({value:w});case"switch":return s(),new et({expression:D(),body:tt(k)});case"throw":s(),d(i.token)&&c("Illegal newline after 'throw'");w=qe(!0);return g(),new Ye({value:w});case"try":return s(),function(){var e=N(),t=null,n=null;if(r("keyword","catch")){var o=i.token;if(s(),r("punc","{"))var a=null;else{_("(");a=R(void 0,Qt);_(")")}t=new ot({start:o,argname:a,body:N(),end:u()})}if(r("keyword","finally")){o=i.token;s(),n=new at({start:o,body:N(),end:u()})}t||n||c("Missing catch/finally blocks");return new rt({body:e,bcatch:t,bfinally:n})}();case"var":s();C=L();return g(),C;case"let":s();C=P();return g(),C;case"const":s();C=V();return g(),C;case"with":return i.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),s(),new we({expression:D(),body:A()});case"export":if(!te(a(),"punc","(")){s();C=function(){var e,t,n,o,c,l=i.token;if(r("keyword","default"))e=!0,s();else if(t=J(!1)){if(r("name","from")){s();var p=i.token;return"string"!==p.type&&f(),s(),new dt({start:l,is_default:e,exported_names:t,module_name:new fn({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new dt({start:l,is_default:e,exported_names:t,end:u()})}r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&te(a(),"punc")?(o=qe(!1),g()):(n=A(e))instanceof st&&e?f(n.start):n instanceof st||n instanceof Ie||n instanceof Pt?c=n:n instanceof he?o=n.body:f(n.start);return new dt({start:l,is_default:e,exported_value:o,exported_definition:c,end:u()})}();return r("punc",";")&&g(),C}}}f()}));function T(e){return new he({body:(e=qe(!0),g(),e)})}function b(e){var t,n=null;m()||(n=le(sn,!0)),null!=n?((t=i.labels.find(e=>e.name===n.name))||c("Undefined label "+n.name),n.thedef=t):0==i.in_loop&&c(e.TYPE+" not inside a loop or switch"),g();var r=new e({label:n});return t&&t.references.push(r),r}var C=function(e,t,n){d(i.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=x(r("punc","{"),!1,n),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new Ve({start:e,end:a,async:n,argnames:t,body:o})},F=function(e,t,n,i){var o=e===Be,a=r("operator","*");a&&s();var c=r("name")?le(o?Yt:jt):null;o&&!c&&(i?e=Pe:f()),!c||e===Le||c instanceof Ut||f(u());var l=[],p=x(!0,a||t,n,c,l);return new e({start:l.start,end:p.end,is_generator:a,async:n,name:c,argnames:l,body:p})};function M(e,t){var n=new Set,i=!1,r=!1,o=!1,a=!!t,s={add_parameter:function(t){if(n.has(t.value))!1===i&&(i=t),s.check_strict();else if(n.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":a&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:O.has(t.value)&&f()}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function(){a=!0},is_strict:function(){return!1!==r||!1!==o||a},check_strict:function(){s.is_strict()&&!1!==i&&l(i,"Parameter "+i.value+" was used already")}};return s}function R(e,t){var n,o=!1;return void 0===e&&(e=M(!0,i.input.has_directive("use strict"))),r("expand","...")&&(o=i.token,e.mark_spread(i.token),s()),n=w(e,t),r("operator","=")&&!1===o&&(e.mark_default_assignment(i.token),s(),n=new Ot({start:n.start,left:n,operator:"=",right:qe(!1),end:i.token})),!1!==o&&(r("punc",")")||f(),n=new ke({start:o,expression:n,end:o})),e.check_strict(),n}function w(e,t){var n,o=[],l=!0,p=!1,d=i.token;if(void 0===e&&(e=M(!1,i.input.has_directive("use strict"))),t=void 0===t?Wt:t,r("punc","[")){for(s();!r("punc","]");){if(l?l=!1:_(","),r("expand","...")&&(p=!0,n=i.token,e.mark_spread(i.token),s()),r("punc"))switch(i.token.value){case",":o.push(new Dn({start:i.token,end:i.token}));continue;case"]":break;case"[":case"{":o.push(w(e,t));break;default:f()}else r("name")?(e.add_parameter(i.token),o.push(le(t))):c("Invalid function parameter");r("operator","=")&&!1===p&&(e.mark_default_assignment(i.token),s(),o[o.length-1]=new Ot({start:o[o.length-1].start,left:o[o.length-1],operator:"=",right:qe(!1),end:i.token})),p&&(r("punc","]")||c("Rest element must be last element"),o[o.length-1]=new ke({start:n,expression:o[o.length-1],end:n}))}return _("]"),e.check_strict(),new Ke({start:d,names:o,is_array:!0,end:u()})}if(r("punc","{")){for(s();!r("punc","}");){if(l?l=!1:_(","),r("expand","...")&&(p=!0,n=i.token,e.mark_spread(i.token),s()),r("name")&&(te(a(),"punc")||te(a(),"operator"))&&[",","}","="].includes(a().value)){e.add_parameter(i.token);var m=u(),h=le(t);p?o.push(new ke({start:n,expression:h,end:h.end})):o.push(new wt({start:m,key:h.name,value:h,end:h.end}))}else{if(r("punc","}"))continue;var E=i.token,g=Q();null===g?f(u()):"name"!==u().type||r("punc",":")?(_(":"),o.push(new wt({start:E,quote:E.quote,key:g,value:w(e,t),end:u()}))):o.push(new wt({start:u(),key:g,value:new t({start:u(),name:g,end:u()}),end:u()}))}p?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(i.token),s(),o[o.length-1].value=new Ot({start:o[o.length-1].value.start,left:o[o.length-1].value,operator:"=",right:qe(!1),end:i.token}))}return _("}"),e.check_strict(),new Ke({start:d,names:o,is_array:!1,end:u()})}if(r("name"))return e.add_parameter(i.token),le(t);c("Invalid function parameter")}function x(e,n,o,a,u){var c=i.in_loop,l=i.labels,p=i.in_generator,d=i.in_async;if(++i.in_function,n&&(i.in_generator=i.in_function),o&&(i.in_async=i.in_function),u&&function(e){var n=M(!0,i.input.has_directive("use strict"));for(_("(");!r("punc",")");){var o=R(n);if(e.push(o),r("punc",")")||(_(","),r("punc",")")&&t.ecma<2017&&f()),o instanceof ke)break}s()}(u),e&&(i.in_directives=!0),i.in_loop=0,i.labels=[],e){i.input.push_directives_stack();var m=N();a&&ce(a),u&&u.forEach(ce),i.input.pop_directives_stack()}else m=[new We({start:i.token,value:qe(!1),end:i.token})];return--i.in_function,i.in_loop=c,i.labels=l,i.in_generator=p,i.in_async=d,m}function N(){_("{");for(var e=[];!r("punc","}");)r("eof")&&f(),e.push(A());return s(),e}function k(){_("{");for(var e,t=[],n=null,o=null;!r("punc","}");)r("eof")&&f(),r("keyword","case")?(o&&(o.end=u()),n=[],o=new it({start:(e=i.token,s(),e),expression:qe(!0),body:n}),t.push(o),_(":")):r("keyword","default")?(o&&(o.end=u()),n=[],o=new nt({start:(e=i.token,s(),_(":"),e),body:n}),t.push(o)):(n||f(),n.push(A()));return o&&(o.end=u()),s(),t}function I(e,t){for(var n,o=[];;){var a="var"===t?Gt:"const"===t?Xt:"let"===t?zt:null;if(r("punc","{")||r("punc","[")?n=new ft({start:i.token,name:w(void 0,a),value:r("operator","=")?(p("operator","="),qe(!1,e)):null,end:u()}):"import"==(n=new ft({start:i.token,name:le(a),value:r("operator","=")?(s(),qe(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(n),!r("punc",","))break;s()}return o}var L=function(e){return new ut({start:u(),definitions:I(e,"var"),end:u()})},P=function(e){return new ct({start:u(),definitions:I(e,"let"),end:u()})},V=function(e){return new lt({start:u(),definitions:I(e,"const"),end:u()})};function B(){var e,t=i.token;switch(t.type){case"name":e=ne(rn);break;case"num":e=new pn({start:t,end:t,value:t.value});break;case"big_int":e=new _n({start:t,end:t,value:t.value});break;case"string":e=new fn({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new dn({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new An({start:t,end:t});break;case"true":e=new Tn({start:t,end:t});break;case"null":e=new hn({start:t,end:t})}}return s(),e}function U(e,t,n,i){var r=function(e,t){return t?new Ot({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof Mt?r(new Ke({start:e.start,end:e.end,is_array:!1,names:e.properties.map(U)}),i):e instanceof wt?(e.value=U(e.value,0,[e.key]),r(e,i)):e instanceof Dn?e:e instanceof Ke?(e.names=e.names.map(U),r(e,i)):e instanceof rn?r(new Wt({name:e.name,start:e.start,end:e.end}),i):e instanceof ke?(e.expression=U(e.expression),r(e,i)):e instanceof Ft?r(new Ke({start:e.start,end:e.end,is_array:!0,names:e.elements.map(U)}),i):e instanceof Ct?r(U(e.left,void 0,void 0,e.right),i):e instanceof Ot?(e.left=U(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var G=function(e,o){if(r("operator","new"))return function(e){var n=i.token;if(p("operator","new"),r("punc","."))return s(),p("name","target"),_e(new Kt({start:n,end:u()}),e);var o,a=G(!1);r("punc","(")?(s(),o=X(")",t.ecma>=2017)):o=[];var c=new ht({start:n,expression:a,args:o,end:u()});return fe(c),_e(c,e)}(e);var c,l=i.token,d=r("name","async")&&"["!=(c=a()).value&&"arrow"!=c.type&&B();if(r("punc")){switch(i.token.value){case"(":if(d&&!e)break;var m=function(e,n){var o,a,c,l=[];for(_("(");!r("punc",")");)o&&f(o),r("expand","...")?(o=i.token,n&&(a=i.token),s(),l.push(new ke({start:u(),expression:qe(),end:i.token}))):l.push(qe()),r("punc",")")||(_(","),r("punc",")")&&(t.ecma<2017&&f(),c=u(),n&&(a=c)));return _(")"),e&&r("arrow","=>")?o&&c&&f(c):a&&f(a),l}(o,!d);if(o&&r("arrow","=>"))return C(l,m.map(U),!!d);var h=d?new mt({expression:d,args:m}):1==m.length?m[0]:new Et({expressions:m});if(h.start){const e=l.comments_before.length;if(n.set(l,e),h.start.comments_before.unshift(...l.comments_before),l.comments_before=h.start.comments_before,0==e&&l.comments_before.length>0){var E=l.comments_before[0];E.nlb||(E.nlb=l.nlb,l.nlb=!1)}l.comments_after=h.start.comments_after}h.start=l;var g=u();return h.end&&(g.comments_before=h.end.comments_before,h.end.comments_after.push(...g.comments_after),g.comments_after=h.end.comments_after),h.end=g,h instanceof mt&&fe(h),_e(h,e);case"[":return _e(z(),e);case"{":return _e(Y(),e)}d||f()}if(o&&r("name")&&te(a(),"arrow")){var D=new Wt({name:i.token.value,start:l,end:l});return s(),C(l,[D],!!d)}if(r("keyword","function")){s();var S=F(Pe,!1,!!d);return S.start=l,S.end=u(),_e(S,e)}if(d)return _e(d,e);if(r("keyword","class")){s();var v=q(Vt);return v.start=l,v.end=u(),_e(v,e)}return r("template_head")?_e(H(),e):ue.has(i.token.type)?_e(B(),e):void f()};function H(){var e=[],t=i.token;for(e.push(new He({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}));!i.token.end;)s(),v(),e.push(qe(!0)),te("template_substitution")||f(),e.push(new He({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}));return s(),new Ge({start:t,segments:e,end:i.token})}function X(e,t,n){for(var o=!0,a=[];!r("punc",e)&&(o?o=!1:_(","),!t||!r("punc",e));)r("punc",",")&&n?a.push(new Dn({start:i.token,end:i.token})):r("expand","...")?(s(),a.push(new ke({start:u(),expression:qe(),end:i.token}))):a.push(qe(!1));return s(),a}var z=S((function(){return _("["),new Ft({elements:X("]",!t.strict,!0)})})),W=S((e,t)=>F(Le,e,t)),Y=S((function(){var e=i.token,n=!0,o=[];for(_("{");!r("punc","}")&&(n?n=!1:_(","),t.strict||!r("punc","}"));)if("expand"!=(e=i.token).type){var a,c=Q();if(r("punc",":"))null===c?f(u()):(s(),a=qe(!1));else{var l=$(c,e);if(l){o.push(l);continue}a=new rn({start:u(),name:c,end:u()})}r("operator","=")&&(s(),a=new Ct({start:e,left:a,operator:"=",right:qe(!1),end:u()})),o.push(new wt({start:e,quote:e.quote,key:c instanceof pe?c:""+c,value:a,end:u()}))}else s(),o.push(new ke({start:e,expression:qe(!1),end:u()}));return s(),new Mt({properties:o})}));function q(e){var t,n,o,a,c=[];for(i.input.push_directives_stack(),i.input.add_directive("use strict"),"name"==i.token.type&&"extends"!=i.token.value&&(o=le(e===Pt?Zt:Jt)),e!==Pt||o||f(),"extends"==i.token.value&&(s(),a=qe(!0)),_("{");r("punc",";");)s();for(;!r("punc","}");)for(t=i.token,(n=$(Q(),t,!0))||f(),c.push(n);r("punc",";");)s();return i.input.pop_directives_stack(),s(),new e({start:t,name:o,extends:a,properties:c,end:u()})}function $(e,t,n){var o=function(e,t){return"string"==typeof e||"number"==typeof e?new qt({start:t,name:""+e,end:u()}):(null===e&&f(),e)};var a=!1,c=!1,l=!1,p=t;if(n&&"static"===e&&!r("punc","(")&&(c=!0,p=i.token,e=Q()),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||r("operator","=")||(a=!0,p=i.token,e=Q()),null===e&&(l=!0,p=i.token,null===(e=Q())&&f()),r("punc","("))return e=o(e,t),new kt({start:t,static:c,is_generator:l,async:a,key:e,quote:e instanceof qt?p.quote:void 0,value:W(l,a),end:u()});const _=i.token;if("get"==e){if(!r("punc")||r("punc","["))return e=o(Q(),t),new Nt({start:t,static:c,key:e,quote:e instanceof qt?_.quote:void 0,value:W(),end:u()})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=o(Q(),t),new xt({start:t,static:c,key:e,quote:e instanceof qt?_.quote:void 0,value:W(),end:u()});if(n){const n=(e=>"string"==typeof e||"number"==typeof e?new $t({start:p,end:p,name:""+e}):(null===e&&f(),e))(e),i=n instanceof $t?p.quote:void 0;if(r("operator","="))return s(),new Lt({start:t,static:c,quote:i,key:n,value:qe(!1),end:u()});if(r("name")||r("punc",";")||r("punc","}"))return new Lt({start:t,static:c,quote:i,key:n,end:u()})}}function j(e){function t(e){return new e({name:Q(),start:u(),end:u()})}var n,o,a=e?tn:an,c=e?en:on,l=i.token;return e?n=t(a):o=t(c),r("name","as")?(s(),e?o=t(c):n=t(a)):e?o=new c(n):n=new a(o),new pt({start:l,foreign_name:n,name:o,end:u()})}function Z(e,t){var n,r=e?tn:an,o=e?en:on,a=i.token,s=u();return t=t||new o({name:"*",start:a,end:s}),n=new r({name:"*",start:a,end:s}),new pt({start:a,foreign_name:n,name:t,end:s})}function J(e){var t;if(r("punc","{")){for(s(),t=[];!r("punc","}");)t.push(j(e)),r("punc",",")&&s();s()}else if(r("operator","*")){var n;s(),e&&r("name","as")&&(s(),n=le(e?en:an)),t=[Z(e,n)]}return t}function Q(){var e=i.token;switch(e.type){case"punc":if("["===e.value){s();var t=qe(!1);return _("]"),t}f(e);case"operator":if("*"===e.value)return s(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||f(e);case"name":"yield"==e.value&&(h()?l(e,"Yield cannot be used as identifier inside generators"):te(a(),"punc",":")||te(a(),"punc","(")||!i.input.has_directive("use strict")||l(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"big_int":case"keyword":case"atom":return s(),e.value;default:f(e)}}function ne(e){var t=i.token.value;return new("this"==t?un:"super"==t?cn:e)({name:String(t),start:i.token,end:i.token})}function ce(e){var t=e.name;h()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),i.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Ut&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function le(e,t){if(!r("name"))return t||c("Name expected"),null;var n=ne(e);return ce(n),s(),n}function fe(e){var t=e.start,i=t.comments_before;const r=n.get(t);for(var o=null!=r?r:i.length;--o>=0;){var a=i[o];if(/[@#]__/.test(a.value)){if(/[@#]__PURE__/.test(a.value)){y(e,Mn);break}if(/[@#]__INLINE__/.test(a.value)){y(e,Rn);break}if(/[@#]__NOINLINE__/.test(a.value)){y(e,wn);break}}}}var _e=function(e,t){var n,o=e.start;if(r("punc","."))return s(),_e(new Dt({start:o,expression:e,property:(n=i.token,"name"!=n.type&&f(),s(),n.value),end:u()}),t);if(r("punc","[")){s();var a=qe(!0);return _("]"),_e(new St({start:o,expression:e,property:a,end:u()}),t)}if(t&&r("punc","(")){s();var c=new mt({start:o,expression:e,args:Ee(),end:u()});return fe(c),_e(c,!0)}return r("template_head")?_e(new Ue({start:o,prefix:e,template_string:H(),end:u()}),t):e};function Ee(){for(var e=[];!r("punc",")");)r("expand","...")?(s(),e.push(new ke({start:u(),expression:qe(!1),end:u()}))):e.push(qe(!1)),r("punc",")")||(_(","),r("punc",")")&&t.ecma<2017&&f());return s(),e}var ge=function(e,t){var n=i.token;if("name"==n.type&&"await"==n.value){if(E())return s(),E()||c("Unexpected await expression outside async function",i.prev.line,i.prev.col,i.prev.pos),new Ze({start:u(),end:i.token,expression:ge(!0)});i.input.has_directive("use strict")&&l(i.token,"Unexpected await identifier inside strict mode")}if(r("operator")&&re.has(n.value)){s(),v();var o=De(At,n,ge(e));return o.start=n,o.end=u(),o}for(var a=G(e,t);r("operator")&&oe.has(i.token.value)&&!d(i.token);)a instanceof Ve&&f(),(a=De(Tt,i.token,a)).start=n,a.end=i.token,s();return a};function De(e,t,n){var r=t.value;switch(r){case"++":case"--":xe(n)||c("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof rn&&i.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:r,expression:n})}var Ae=function(e,t,n){var o=r("operator")?i.token.value:null;"in"==o&&n&&(o=null),"**"==o&&e instanceof At&&!te(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&f(e.start);var a=null!=o?se[o]:null;if(null!=a&&(a>t||"**"===o&&t===a)){s();var u=Ae(ge(!0),a,n);return Ae(new yt({start:e.start,left:e,operator:o,right:u,end:u.end}),t,n)}return e};var be=function(e){var t=i.token,n=function(e){return Ae(ge(!0,!0),0,e)}(e);if(r("operator","?")){s();var o=qe(!1);return _(":"),new bt({start:t,condition:n,consequent:o,alternative:qe(!1,e),end:u()})}return n};function xe(e){return e instanceof gt||e instanceof rn}function Xe(e){if(e instanceof Mt)e=new Ke({start:e.start,names:e.properties.map(Xe),is_array:!1,end:e.end});else if(e instanceof Ft){for(var t=[],n=0;n=0;)o+="this."+t[a]+" = props."+t[a]+";";const s=i&&Object.create(i.prototype);(s&&s.initialize||n&&n.initialize)&&(o+="this.initialize();"),o+="}",o+="this.flags = 0;",o+="}";var u=new Function(o)();if(s&&(u.prototype=s,u.BASE=i),i&&i.SUBCLASSES.push(u),u.prototype.CTOR=u,u.prototype.constructor=u,u.PROPS=t||null,u.SELF_PROPS=r,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(a in n)D(n,a)&&("$"===a[0]?u[a.substr(1)]=n[a]:u.prototype[a]=n[a]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},u}var fe=le("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw quote end",{},null),pe=le("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new Fn((function(e){if(e!==t)return e.clone(!0)})))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null);pe.warn_function=null,pe.warn=function(e,t){pe.warn_function&&pe.warn_function(d(e,t))};var _e=le("Statement",null,{$documentation:"Base class of all statements"}),de=le("Debugger",null,{$documentation:"Represents a debugger statement"},_e),me=le("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},_e),he=le("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,(function(){this.body._walk(e)}))},_children_backwards(e){e(this.body)}},_e);function Ee(e,t){const n=e.body;for(var i=0,r=n.length;i SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=new Map(this.variables)),this.functions&&(t.functions=new Map(this.functions)),this.enclosed&&(t.enclosed=this.enclosed.slice()),this._block_scope&&(t._block_scope=this._block_scope),t},pinned:function(){return this.uses_eval||this.uses_with}},De),Ne=le("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=ce(n)).transform(new Fn((function(e){if(e instanceof me&&"$ORIG"==e.value)return f.splice(t)})))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return ce(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Fn((function(e){if(e instanceof me&&"$ORIG"==e.value)return f.splice(n)})))}},xe),ke=le("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){return e._visit(this,(function(){this.expression.walk(e)}))},_children_backwards(e){e(this.expression)}}),Ie=le("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],t=0;t b)"},Ie),Be=le("Defun",null,{$documentation:"A function definition"},Ie),Ke=le("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,(function(){this.names.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols:function(){var e=[];return this.walk(new On((function(t){t instanceof Bt&&e.push(t)}))),e}}),Ue=le("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){return e._visit(this,(function(){this.prefix._walk(e),this.template_string._walk(e)}))},_children_backwards(e){e(this.template_string),e(this.prefix)}}),Ge=le("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,(function(){this.segments.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),He=le("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),Xe=le("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},_e),ze=le("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},Xe),We=le("Return",null,{$documentation:"A `return` statement"},ze),Ye=le("Throw",null,{$documentation:"A `throw` statement"},ze),qe=le("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},Xe),$e=le("Break",null,{$documentation:"A `break` statement"},qe),je=le("Continue",null,{$documentation:"A `continue` statement"},qe),Ze=le("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Je=le("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),Qe=le("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},Ae),et=le("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},De),tt=le("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},De),nt=le("Default",null,{$documentation:"A `default` switch branch"},tt),it=le("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},tt),rt=le("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,(function(){Ee(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(;t--;)e(this.body[t])}},De),ot=le("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,(function(){this.argname&&this.argname._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},De),at=le("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},De),st=le("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,(function(){for(var t=this.definitions,n=0,i=t.length;n a`"},yt),Ft=le("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,(function(){for(var t=this.elements,n=0,i=t.length;nt._walk(e))}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},xe),Lt=le("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(e){return e._visit(this,(function(){this.key instanceof pe&&this.key._walk(e),this.value instanceof pe&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof pe&&e(this.value),this.key instanceof pe&&e(this.key)},computed_key(){return!(this.key instanceof $t)}},Rt),Pt=le("DefClass",null,{$documentation:"A class definition"},It),Vt=le("ClassExpression",null,{$documentation:"A class expression."},It),Bt=le("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Kt=le("NewTarget",null,{$documentation:"A reference to new.target"}),Ut=le("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},Bt),Gt=le("SymbolVar",null,{$documentation:"Symbol defining a variable"},Ut),Ht=le("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Ut),Xt=le("SymbolConst",null,{$documentation:"A constant declaration"},Ht),zt=le("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},Ht),Wt=le("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},Gt),Yt=le("SymbolDefun",null,{$documentation:"Symbol defining a function"},Ut),qt=le("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},Bt),$t=le("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},Bt),jt=le("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Ut),Zt=le("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},Ht),Jt=le("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Ut),Qt=le("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},Ht),en=le("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},Ht),tn=le("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},Bt),nn=le("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Bt),rn=le("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Bt),on=le("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},rn),an=le("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},Bt),sn=le("LabelRef",null,{$documentation:"Reference to a label symbol"},Bt),un=le("This",null,{$documentation:"The `this` symbol"},Bt),cn=le("Super",null,{$documentation:"The `super` symbol"},un),ln=le("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),fn=le("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},ln),pn=le("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},ln),_n=le("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},ln),dn=le("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},ln),mn=le("Atom",null,{$documentation:"Base class for atoms"},ln),hn=le("Null",null,{$documentation:"The `null` atom",value:null},mn),En=le("NaN",null,{$documentation:"The impossible value",value:NaN},mn),gn=le("Undefined",null,{$documentation:"The `undefined` value",value:void 0},mn),Dn=le("Hole",null,{$documentation:"A hole in an array",value:void 0},mn),Sn=le("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},mn),vn=le("Boolean",null,{$documentation:"Base class for booleans"},mn),An=le("False",null,{$documentation:"The `false` atom",value:!1},vn),Tn=le("True",null,{$documentation:"The `true` atom",value:!0},vn);function yn(e,t,n=[e]){const i=n.push.bind(n);for(;n.length;){const e=n.pop(),r=t(e,n);if(r){if(r===Cn)return!0}else e._children_backwards(i)}return!1}function bn(e,t,n){const i=[e],r=i.push.bind(i),o=n?n.slice():[],a=[];let s;const u={parent:(e=0)=>-1===e?s:n&&e>=o.length?(e-=o.length,n[n.length-(e+1)]):o[o.length-(1+e)]};for(;i.length;){for(s=i.pop();a.length&&i.length==a[a.length-1];)o.pop(),a.pop();const e=t(s,u);if(e){if(e===Cn)return!0;continue}const n=i.length;s._children_backwards(r),i.length>n&&(o.push(s),a.push(n-1))}return!1}const Cn=Symbol("abort walk");class On{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:a);return!n&&t&&t.call(e),this.pop(),n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Ie?this.directives=Object.create(this.directives):e instanceof me&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof It&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Ie||e instanceof It)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,n=t.length;--n>=0;){var i=t[n];if(i instanceof e)return i}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof xe&&n.body)for(var i=0;i=0;){if((i=t[n])instanceof Te&&i.label.name==e.label.name)return i.body}else for(n=t.length;--n>=0;){var i;if((i=t[n])instanceof ye||e instanceof $e&&i instanceof et)return i}}}class Fn extends On{constructor(e,t){super(),this.before=e,this.after=t}}const Mn=1,Rn=2,wn=4;var xn=Object.freeze({__proto__:null,AST_Accessor:Le,AST_Array:Ft,AST_Arrow:Ve,AST_Assign:Ct,AST_Atom:mn,AST_Await:Ze,AST_BigInt:_n,AST_Binary:yt,AST_Block:De,AST_BlockStatement:Se,AST_Boolean:vn,AST_Break:$e,AST_Call:mt,AST_Case:it,AST_Catch:ot,AST_Class:It,AST_ClassExpression:Vt,AST_ClassProperty:Lt,AST_ConciseMethod:kt,AST_Conditional:bt,AST_Const:lt,AST_Constant:ln,AST_Continue:je,AST_Debugger:de,AST_Default:nt,AST_DefaultAssign:Ot,AST_DefClass:Pt,AST_Definitions:st,AST_Defun:Be,AST_Destructuring:Ke,AST_Directive:me,AST_Do:Ce,AST_Dot:Dt,AST_DWLoop:be,AST_EmptyStatement:ve,AST_Exit:ze,AST_Expansion:ke,AST_Export:dt,AST_False:An,AST_Finally:at,AST_For:Fe,AST_ForIn:Me,AST_ForOf:Re,AST_Function:Pe,AST_Hole:Dn,AST_If:Qe,AST_Import:_t,AST_Infinity:Sn,AST_IterationStatement:ye,AST_Jump:Xe,AST_Label:nn,AST_LabeledStatement:Te,AST_LabelRef:sn,AST_Lambda:Ie,AST_Let:ct,AST_LoopControl:qe,AST_NameMapping:pt,AST_NaN:En,AST_New:ht,AST_NewTarget:Kt,AST_Node:pe,AST_Null:hn,AST_Number:pn,AST_Object:Mt,AST_ObjectGetter:Nt,AST_ObjectKeyVal:wt,AST_ObjectProperty:Rt,AST_ObjectSetter:xt,AST_PrefixedTemplateString:Ue,AST_PropAccess:gt,AST_RegExp:dn,AST_Return:We,AST_Scope:xe,AST_Sequence:Et,AST_SimpleStatement:he,AST_Statement:_e,AST_StatementWithBody:Ae,AST_String:fn,AST_Sub:St,AST_Super:cn,AST_Switch:et,AST_SwitchBranch:tt,AST_Symbol:Bt,AST_SymbolBlockDeclaration:Ht,AST_SymbolCatch:Qt,AST_SymbolClass:Jt,AST_SymbolClassProperty:$t,AST_SymbolConst:Xt,AST_SymbolDeclaration:Ut,AST_SymbolDefClass:Zt,AST_SymbolDefun:Yt,AST_SymbolExport:on,AST_SymbolExportForeign:an,AST_SymbolFunarg:Wt,AST_SymbolImport:en,AST_SymbolImportForeign:tn,AST_SymbolLambda:jt,AST_SymbolLet:zt,AST_SymbolMethod:qt,AST_SymbolRef:rn,AST_SymbolVar:Gt,AST_TemplateSegment:He,AST_TemplateString:Ge,AST_This:un,AST_Throw:Ye,AST_Token:fe,AST_Toplevel:Ne,AST_True:Tn,AST_Try:rt,AST_Unary:vt,AST_UnaryPostfix:Tt,AST_UnaryPrefix:At,AST_Undefined:gn,AST_Var:ut,AST_VarDef:ft,AST_While:Oe,AST_With:we,AST_Yield:Je,TreeTransformer:Fn,TreeWalker:On,walk:yn,walk_abort:Cn,walk_body:Ee,walk_parent:bn,_INLINE:Rn,_NOINLINE:wn,_PURE:Mn});function Nn(e,t){e.DEFMETHOD("transform",(function(e,n){let i=void 0;if(e.push(this),e.before&&(i=e.before(this,t,n)),void 0===i&&(i=this,t(i,e),e.after)){const t=e.after(i,n);void 0!==t&&(i=t)}return e.pop(),i}))}function kn(e,t){return f(e,(function(e){return e.transform(t,!0)}))}function In(e){let t=e.parent(-1);for(let n,i=0;n=e.parent(i);i++){if(n instanceof _e&&n.body===t)return!0;if(!(n instanceof Et&&n.expressions[0]===t||"Call"===n.TYPE&&n.expression===t||n instanceof Ue&&n.prefix===t||n instanceof Dt&&n.expression===t||n instanceof St&&n.expression===t||n instanceof bt&&n.condition===t||n instanceof yt&&n.left===t||n instanceof Tt&&n.expression===t))return!1;t=n}}Nn(pe,a),Nn(Te,(function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)})),Nn(he,(function(e,t){e.body=e.body.transform(t)})),Nn(De,(function(e,t){e.body=kn(e.body,t)})),Nn(Ce,(function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),Nn(Oe,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),Nn(Fe,(function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),Nn(Me,(function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),Nn(we,(function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),Nn(ze,(function(e,t){e.value&&(e.value=e.value.transform(t))})),Nn(qe,(function(e,t){e.label&&(e.label=e.label.transform(t))})),Nn(Qe,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),Nn(et,(function(e,t){e.expression=e.expression.transform(t),e.body=kn(e.body,t)})),Nn(it,(function(e,t){e.expression=e.expression.transform(t),e.body=kn(e.body,t)})),Nn(rt,(function(e,t){e.body=kn(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),Nn(ot,(function(e,t){e.argname&&(e.argname=e.argname.transform(t)),e.body=kn(e.body,t)})),Nn(st,(function(e,t){e.definitions=kn(e.definitions,t)})),Nn(ft,(function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),Nn(Ke,(function(e,t){e.names=kn(e.names,t)})),Nn(Ie,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=kn(e.argnames,t),e.body instanceof pe?e.body=e.body.transform(t):e.body=kn(e.body,t)})),Nn(mt,(function(e,t){e.expression=e.expression.transform(t),e.args=kn(e.args,t)})),Nn(Et,(function(e,t){const n=kn(e.expressions,t);e.expressions=n.length?n:[new pn({value:0})]})),Nn(Dt,(function(e,t){e.expression=e.expression.transform(t)})),Nn(St,(function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),Nn(Je,(function(e,t){e.expression&&(e.expression=e.expression.transform(t))})),Nn(Ze,(function(e,t){e.expression=e.expression.transform(t)})),Nn(vt,(function(e,t){e.expression=e.expression.transform(t)})),Nn(yt,(function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)})),Nn(bt,(function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),Nn(Ft,(function(e,t){e.elements=kn(e.elements,t)})),Nn(Mt,(function(e,t){e.properties=kn(e.properties,t)})),Nn(Rt,(function(e,t){e.key instanceof pe&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),Nn(It,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=kn(e.properties,t)})),Nn(ke,(function(e,t){e.expression=e.expression.transform(t)})),Nn(pt,(function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),Nn(_t,(function(e,t){e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&kn(e.imported_names,t),e.module_name=e.module_name.transform(t)})),Nn(dt,(function(e,t){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&kn(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),Nn(Ge,(function(e,t){e.segments=kn(e.segments,t)})),Nn(Ue,(function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)}));const Ln=/^$|[;{][\s\n]*$/,Pn=/[@#]__(PURE|INLINE|NOINLINE)__/g;function Vn(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function Bn(e){var t=!e;void 0===(e=o(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var n=s;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var i=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,i-1),e.comments.substr(i+1))}n=t instanceof RegExp?function(e){return"comment5"!=e.type&&t.test(e.value)}:"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?Vn:u}var r=0,c=0,l=1,f=0,p="";let _=new Set;var d=e.ascii_only?function(t,n){return e.ecma>=2015&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(function(e){return"\\u{"+function(e,t){return z(e.charCodeAt(t))?65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320:e.charCodeAt(t)}(e,0).toString(16)+"}"}))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t}))}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,(function(e,t){return t?"\\u"+t.charCodeAt(0).toString(16):e}))};function m(t,n){var i=function(t,n){var i=0,r=0;function o(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function a(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,(function(n,o){switch(n){case'"':return++i,'"';case"'":return++r,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(X(t,o+1))?"\\x00":"\\0"}return n})),t=d(t),"`"===n)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return o();case 2:return a();case 3:return"'"==n?o():a();default:return i>r?o():a()}}(t,n);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),i}var h,g,D=!1,S=!1,v=!1,A=0,T=!1,y=!1,b=-1,C="",O=e.source_map&&[],F=O?function(){O.forEach((function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){null!=t.token.file&&pe.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}})),O=[]}:a,M=e.max_line_len?function(){if(c>e.max_line_len){if(A){var t=p.slice(0,A),n=p.slice(A);if(O){var i=n.length-c;O.forEach((function(e){e.line++,e.col+=i}))}p=t+"\n"+n,l++,f++,c=n.length}c>e.max_line_len&&pe.warn("Output exceeds {max_line_len} characters",e)}A&&(A=0,F())}:a,R=E("( [ + * / - , . `");function w(t){var n=X(t=String(t),0);T&&n&&(T=!1,"\n"!==n&&(w("\n"),N())),y&&n&&(y=!1,/[\s;})]/.test(n)||x()),b=-1;var i=C.charAt(C.length-1);v&&(v=!1,(":"!==i||"}"!==n)&&(n&&";}".includes(n)||";"===i)||(e.semicolons||R.has(n)?(p+=";",c++,f++):(M(),c>0&&(p+="\n",f++,l++,c=0),/^\s+$/.test(t)&&(v=!0)),e.beautify||(S=!1))),S&&(($(i)&&($(n)||"\\"==n)||"/"==n&&n==i||("+"==n||"-"==n)&&n==C)&&(p+=" ",c++,f++),S=!1),h&&(O.push({token:h,name:g,line:l,col:c}),h=!1,A||F()),p+=t,D="("==t[t.length-1],f+=t.length;var r=t.split(/\r?\n/),o=r.length-1;l+=o,c+=r[0].length,o>0&&(M(),c=r[o].length),C=t}var x=e.beautify?function(){w(" ")}:function(){S=!0},N=e.beautify?function(t){var n;e.beautify&&w((n=t?.5:0," ".repeat(e.indent_start+r-n*e.indent_level)))}:a,k=e.beautify?function(e,t){!0===e&&(e=V());var n=r;r=e;var i=t();return r=n,i}:function(e,t){return t()},I=e.beautify?function(){if(b<0)return w("\n");"\n"!=p[b]&&(p=p.slice(0,b)+"\n"+p.slice(b),f++,l++),b++}:e.max_line_len?function(){M(),A=p.length}:a,L=e.beautify?function(){w(";")}:function(){v=!0};function P(){v=!1,w(";")}function V(){return r+e.indent_level}function B(){return A&&M(),p}function K(){let e=p.length-1;for(;e>=0;){const t=p.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function U(t){return e.preserve_annotations||(t=t.replace(Pn," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}var G=[];return{get:B,toString:B,indent:N,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return r},current_width:function(){return c-r},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return D},newline:I,print:w,star:function(){w("*")},space:x,comma:function(){w(","),x()},colon:function(){w(":"),x()},last:function(){return C},semicolon:L,force_semicolon:P,to_utf8:d,print_name:function(e){w(function(e){return e=e.toString(),e=d(e,!0)}(e))},print_string:function(e,t,n){var i=m(e,t);!0!==n||i.includes("\\")||(Ln.test(p)||P(),P()),w(i)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return w(t.substr(1,t.length-2))},encode_string:m,next_indent:V,with_indent:k,with_block:function(e){var t;return w("{"),I(),k(V(),(function(){t=e()})),N(),w("}"),t},with_parens:function(e){w("(");var t=e();return w(")"),t},with_square:function(e){w("[");var t=e();return w("]"),t},add_mapping:O?function(e,t){h=e,g=t}:a,option:function(t){return e[t]},printed_comments:_,prepend_comments:t?a:function(t){var i=t.start;if(!i)return;var r=this.printed_comments;const o=t instanceof ze&&t.value;if(i.comments_before&&r.has(i.comments_before)){if(!o)return;i.comments_before=[]}var a=i.comments_before;if(a||(a=i.comments_before=[]),r.add(a),o){var s=new On((function(e){var t=s.parent();if(!(t instanceof ze||t instanceof yt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof bt&&t.condition===e||t instanceof Dt&&t.expression===e||t instanceof Et&&t.expressions[0]===e||t instanceof St&&t.expression===e||t instanceof Tt))return!0;if(e.start){var n=e.start.comments_before;n&&!r.has(n)&&(r.add(n),a=a.concat(n))}}));s.push(t),t.value.walk(s)}if(0==f){a.length>0&&e.shebang&&"comment5"===a[0].type&&!r.has(a[0])&&(w("#!"+a.shift().value+"\n"),N());var u=e.preamble;u&&w(u.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(a=a.filter(n,t).filter(e=>!r.has(e))).length){var c=K();a.forEach((function(e,t){if(r.add(e),c||(e.nlb?(w("\n"),N(),c=!0):t>0&&x()),/comment[134]/.test(e.type))(n=U(e.value))&&(w("//"+n+"\n"),N()),c=!0;else if("comment2"==e.type){var n;(n=U(e.value))&&w("/*"+n+"*/"),c=!1}})),c||(i.nlb?(w("\n"),N()):x())}},append_comments:t||n===s?a:function(e,t){var i=e.end;if(i){var r=this.printed_comments,o=i[t?"comments_before":"comments_after"];if(o&&!r.has(o)&&(e instanceof _e||o.every(e=>!/comment[134]/.test(e.type)))){r.add(o);var a=p.length;o.filter(n,e).forEach((function(e,n){if(!r.has(e))if(r.add(e),y=!1,T?(w("\n"),N(),T=!1):e.nlb&&(n>0||!K())?(w("\n"),N()):(n>0||!t)&&x(),/comment[134]/.test(e.type)){const t=U(e.value);t&&w("//"+t),T=!0}else if("comment2"==e.type){const t=U(e.value);t&&w("/*"+t+"*/"),y=!0}})),p.length>a&&(b=a)}}},line:function(){return l},col:function(){return c},pos:function(){return f},push_node:function(e){G.push(e)},pop_node:function(){return G.pop()},parent:function(e){return G[G.length-2-(e||0)]}}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach((function(e){t(e,n)})):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,i){var r=e.length-1;n.in_directive=i,e.forEach((function(e,i){!0!==n.in_directive||e instanceof me||e instanceof ve||e instanceof he&&e.body instanceof fn||(n.in_directive=!1),e instanceof ve||(n.indent(),e.print(n),i==r&&t||(n.newline(),t&&n.newline())),!0===n.in_directive&&e instanceof he&&e.body instanceof fn&&(n.in_directive=!1)})),n.in_directive=!1}function i(e,t){t.print("{"),t.with_indent(t.next_indent(),(function(){t.append_comments(e,!0)})),t.print("}")}function r(e,t,r){e.body.length>0?t.with_block((function(){n(e.body,!1,t,r)})):i(e,t)}function o(e,t,n){var i=!1;n&&(i=yn(e,e=>e instanceof xe||(e instanceof yt&&"in"==e.operator?Cn:void 0))),e.print(t,i)}function u(e,t,n){return n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.option("keep_numbers")?n.print(e):n.print(p(e)):(O.has(e)?n.option("ie8"):n.option("ecma")<2015?!j(e):!Z(e,!0))||t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e)}pe.DEFMETHOD("print",(function(e,t){var n=this,i=n._codegen;function r(){e.prepend_comments(n),n.add_source_map(e),i(n,e),e.append_comments(n)}n instanceof xe?e.active_scope=n:!e.use_asm&&n instanceof me&&"use asm"==n.value&&(e.use_asm=e.active_scope),e.push_node(n),t||n.needs_parens(e)?e.with_parens(r):r(),e.pop_node(),n===e.use_asm&&(e.use_asm=null)})),pe.DEFMETHOD("_print",pe.prototype.print),pe.DEFMETHOD("print_to_string",(function(e){var t=Bn(e);return this.print(t),t.get()})),t(pe,s),t(Pe,(function(e){if(!e.has_parens()&&In(e))return!0;var t;if(e.option("webkit")&&((t=e.parent())instanceof gt&&t.expression===this))return!0;if(e.option("wrap_iife")&&((t=e.parent())instanceof mt&&t.expression===this))return!0;if(e.option("wrap_func_args")&&((t=e.parent())instanceof mt&&t.args.includes(this)))return!0;return!1})),t(Ve,(function(e){var t=e.parent();return t instanceof gt&&t.expression===this})),t(Mt,(function(e){return!e.has_parens()&&In(e)})),t(Vt,In),t(vt,(function(e){var t=e.parent();return t instanceof gt&&t.expression===this||t instanceof mt&&t.expression===this||t instanceof yt&&"**"===t.operator&&this instanceof At&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(Ze,(function(e){var t=e.parent();return t instanceof gt&&t.expression===this||t instanceof mt&&t.expression===this||e.option("safari10")&&t instanceof At})),t(Et,(function(e){var t=e.parent();return t instanceof mt||t instanceof vt||t instanceof yt||t instanceof ft||t instanceof gt||t instanceof Ft||t instanceof Rt||t instanceof bt||t instanceof Ve||t instanceof Ot||t instanceof ke||t instanceof Re&&this===t.object||t instanceof Je||t instanceof dt})),t(yt,(function(e){var t=e.parent();if(t instanceof mt&&t.expression===this)return!0;if(t instanceof vt)return!0;if(t instanceof gt&&t.expression===this)return!0;if(t instanceof yt){const e=t.operator,n=this.operator;if("??"===n&&("||"===e||"&&"===e))return!0;const i=se[e],r=se[n];if(i>r||i==r&&(this===t.right||"**"==e))return!0}})),t(Je,(function(e){var t=e.parent();return t instanceof yt&&"="!==t.operator||(t instanceof mt&&t.expression===this||(t instanceof bt&&t.condition===this||(t instanceof vt||(t instanceof gt&&t.expression===this||void 0))))})),t(gt,(function(e){var t=e.parent();if(t instanceof ht&&t.expression===this)return yn(this,e=>e instanceof xe||(e instanceof mt?Cn:void 0))})),t(mt,(function(e){var t,n=e.parent();return!!(n instanceof ht&&n.expression===this||n instanceof dt&&n.is_default&&this.expression instanceof Pe)||this.expression instanceof Pe&&n instanceof gt&&n.expression===this&&(t=e.parent(1))instanceof Ct&&t.left===n})),t(ht,(function(e){var t=e.parent();if(0===this.args.length&&(t instanceof gt||t instanceof mt&&t.expression===this))return!0})),t(pn,(function(e){var t=e.parent();if(t instanceof gt&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(p(n)))return!0}})),t(_n,(function(e){var t=e.parent();if(t instanceof gt&&t.expression===this&&this.getValue().startsWith("-"))return!0})),t([Ct,bt],(function(e){var t=e.parent();return t instanceof vt||(t instanceof yt&&!(t instanceof Ct)||(t instanceof mt&&t.expression===this||(t instanceof bt&&t.condition===this||(t instanceof gt&&t.expression===this||(this instanceof Ct&&this.left instanceof Ke&&!1===this.left.is_array||void 0)))))})),e(me,(function(e,t){t.print_string(e.value,e.quote),t.semicolon()})),e(ke,(function(e,t){t.print("..."),e.expression.print(t)})),e(Ke,(function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach((function(e,i){i>0&&t.comma(),e.print(t),i==n-1&&e instanceof Dn&&t.comma()})),t.print(e.is_array?"]":"}")})),e(de,(function(e,t){t.print("debugger"),t.semicolon()})),Ae.DEFMETHOD("_do_print_body",(function(e){f(this.body,e)})),e(_e,(function(e,t){e.body.print(t),t.semicolon()})),e(Ne,(function(e,t){n(e.body,!0,t,!0),t.print("")})),e(Te,(function(e,t){e.label.print(t),t.colon(),e.body.print(t)})),e(he,(function(e,t){e.body.print(t),t.semicolon()})),e(Se,(function(e,t){r(e,t)})),e(ve,(function(e,t){t.semicolon()})),e(Ce,(function(e,t){t.print("do"),t.space(),_(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.semicolon()})),e(Oe,(function(e,t){t.print("while"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.space(),e._do_print_body(t)})),e(Fe,(function(e,t){t.print("for"),t.space(),t.with_parens((function(){e.init?(e.init instanceof st?e.init.print(t):o(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)})),t.space(),e._do_print_body(t)})),e(Me,(function(e,t){t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens((function(){e.init.print(t),t.space(),t.print(e instanceof Re?"of":"in"),t.space(),e.object.print(t)})),t.space(),e._do_print_body(t)})),e(we,(function(e,t){t.print("with"),t.space(),t.with_parens((function(){e.expression.print(t)})),t.space(),e._do_print_body(t)})),Ie.DEFMETHOD("_do_print",(function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space()),e.print("function"),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof Bt?n.name.print(e):t&&n.name instanceof pe&&e.with_square((function(){n.name.print(e)})),e.with_parens((function(){n.argnames.forEach((function(t,n){n&&e.comma(),t.print(e)}))})),e.space(),r(n,e,!0)})),e(Ie,(function(e,t){e._do_print(t)})),e(Ue,(function(e,t){var n=e.prefix,i=n instanceof Ie||n instanceof yt||n instanceof bt||n instanceof Et||n instanceof vt||n instanceof Dt&&n.expression instanceof Mt;i&&t.print("("),e.prefix.print(t),i&&t.print(")"),e.template_string.print(t)})),e(Ge,(function(e,t){var n=t.parent()instanceof Ue;t.print("`");for(var i=0;i"),e.space();const o=t.body[0];if(1===t.body.length&&o instanceof We){const t=o.value;t?!function e(t){return t instanceof Mt||(t instanceof Et?e(t.expressions[0]):"Call"===t.TYPE?e(t.expression):t instanceof Ue?e(t.prefix):t instanceof Dt||t instanceof St?e(t.expression):t instanceof bt?e(t.condition):t instanceof yt?e(t.left):t instanceof Tt&&e(t.expression))}(t)?t.print(e):(e.print("("),t.print(e),e.print(")")):e.print("{}")}else r(t,e);i&&e.print(")")})),ze.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space();const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon()})),e(We,(function(e,t){e._do_print(t,"return")})),e(Ye,(function(e,t){e._do_print(t,"throw")})),e(Je,(function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space(),e.expression.print(t))})),e(Ze,(function(e,t){t.print("await"),t.space();var n=e.expression,i=!(n instanceof mt||n instanceof rn||n instanceof gt||n instanceof vt||n instanceof ln);i&&t.print("("),e.expression.print(t),i&&t.print(")")})),qe.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()})),e($e,(function(e,t){e._do_print(t,"break")})),e(je,(function(e,t){e._do_print(t,"continue")})),e(Qe,(function(e,t){t.print("if"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.space(),e.alternative?(!function(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof Ce)return _(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Qe){if(!n.alternative)return void _(e.body,t);n=n.alternative}else{if(!(n instanceof Ae))break;n=n.body}f(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Qe?e.alternative.print(t):f(e.alternative,t)):e._do_print_body(t)})),e(et,(function(e,t){t.print("switch"),t.space(),t.with_parens((function(){e.expression.print(t)})),t.space();var n=e.body.length-1;n<0?i(e,t):t.with_block((function(){e.body.forEach((function(e,i){t.indent(!0),e.print(t),i0&&t.newline()}))}))})),tt.DEFMETHOD("_do_print_body",(function(e){e.newline(),this.body.forEach((function(t){e.indent(),t.print(e),e.newline()}))})),e(nt,(function(e,t){t.print("default:"),e._do_print_body(t)})),e(it,(function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(rt,(function(e,t){t.print("try"),t.space(),r(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))})),e(ot,(function(e,t){t.print("catch"),e.argname&&(t.space(),t.with_parens((function(){e.argname.print(t)}))),t.space(),r(e,t)})),e(at,(function(e,t){t.print("finally"),t.space(),r(e,t)})),st.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space(),this.definitions.forEach((function(t,n){n&&e.comma(),t.print(e)}));var n=e.parent();(!(n instanceof Fe||n instanceof Me)||n&&n.init!==this)&&e.semicolon()})),e(ct,(function(e,t){e._do_print(t,"let")})),e(ut,(function(e,t){e._do_print(t,"var")})),e(lt,(function(e,t){e._do_print(t,"const")})),e(_t,(function(e,t){t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach((function(n,i){t.space(),n.print(t),i0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)}))})),e(Et,(function(e,t){e._do_print(t)})),e(Dt,(function(e,t){var n=e.expression;n.print(t);var i=e.property;(O.has(i)?t.option("ie8"):!Z(i,t.option("ecma")>=2015))?(t.print("["),t.add_mapping(e.end),t.print_string(i),t.print("]")):(n instanceof pn&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(i))})),e(St,(function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")})),e(At,(function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof At&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)})),e(Tt,(function(e,t){e.expression.print(t),t.print(e.operator)})),e(yt,(function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof Tt&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof At&&"!"==e.right.operator&&e.right.expression instanceof At&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)})),e(bt,(function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)})),e(Ft,(function(e,t){t.with_square((function(){var n=e.elements,i=n.length;i>0&&t.space(),n.forEach((function(e,n){n&&t.comma(),e.print(t),n===i-1&&e instanceof Dn&&t.comma()})),i>0&&t.space()}))})),e(Mt,(function(e,t){e.properties.length>0?t.with_block((function(){e.properties.forEach((function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)})),t.newline()})):i(e,t)})),e(It,(function(e,t){if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof rn||e.extends instanceof gt||e.extends instanceof Vt||e.extends instanceof Pe);t.print("extends"),n?t.print("("):t.space(),e.extends.print(t),n?t.print(")"):t.space()}e.properties.length>0?t.with_block((function(){e.properties.forEach((function(e,n){n&&t.newline(),t.indent(),e.print(t)})),t.newline()})):t.print("{}")})),e(Kt,(function(e,t){t.print("new.target")})),e(wt,(function(e,t){function n(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var i=t.option("shorthand");i&&e.value instanceof Bt&&Z(e.key,t.option("ecma")>=2015)&&n(e.value)===e.key&&!O.has(e.key)?u(e.key,e.quote,t):i&&e.value instanceof Ot&&e.value.left instanceof Bt&&Z(e.key,t.option("ecma")>=2015)&&n(e.value.left)===e.key?(u(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof pe?t.with_square((function(){e.key.print(t)})):u(e.key,e.quote,t),t.colon(),e.value.print(t))})),e(Lt,(e,t)=>{e.static&&(t.print("static"),t.space()),e.key instanceof $t?u(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon()}),Rt.DEFMETHOD("_print_getter_setter",(function(e,t){var n=this;n.static&&(t.print("static"),t.space()),e&&(t.print(e),t.space()),n.key instanceof qt?u(n.key.name,n.quote,t):t.with_square((function(){n.key.print(t)})),n.value._do_print(t,!0)})),e(xt,(function(e,t){e._print_getter_setter("set",t)})),e(Nt,(function(e,t){e._print_getter_setter("get",t)})),e(kt,(function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,t)})),Bt.DEFMETHOD("_do_print",(function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)})),e(Bt,(function(e,t){e._do_print(t)})),e(Dn,a),e(un,(function(e,t){t.print("this")})),e(cn,(function(e,t){t.print("super")})),e(ln,(function(e,t){t.print(e.getValue())})),e(fn,(function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)})),e(pn,(function(e,t){(t.option("keep_numbers")||t.use_asm)&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(p(e.getValue()))})),e(_n,(function(e,t){t.print(e.getValue()+"n")}));const c=/(<\s*\/\s*script)/i,l=(e,t)=>t.replace("/","\\/");function f(e,t){t.option("braces")?_(e,t):!e||e instanceof ve?t.force_semicolon():e.print(t)}function p(e){var t,n,i,r=e.toString(10).replace(/^0\./,".").replace("e+","e"),o=[r];return Math.floor(e)===e&&(e<0?o.push("-0x"+(-e).toString(16).toLowerCase()):o.push("0x"+e.toString(16).toLowerCase())),(t=/^\.0+/.exec(r))?(n=t[0].length,i=r.slice(n),o.push(i+"e-"+(i.length+n-1))):(t=/0+$/.exec(r))?(n=t[0].length,o.push(r.slice(0,-n)+"e"+n)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(r))&&o.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),function(e){for(var t=e[0],n=t.length,i=1;i{n+=e}),n}(i):"",n=n.replace(c,l),t.print(t.to_utf8(`/${n}/${i}`));const r=t.parent();r instanceof yt&&/^\w/.test(r.operator)&&r.left===e&&t.print(" ")})),d([pe,Te,Ne],a),d([Ft,Se,ot,It,ln,de,st,me,at,Xe,Ie,ht,Mt,Ae,Bt,et,tt,Ge,He,rt],(function(e){e.add_mapping(this.start)})),d([Nt,xt],(function(e){e.add_mapping(this.start,this.key.name)})),d([Rt],(function(e){e.add_mapping(this.start,this.key)}))}();const Kn=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),Un=e=>{const t=Object.keys(e).map(t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)}).join(" && ");return new Function("other","return "+t)},Gn=()=>!0;pe.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},de.prototype.shallow_cmp=Gn,me.prototype.shallow_cmp=Un({value:"eq"}),he.prototype.shallow_cmp=Gn,De.prototype.shallow_cmp=Gn,ve.prototype.shallow_cmp=Gn,Te.prototype.shallow_cmp=Un({"label.name":"eq"}),Ce.prototype.shallow_cmp=Gn,Oe.prototype.shallow_cmp=Gn,Fe.prototype.shallow_cmp=Un({init:"exist",condition:"exist",step:"exist"}),Me.prototype.shallow_cmp=Gn,Re.prototype.shallow_cmp=Gn,we.prototype.shallow_cmp=Gn,Ne.prototype.shallow_cmp=Gn,ke.prototype.shallow_cmp=Gn,Ie.prototype.shallow_cmp=Un({is_generator:"eq",async:"eq"}),Ke.prototype.shallow_cmp=Un({is_array:"eq"}),Ue.prototype.shallow_cmp=Gn,Ge.prototype.shallow_cmp=Gn,He.prototype.shallow_cmp=Un({value:"eq"}),Xe.prototype.shallow_cmp=Gn,qe.prototype.shallow_cmp=Gn,Ze.prototype.shallow_cmp=Gn,Je.prototype.shallow_cmp=Un({is_star:"eq"}),Qe.prototype.shallow_cmp=Un({alternative:"exist"}),et.prototype.shallow_cmp=Gn,tt.prototype.shallow_cmp=Gn,rt.prototype.shallow_cmp=Un({bcatch:"exist",bfinally:"exist"}),ot.prototype.shallow_cmp=Un({argname:"exist"}),at.prototype.shallow_cmp=Gn,st.prototype.shallow_cmp=Gn,ft.prototype.shallow_cmp=Un({value:"exist"}),pt.prototype.shallow_cmp=Gn,_t.prototype.shallow_cmp=Un({imported_name:"exist",imported_names:"exist"}),dt.prototype.shallow_cmp=Un({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),mt.prototype.shallow_cmp=Gn,Et.prototype.shallow_cmp=Gn,gt.prototype.shallow_cmp=Gn,Dt.prototype.shallow_cmp=Un({property:"eq"}),vt.prototype.shallow_cmp=Un({operator:"eq"}),yt.prototype.shallow_cmp=Un({operator:"eq"}),bt.prototype.shallow_cmp=Gn,Ft.prototype.shallow_cmp=Gn,Mt.prototype.shallow_cmp=Gn,Rt.prototype.shallow_cmp=Gn,wt.prototype.shallow_cmp=Un({key:"eq"}),xt.prototype.shallow_cmp=Un({static:"eq"}),Nt.prototype.shallow_cmp=Un({static:"eq"}),kt.prototype.shallow_cmp=Un({static:"eq",is_generator:"eq",async:"eq"}),It.prototype.shallow_cmp=Un({name:"exist",extends:"exist"}),Lt.prototype.shallow_cmp=Un({static:"eq"}),Bt.prototype.shallow_cmp=Un({name:"eq"}),Kt.prototype.shallow_cmp=Gn,un.prototype.shallow_cmp=Gn,cn.prototype.shallow_cmp=Gn,fn.prototype.shallow_cmp=Un({value:"eq"}),pn.prototype.shallow_cmp=Un({value:"eq"}),_n.prototype.shallow_cmp=Un({value:"eq"}),dn.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},mn.prototype.shallow_cmp=Gn;let Hn=null,Xn=null;class zn{constructor(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=zn.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof pe?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),!!(Hn&&Hn.has(this.id)&&S(e.keep_fnames,this.orig[0].name))||(this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof jt||this.orig[0]instanceof Yt)&&S(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof qt||(this.orig[0]instanceof Jt||this.orig[0]instanceof Zt)&&S(e.keep_classnames,this.orig[0].name))}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope,i=this.orig[0];e.ie8&&i instanceof jt&&(n=n.parent_scope);const r=Wn(this);this.mangled_name=r?r.mangled_name||r.name:n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function Wn(e){if(e.orig[0]instanceof Qt&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}function Yn(e,t){var n=e.enclosed;e:for(;;){var i=qn(++e.cname);if(!O.has(i)&&!(t.reserved.has(i)||Xn&&Xn.has(i))){for(let e=n.length;--e>=0;){const r=n[e];if(i==(r.mangled_name||r.unmangleable(t)&&r.name))continue e}return i}}}zn.next_id=1,xe.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:n=this}={}){if(e=o(e,{cache:null,ie8:!1,safari10:!1}),!(n instanceof Ne))throw new Error("Invalid toplevel scope");var i=this.parent_scope=t,r=new Map,a=null,s=null,u=[],c=new On((t,n)=>{if(t.is_block_scope()){const r=i;t.block_scope=i=new xe(t),i._block_scope=!0;const o=t instanceof ot?r.parent_scope:r;if(i.init_scope_vars(o),i.uses_with=r.uses_with,i.uses_eval=r.uses_eval,e.safari10&&(t instanceof Fe||t instanceof Me)&&u.push(i),t instanceof et){const e=i;i=r,t.expression.walk(c),i=e;for(let e=0;ee===t||(t instanceof Ht?e instanceof jt:!(e instanceof zt||e instanceof Xt)))||ee(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Wt||l(h,2),a!==i){t.mark_enclosed();var h=i.find_variable(t);t.thedef!==h&&(t.thedef=h,t.reference())}}else if(t instanceof sn){var E=r.get(t.name);if(!E)throw new Error(d("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=E}i instanceof Ne||!(t instanceof dt||t instanceof _t)||ee(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}});function l(e,t){if(s){var n=0;do{t++}while(c.parent(n++)!==s)}var i=c.parent(t);if(e.export=i instanceof dt?1:0){var r=i.exported_definition;(r instanceof Be||r instanceof Pt)&&i.is_default&&(e.export=2)}}this.walk(c),this instanceof Ne&&(this.globals=new Map);c=new On(e=>{if(e instanceof qe&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof rn){var t,i=e.name;if("eval"==i&&c.parent()instanceof mt)for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope)r.uses_eval=!0;return c.parent()instanceof pt&&c.parent(1).module_name||!(t=e.scope.find_variable(i))?(t=n.def_global(e),e instanceof on&&(t.export=1)):t.scope instanceof Ie&&"arguments"==i&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference(),!e.scope.is_block_scope()||t.orig[0]instanceof Ht||(e.scope=e.scope.get_defun_scope()),!0}var o;if(e instanceof Qt&&(o=Wn(e.definition())))for(r=e.scope;r&&(_(r.enclosed,o),r!==o.scope);)r=r.parent_scope});if(this.walk(c),(e.ie8||e.safari10)&&yn(this,e=>{if(e instanceof Qt){var t=e.name,i=e.thedef.references,r=e.scope.get_defun_scope(),o=r.find_variable(t)||n.globals.get(t)||r.def_variable(e);return i.forEach((function(e){e.thedef=o,e.reference()})),e.thedef=o,e.reference(),!0}}),e.safari10)for(const e of u)e.parent_scope.variables.forEach((function(t){_(e.enclosed,t)}))})),Ne.DEFMETHOD("def_global",(function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var i=new zn(this,e);return i.undeclared=!0,i.global=!0,t.set(n,i),i})),xe.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1,this._var_name_cache=null})),xe.DEFMETHOD("var_names",(function e(){var t=this._var_name_cache;return t||(this._var_name_cache=t=new Set(this.parent_scope?e.call(this.parent_scope):null),this._added_var_names&&this._added_var_names.forEach(e=>{t.add(e)}),this.enclosed.forEach((function(e){t.add(e.name)})),this.variables.forEach((function(e,n){t.add(n)}))),t})),xe.DEFMETHOD("add_var_name",(function(e){this._added_var_names||(this._added_var_names=new Set),this._added_var_names.add(e),this._var_name_cache||this.var_names(),this._var_name_cache.add(e)})),xe.DEFMETHOD("add_child_scope",(function(e){if(e.parent_scope===this)return;e.parent_scope=this,e._var_name_cache=null,e._added_var_names&&e._added_var_names.forEach(t=>e.add_var_name(t));const t=new Set(e.enclosed),n=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);return e.reverse(),e})(),i=[];for(const e of n){i.forEach(t=>_(e.enclosed,t));for(const n of e.variables.values())t.has(n)&&(_(i,n),_(e.enclosed,n))}})),pe.DEFMETHOD("is_block_scope",s),It.DEFMETHOD("is_block_scope",s),Ie.DEFMETHOD("is_block_scope",s),Ne.DEFMETHOD("is_block_scope",s),tt.DEFMETHOD("is_block_scope",s),De.DEFMETHOD("is_block_scope",u),xe.DEFMETHOD("is_block_scope",(function(){return this._block_scope||!1})),ye.DEFMETHOD("is_block_scope",u),Ie.DEFMETHOD("init_scope_vars",(function(){xe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Wt({name:"arguments",start:this.start,end:this.end}))})),Ve.DEFMETHOD("init_scope_vars",(function(){xe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),Bt.DEFMETHOD("mark_enclosed",(function(){for(var e=this.definition(),t=this.scope;t&&(_(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),Bt.DEFMETHOD("reference",(function(){this.definition().references.push(this),this.mark_enclosed()})),xe.DEFMETHOD("find_variable",(function(e){return e instanceof Bt&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),xe.DEFMETHOD("def_function",(function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof Be)&&(n.init=t),this.functions.set(e.name,n),n})),xe.DEFMETHOD("def_variable",(function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof Pe)&&(n.init=t)):(n=new zn(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n})),xe.DEFMETHOD("next_mangled",(function(e){return Yn(this,e)})),Ne.DEFMETHOD("next_mangled",(function(e){let t;const n=this.mangled_names;do{t=Yn(this,e)}while(n.has(t));return t})),Pe.DEFMETHOD("next_mangled",(function(e,t){for(var n=t.orig[0]instanceof Wt&&this.name&&this.name.definition(),i=n?n.mangled_name||n.name:null;;){var r=Yn(this,e);if(!i||i!=r)return r}})),Bt.DEFMETHOD("unmangleable",(function(e){var t=this.definition();return!t||t.unmangleable(e)})),nn.DEFMETHOD("unmangleable",s),Bt.DEFMETHOD("unreferenced",(function(){return!this.definition().references.length&&!this.scope.pinned()})),Bt.DEFMETHOD("definition",(function(){return this.thedef})),Bt.DEFMETHOD("global",(function(){return this.thedef.global})),Ne.DEFMETHOD("_default_mangler_options",(function(e){return(e=o(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e})),Ne.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,n=[];e.keep_fnames&&(Hn=new Set);const i=this.mangled_names=new Set;e.cache&&(this.globals.forEach(o),e.cache.props&&e.cache.props.forEach((function(e){i.add(e)})));var r=new On((function(i,r){if(i instanceof Te){var a=t;return r(),t=a,!0}if(i instanceof xe)i.variables.forEach(o);else if(i.is_block_scope())i.block_scope.variables.forEach(o);else if(Hn&&i instanceof ft&&i.value instanceof Ie&&!i.value.name&&S(e.keep_fnames,i.name.name))Hn.add(i.name.definition().id);else{if(i instanceof nn){let e;do{e=qn(++t)}while(O.has(e));return i.mangled_name=e,!0}!e.ie8&&!e.safari10&&i instanceof Qt&&n.push(i.definition())}}));function o(t){!(e.reserved.has(t.name)||1&t.export)&&n.push(t)}this.walk(r),(e.keep_fnames||e.keep_classnames)&&(Xn=new Set,n.forEach(t=>{t.name.length<6&&t.unmangleable(e)&&Xn.add(t.name)})),n.forEach(t=>{t.mangle(e)}),Hn=null,Xn=null})),Ne.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,n=new Set;return e.reserved.forEach(i),this.globals.forEach(r),this.walk(new On((function(e){e instanceof xe&&e.variables.forEach(r),e instanceof Qt&&r(e.definition())}))),n;function i(e){n.add(e)}function r(n){var r=n.name;if(n.global&&t&&t.has(r))r=t.get(r);else if(!n.unmangleable(e))return;i(r)}})),Ne.DEFMETHOD("expand_names",(function(e){qn.reset(),qn.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),n=0;function i(i){if(i.global&&e.cache)return;if(i.unmangleable(e))return;if(e.reserved.has(i.name))return;const r=Wn(i),o=i.name=r?r.name:function(){var e;do{e=qn(n++)}while(t.has(e)||O.has(e));return e}();i.orig.forEach((function(e){e.name=o})),i.references.forEach((function(e){e.name=o}))}this.globals.forEach(i),this.walk(new On((function(e){e instanceof xe&&e.variables.forEach(i),e instanceof Qt&&i(e.definition())})))})),pe.DEFMETHOD("tail_node",c),Et.DEFMETHOD("tail_node",(function(){return this.expressions[this.expressions.length-1]})),Ne.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{pe.prototype.print=function(t,n){this._print(t,n),this instanceof Bt&&!this.unmangleable(e)?qn.consider(this.name,-1):e.properties&&(this instanceof Dt?qn.consider(this.property,-1):this instanceof St&&function e(t){t instanceof fn?qn.consider(t.value,-1):t instanceof bt?(e(t.consequent),e(t.alternative)):t instanceof Et&&e(t.tail_node())}(this.property))},qn.consider(this.print_to_string(),1)}finally{pe.prototype.print=pe.prototype._print}qn.sort()}));const qn=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let n,i;function r(){i=new Map,e.forEach((function(e){i.set(e,0)})),t.forEach((function(e){i.set(e,0)}))}function o(e,t){return i.get(t)-i.get(e)}function a(e){var t="",i=54;e++;do{e--,t+=n[e%i],e=Math.floor(e/i),i=64}while(e>0);return t}return a.consider=function(e,t){for(var n=e.length;--n>=0;)i.set(e[n],i.get(e[n])+t)},a.sort=function(){n=h(e,o).concat(h(t,o))},a.reset=r,r(),a})();function $n(){const e={};return Object.keys(jn({0:0})).forEach(t=>{const n=jn({[t]:{0:0}});n&&(e[t]=n)}),e}function jn(e){var t=gr("",e);return t.error&&t.error.defs}let Zn=void 0;pe.prototype.size=function(e,t){Zn=$n.mangle;let n=0;return bn(this,(e,t)=>{n+=e._size(t)},t||e&&e.stack),Zn=void 0,n},pe.prototype._size=()=>0,de.prototype._size=()=>8,me.prototype._size=function(){return 2+this.value.length};const Jn=e=>e.length&&e.length-1;De.prototype._size=function(){return 2+Jn(this.body)},Ne.prototype._size=function(){return Jn(this.body)},ve.prototype._size=()=>1,Te.prototype._size=()=>2,Ce.prototype._size=()=>9,Oe.prototype._size=()=>7,Fe.prototype._size=()=>8,Me.prototype._size=()=>8,we.prototype._size=()=>6,ke.prototype._size=()=>3;const Qn=e=>(e.is_generator?1:0)+(e.async?6:0);Le.prototype._size=function(){return Qn(this)+4+Jn(this.argnames)+Jn(this.body)},Pe.prototype._size=function(e){return 2*!!In(e)+Qn(this)+12+Jn(this.argnames)+Jn(this.body)},Be.prototype._size=function(){return Qn(this)+13+Jn(this.argnames)+Jn(this.body)},Ve.prototype._size=function(){let e=2+Jn(this.argnames);return 1===this.argnames.length&&this.argnames[0]instanceof Bt||(e+=2),Qn(this)+e+(Array.isArray(this.body)?Jn(this.body):this.body._size())},Ke.prototype._size=()=>2,Ge.prototype._size=function(){return 2+3*Math.floor(this.segments.length/2)},He.prototype._size=function(){return this.value.length},We.prototype._size=function(){return this.value?7:6},Ye.prototype._size=()=>6,$e.prototype._size=function(){return this.label?6:5},je.prototype._size=function(){return this.label?9:8},Qe.prototype._size=()=>4,et.prototype._size=function(){return 8+Jn(this.body)},it.prototype._size=function(){return 5+Jn(this.body)},nt.prototype._size=function(){return 8+Jn(this.body)},rt.prototype._size=function(){return 3+Jn(this.body)},ot.prototype._size=function(){let e=7+Jn(this.body);return this.argname&&(e+=2),e},at.prototype._size=function(){return 7+Jn(this.body)};const ei=(e,t)=>e+Jn(t.definitions);ut.prototype._size=function(){return ei(4,this)},ct.prototype._size=function(){return ei(4,this)},lt.prototype._size=function(){return ei(6,this)},ft.prototype._size=function(){return this.value?1:0},pt.prototype._size=function(){return this.name?4:0},_t.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+Jn(this.imported_names)),e},dt.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+Jn(this.exported_names)),this.module_name&&(e+=5),e},mt.prototype._size=function(){return 2+Jn(this.args)},ht.prototype._size=function(){return 6+Jn(this.args)},Et.prototype._size=function(){return Jn(this.expressions)},Dt.prototype._size=function(){return this.property.length+1},St.prototype._size=()=>2,vt.prototype._size=function(){return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},yt.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof vt&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},bt.prototype._size=()=>3,Ft.prototype._size=function(){return 2+Jn(this.elements)},Mt.prototype._size=function(e){let t=2;return In(e)&&(t+=2),t+Jn(this.properties)};const ti=e=>"string"==typeof e?e.length:0;wt.prototype._size=function(){return ti(this.key)+1};const ni=e=>e?7:0;Nt.prototype._size=function(){return 5+ni(this.static)+ti(this.key)},xt.prototype._size=function(){return 5+ni(this.static)+ti(this.key)},kt.prototype._size=function(){return ni(this.static)+ti(this.key)+Qn(this)},It.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Lt.prototype._size=function(){return ni(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},Bt.prototype._size=function(){return!Zn||this.definition().unmangleable(Zn)?this.name.length:2},$t.prototype._size=function(){return this.name.length},rn.prototype._size=function(){const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:2},Kt.prototype._size=()=>10,tn.prototype._size=function(){return this.name.length},an.prototype._size=function(){return this.name.length},un.prototype._size=()=>4,cn.prototype._size=()=>5,fn.prototype._size=function(){return this.value.length+2},pn.prototype._size=function(){const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},_n.prototype._size=function(){return this.value.length},dn.prototype._size=function(){return this.value.toString().length},hn.prototype._size=()=>4,En.prototype._size=()=>3,gn.prototype._size=()=>6,Dn.prototype._size=()=>0,Sn.prototype._size=()=>8,Tn.prototype._size=()=>4,An.prototype._size=()=>5,Ze.prototype._size=()=>6,Je.prototype._size=()=>6;const ii=(e,t)=>e.flags&t,ri=(e,t)=>{e.flags|=t},oi=(e,t)=>{e.flags&=~t};class ai extends On{constructor(e,t){super(),void 0===e.defaults||e.defaults||(t=!0),this.options=o(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)"@"===i[0]&&D(n,i)&&(n[i.slice(1)]=ce(n[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var r=this.options.pure_funcs;this.pure_funcs="function"==typeof r?r:r?function(e){return!r.includes(e.expression.print_to_string())}:u;var a=this.options.top_retain;a instanceof RegExp?this.top_retain=function(e){return a.test(e.name)}:"function"==typeof a?this.top_retain=a:a&&("string"==typeof a&&(a=a.split(/,/)),this.top_retain=function(e){return a.includes(e.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.warnings_produced={},this.evaluated_regexps=new Map}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),t>1){let t=0;if(yn(e,()=>{t++}),this.info("pass "+o+": last_count: "+n+", count: "+t),t=0;){if(!(r[o]instanceof wt))return;n||r[o].key!==t||(n=r[o].value)}}return n instanceof rn&&n.fixed_value()||n}}function ci(e,t,n,i,r,o){var a=t.parent(r),s=Ii(n,a);if(s)return s;if(!o&&a instanceof mt&&a.expression===n&&!(i instanceof Ve)&&!(i instanceof It)&&!a.is_expr_pure(e)&&(!(i instanceof Pe)||!(a instanceof ht)&&i.contains_this()))return!0;if(a instanceof Ft)return ci(e,t,a,a,r+1);if(a instanceof wt&&n===a.value){var u=t.parent(r+1);return ci(e,t,u,u,r+2)}if(a instanceof gt&&a.expression===n){var c=ui(i,a.property);return!o&&ci(e,t,a,c,r+1)}}function li(e){return e instanceof Ve||e instanceof Pe}function fi(e){if(e instanceof un)return!0;if(e instanceof rn)return e.definition().orig[0]instanceof jt;if(e instanceof gt){if((e=e.expression)instanceof rn){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof dn)&&(e instanceof ln||fi(e))}return!1}function pi(e,t){if(!(e instanceof rn))return!1;for(var n=e.definition().orig,i=n.length;--i>=0;)if(n[i]instanceof t)return!0}function _i(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof Ne)return n;if(n instanceof Ie)return n;if(n.block_scope)return n.block_scope}}function di(e,t){for(var n,i=0;(n=e.parent(i++))&&!(n instanceof xe);)if(n instanceof ot&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function mi(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return p(Et,e,{expressions:t.reduce(gi,[])})}function hi(e,t){switch(typeof e){case"string":return p(fn,t,{value:e});case"number":return isNaN(e)?p(En,t):isFinite(e)?1/e<0?p(At,t,{operator:"-",expression:p(pn,t,{value:-e})}):p(pn,t,{value:e}):e<0?p(At,t,{operator:"-",expression:p(Sn,t)}):p(Sn,t);case"boolean":return p(e?Tn:An,t);case"undefined":return p(gn,t);default:if(null===e)return p(hn,t,{value:null});if(e instanceof RegExp)return p(dn,t,{value:{source:A(e.source),flags:e.flags}});throw new Error(d("Can't handle constant of type: {type}",{type:typeof e}))}}function Ei(e,t,n){return e instanceof At&&"delete"==e.operator||e instanceof mt&&e.expression===t&&(n instanceof gt||n instanceof rn&&"eval"==n.name)?mi(t,[p(pn,t,{value:0}),n]):n}function gi(e,t){return t instanceof Et?e.push(...t.expressions):e.push(t),e}function Di(e){if(null===e)return[];if(e instanceof Se)return e.body;if(e instanceof ve)return[];if(e instanceof _e)return[e];throw new Error("Can't convert thing to statement array")}function Si(e){return null===e||(e instanceof ve||e instanceof Se&&0==e.body.length)}function vi(e){return!(e instanceof Pt||e instanceof Be||e instanceof ct||e instanceof lt||e instanceof dt||e instanceof _t)}function Ai(e){return e instanceof ye&&e.body instanceof Se?e.body:e}function Ti(e){return"Call"==e.TYPE&&(e.expression instanceof Pe||Ti(e.expression))}function yi(e){return e instanceof rn&&e.definition().undeclared}si(pe,(function(e){return e})),Ne.DEFMETHOD("drop_console",(function(){return this.transform(new Fn((function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof gt){for(var n=t.expression;n.expression;)n=n.expression;if(yi(n)&&"console"==n.name)return p(gn,e)}}})))})),pe.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!Kn(e,t))return!1;const n=[e],i=[t],r=n.push.bind(n),o=i.push.bind(i);for(;n.length&&i.length;){const e=n.pop(),t=i.pop();if(!Kn(e,t))return!1;if(e._children_backwards(r),t._children_backwards(o),n.length!==i.length)return!1}return 0==n.length&&0==i.length})(this,e)})),xe.DEFMETHOD("process_expression",(function(e,t){var n=this,i=new Fn((function(r){if(e&&r instanceof he)return p(We,r,{value:r.body});if(!e&&r instanceof We){if(t){var o=r.value&&r.value.drop_side_effect_free(t,!0);return o?p(he,r,{body:o}):p(ve,r)}return p(he,r,{body:r.value||p(At,r,{operator:"void",expression:p(pn,r,{value:0})})})}if(r instanceof It||r instanceof Ie&&r!==n)return r;if(r instanceof De){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof Qe?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof we&&(r.body=r.body.transform(i));return r}));n.transform(i)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof Xt||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function n(e,n,i){i.variables.forEach((function(i){t(n,i),null===i.fixed?(e.defs_to_safe_ids.set(i.id,e.safe_ids),s(e,i,!0)):i.fixed&&(e.loop_ids.set(i.id,e.in_loop),s(e,i,!0))}))}function i(e,n){n.block_scope&&n.block_scope.variables.forEach(n=>{t(e,n)})}function r(e){e.safe_ids=Object.create(e.safe_ids)}function o(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function s(e,t,n){e.safe_ids[t.id]=n}function u(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof Wt||"arguments"==n.name)return!1;t.fixed=p(gn,n)}return!0}return t.fixed instanceof Be}function c(e,t,n,i){if(void 0===t.fixed)return!0;let r;return null===t.fixed&&(r=e.defs_to_safe_ids.get(t.id))?(r[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!D(e.safe_ids,t.id)&&(!!u(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!i||t.references.length>t.assignments))&&(t.fixed instanceof Be?i instanceof pe&&t.fixed.parent_scope===n:t.orig.every(e=>!(e instanceof Xt||e instanceof Yt||e instanceof jt))))))}function l(e,t,n,i,r,o,a){var s=e.parent(o);if(r){if(r.is_constant())return;if(r instanceof Vt)return}if(s instanceof Ct&&"="==s.operator&&i===s.right||s instanceof mt&&(i!==s.expression||s instanceof ht)||s instanceof ze&&i===s.value&&i.scope!==t.scope||s instanceof ft&&i===s.value||s instanceof Je&&i===s.value&&i.scope!==t.scope)return!(a>1)||r&&r.is_constant_expression(n)||(a=1),void((!t.escaped||t.escaped>a)&&(t.escaped=a));if(s instanceof Ft||s instanceof Ze||s instanceof yt&&Ni.has(s.operator)||s instanceof bt&&i!==s.condition||s instanceof ke||s instanceof Et&&i===s.tail_node())l(e,t,n,s,s,o+1,a);else if(s instanceof wt&&i===s.value){var u=e.parent(o+1);l(e,t,n,u,u,o+2,a)}else if(s instanceof gt&&i===s.expression&&(l(e,t,n,s,r=ui(r,s.property),o+1,a+1),r))return;o>0||s instanceof Et&&i!==s.tail_node()||s instanceof he||(t.direct_access=!0)}e(pe,a);const f=e=>yn(e,e=>{if(e instanceof Bt){var t=e.definition();t&&(e instanceof rn&&t.references.push(e),t.fixed=!1)}});e(Le,(function(e,t,i){return r(e),n(e,i,this),t(),o(e),!0})),e(Ct,(function(e,t,n){var i=this;if(i.left instanceof Ke)f(i.left);else{var r=i.left;if(r instanceof rn){var o=r.definition(),a=c(e,o,r.scope,i.right);if(o.assignments++,a){var u=o.fixed;if(u||"="==i.operator){var _="="==i.operator,d=_?i.right:i;if(!ci(n,e,i,d,0))return o.references.push(r),_||(o.chained=!0),o.fixed=_?function(){return i.right}:function(){return p(yt,i,{operator:i.operator.slice(0,-1),left:u instanceof pe?u:u(),right:i.right})},s(e,o,!1),i.right.walk(e),s(e,o,!0),l(e,o,r.scope,i,d,0,1),!0}}}}})),e(yt,(function(e){if(Ni.has(this.operator))return this.left.walk(e),r(e),this.right.walk(e),o(e),!0})),e(De,(function(e,t,n){i(n,this)})),e(it,(function(e){return r(e),this.expression.walk(e),o(e),r(e),Ee(this,e),o(e),!0})),e(It,(function(e,t){return oi(this,16),r(e),t(),o(e),!0})),e(bt,(function(e){return this.condition.walk(e),r(e),this.consequent.walk(e),o(e),r(e),this.alternative.walk(e),o(e),!0})),e(nt,(function(e,t){return r(e),t(),o(e),!0})),e(Ie,(function(e,t,i){return oi(this,16),r(e),n(e,i,this),this.uses_arguments?(t(),void o(e)):(!this.name&&(a=e.parent())instanceof mt&&a.expression===this&&!a.args.some(e=>e instanceof ke)&&this.argnames.every(e=>e instanceof Bt)&&this.argnames.forEach((t,n)=>{if(t.definition){var i=t.definition();i.orig.length>1||(void 0!==i.fixed||this.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function(){return a.args[n]||p(gn,a)},e.loop_ids.set(i.id,e.in_loop),s(e,i,!0)))}}),t(),o(e),!0);var a})),e(Ce,(function(e,t,n){i(n,this);const a=e.in_loop;return e.in_loop=this,r(e),this.body.walk(e),$i(this)&&(o(e),r(e)),this.condition.walk(e),o(e),e.in_loop=a,!0})),e(Fe,(function(e,t,n){i(n,this),this.init&&this.init.walk(e);const a=e.in_loop;return e.in_loop=this,r(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&($i(this)&&(o(e),r(e)),this.step.walk(e)),o(e),e.in_loop=a,!0})),e(Me,(function(e,t,n){i(n,this),f(this.init),this.object.walk(e);const a=e.in_loop;return e.in_loop=this,r(e),this.body.walk(e),o(e),e.in_loop=a,!0})),e(Qe,(function(e){return this.condition.walk(e),r(e),this.body.walk(e),o(e),this.alternative&&(r(e),this.alternative.walk(e),o(e)),!0})),e(Te,(function(e){return r(e),this.body.walk(e),o(e),!0})),e(Qt,(function(){this.definition().fixed=!1})),e(rn,(function(e,t,n){var i,r,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof Yt&&e.loop_ids.set(o.id,e.in_loop),void 0!==o.fixed&&u(e,o)?o.fixed&&((i=this.fixed_value())instanceof Ie&&Ji(e,o)?o.recursive_refs++:i&&!n.exposed(o)&&function(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}(e,n,o)?o.single_use=i instanceof Ie&&!i.pinned()||i instanceof It||o.scope===this.scope&&i.is_constant_expression():o.single_use=!1,ci(n,e,this,i,0,!!(r=i)&&(r.is_constant()||r instanceof Ie||r instanceof un))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,l(e,o,this.scope,this,i,0,1)})),e(Ne,(function(e,i,r){this.globals.forEach((function(e){t(r,e)})),n(e,r,this)})),e(rt,(function(e,t,n){return i(n,this),r(e),Ee(this,e),o(e),this.bcatch&&(r(e),this.bcatch.walk(e),o(e)),this.bfinally&&this.bfinally.walk(e),!0})),e(vt,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var n=t.expression;if(n instanceof rn){var i=n.definition(),r=c(e,i,n.scope,!0);if(i.assignments++,r){var o=i.fixed;if(o)return i.references.push(n),i.chained=!0,i.fixed=function(){return p(yt,t,{operator:t.operator.slice(0,-1),left:p(At,t,{operator:"+",expression:o instanceof pe?o:o()}),right:p(pn,t,{value:1})})},s(e,i,!0),!0}}}})),e(ft,(function(e,t){var n=this;if(n.name instanceof Ke)f(n.name);else{var i=n.name.definition();if(n.value){if(c(e,i,n.name.scope,n.value))return i.fixed=function(){return n.value},e.loop_ids.set(i.id,e.in_loop),s(e,i,!1),t(),s(e,i,!0),!0;i.fixed=!1}}})),e(Oe,(function(e,t,n){i(n,this);const a=e.in_loop;return e.in_loop=this,r(e),t(),o(e),e.in_loop=a,!0}))}((function(e,t){e.DEFMETHOD("reduce_vars",t)})),Ne.DEFMETHOD("reset_opt_flags",(function(e){const t=this,n=e.option("reduce_vars"),i=new On((function(r,o){if(oi(r,1792),n)return e.top_retain&&r instanceof Be&&i.parent()===t&&ri(r,1024),r.reduce_vars(i,o,e)}));i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=new Map,i.defs_to_safe_ids=new Map,t.walk(i)})),Bt.DEFMETHOD("fixed_value",(function(){var e=this.thedef.fixed;return!e||e instanceof pe?e:e()})),rn.DEFMETHOD("is_immutable",(function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof jt}));var bi=E("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");rn.DEFMETHOD("is_declared",(function(e){return!this.definition().undeclared||e.option("unsafe")&&bi.has(this.name)}));var Ci,Oi=E("Infinity NaN undefined");function Fi(e){return e instanceof Sn||e instanceof En||e instanceof gn}function Mi(e,t){var n,r,o=t.find_parent(xe).get_defun_scope();!function(){var e=t.self(),i=0;do{if(e instanceof ot||e instanceof at)i++;else if(e instanceof ye)n=!0;else{if(e instanceof xe){o=e;break}e instanceof rt&&(r=!0)}}while(e=t.parent(i++))}();var a,s=10;do{a=!1,c(e),t.option("dead_code")&&_(e,t),t.option("if_return")&&l(e,t),t.sequences_limit>0&&(h(e,t),g(e,t)),t.option("join_vars")&&S(e),t.option("collapse_vars")&&u(e,t)}while(a&&s-- >0);function u(e,t){if(o.pinned())return e;for(var s,u=[],c=e.length,l=new Fn((function(e){if(M)return e;if(!F)return e!==d[m]?e:++m=0;){0==c&&t.option("unused")&&P();var d=[];for(V(e[c]);u.length>0;){d=u.pop();var m=0,h=d[d.length-1],E=null,g=null,D=null,S=B(h);if(S&&!fi(S)&&!S.has_side_effects(t)){var v=U(h),A=H(S);S instanceof rn&&v.set(S.name,!1);var y=X(h),b=z(),C=h.may_throw(t),O=h.name instanceof Wt,F=O,M=!1,R=0,w=!s||!F;if(!w){for(var x=t.self().argnames.lastIndexOf(h.name)+1;!M&&xR)R=!1;else{M=!1,m=0,F=O;for(N=c;!M&&N!(e instanceof ke))){var r=t.has_directive("use strict");r&&!i(r,n.body)&&(r=!1);var o=n.argnames.length;s=e.args.slice(o);for(var a=new Set,c=o;--c>=0;){var l=n.argnames[c],f=e.args[c];const i=l.definition&&l.definition();if(!(i&&i.orig.length>1)&&(s.unshift(p(ft,l,{name:l,value:f})),!a.has(l.name)))if(a.add(l.name),l instanceof ke){var _=e.args.slice(c);_.every(e=>!L(n,e,r))&&u.unshift([p(ft,l,{name:l.expression,value:p(Ft,e,{elements:_})})])}else f?(f instanceof Ie&&f.pinned()||L(n,f,r))&&(f=null):f=p(gn,l).transform(t),f&&u.unshift([p(ft,l,{name:l,value:f})])}}}function V(e){if(d.push(e),e instanceof Ct)e.left.has_side_effects(t)||u.push(d.slice()),V(e.right);else if(e instanceof yt)V(e.left),V(e.right);else if(e instanceof mt&&!T(e,wn))V(e.expression),e.args.forEach(V);else if(e instanceof it)V(e.expression);else if(e instanceof bt)V(e.condition),V(e.consequent),V(e.alternative);else if(e instanceof st){var n=e.definitions.length,i=n-200;for(i<0&&(i=0);i1&&!(e.name instanceof Wt)||(r>1?function(e){var t=e.value;if(t instanceof rn&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return E=n}}(e):!t.exposed(n))?p(rn,e.name,e.name):void 0}}function K(e){return e[e instanceof Ct?"right":"value"]}function U(e){var n=new Map;if(e instanceof vt)return n;var i=new On((function(e){for(var r=e;r instanceof gt;)r=r.expression;(r instanceof rn||r instanceof un)&&n.set(r.name,n.get(r.name)||ci(t,i,e,e,0))}));return K(e).walk(i),n}function G(n){if(n.name instanceof Wt){var i=t.parent(),r=t.self().argnames,o=r.indexOf(n.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=p(pn,a[o],{value:0}))}return!0}var s=!1;return e[c].transform(new Fn((function(e,t,i){return s?e:e===n||e.body===n?(s=!0,e instanceof ft?(e.value=e.name instanceof Xt?p(gn,e.value):null,e):i?f.skip:null):void 0}),(function(e){if(e instanceof Et)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function H(e){for(;e instanceof gt;)e=e.expression;return e instanceof rn&&e.definition().scope===o&&!(n&&(v.has(e.name)||h instanceof vt||h instanceof Ct&&"="!=h.operator))}function X(e){return e instanceof vt?ki.has(e.operator):K(e).has_side_effects(t)}function z(){if(y)return!1;if(E)return!0;if(S instanceof rn){var e=S.definition();if(e.references.length-e.replaced==(h instanceof ft?1:2))return!0}return!1}function W(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof Yt)&&(t.scope.get_defun_scope()!==o||!t.references.every(e=>{var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===o}))}}function c(e){for(var t=[],n=0;n=0;){var i=e[n];if(i instanceof Qe&&i.body instanceof We&&++t>1)return!0}return!1}(e),r=n instanceof Ie,o=e.length;--o>=0;){var s=e[o],u=S(o),c=e[u];if(r&&!c&&s instanceof We){if(!s.value){a=!0,e.splice(o,1);continue}if(s.value instanceof At&&"void"==s.value.operator){a=!0,e[o]=p(he,s,{body:s.value.expression});continue}}if(s instanceof Qe){var l;if(E(l=zi(s.body))){l.label&&m(l.label.thedef.references,l),a=!0,(s=s.clone()).condition=s.condition.negate(t);var f=D(s.body,l);s.body=p(Se,s,{body:Di(s.alternative).concat(g())}),s.alternative=p(Se,s,{body:f}),e[o]=s.transform(t);continue}if(E(l=zi(s.alternative))){l.label&&m(l.label.thedef.references,l),a=!0,(s=s.clone()).body=p(Se,s.body,{body:Di(s.body).concat(g())});f=D(s.alternative,l);s.alternative=p(Se,s.alternative,{body:f}),e[o]=s.transform(t);continue}}if(s instanceof Qe&&s.body instanceof We){var _=s.body.value;if(!_&&!s.alternative&&(r&&!c||c instanceof We&&!c.value)){a=!0,e[o]=p(he,s.condition,{body:s.condition});continue}if(_&&!s.alternative&&c instanceof We&&c.value){a=!0,(s=s.clone()).alternative=c,e[o]=s.transform(t),e.splice(u,1);continue}if(_&&!s.alternative&&(!c&&r&&i||c instanceof We)){a=!0,(s=s.clone()).alternative=c||p(We,s,{value:null}),e[o]=s.transform(t),c&&e.splice(u,1);continue}var h=e[v(o)];if(t.option("sequences")&&r&&!s.alternative&&h instanceof Qe&&h.body instanceof We&&S(u)==e.length&&c instanceof he){a=!0,(s=s.clone()).alternative=p(Se,c,{body:[c,p(We,c,{value:null})]}),e[o]=s.transform(t),e.splice(u,1);continue}}}function E(i){if(!i)return!1;for(var a=o+1,s=e.length;a=0;){var i=e[n];if(!(i instanceof ut&&d(i)))break}return n}}function _(e,t){for(var n,i=t.self(),r=0,o=0,s=e.length;r!e.value)}function h(e,t){if(!(e.length<2)){for(var n=[],i=0,r=0,o=e.length;r=t.sequences_limit&&c();var u=s.body;n.length>0&&(u=u.drop_side_effect_free(t)),u&&gi(n,u)}else s instanceof st&&d(s)||s instanceof Be||c(),e[i++]=s}c(),e.length=i,i!=o&&(a=!0)}function c(){if(n.length){var t=mi(n[0],n);e[i++]=p(he,t,{body:t}),n=[]}}}function E(e,t){if(!(e instanceof Se))return e;for(var n=null,i=0,r=e.body.length;ie instanceof xe||(e instanceof yt&&"in"===e.operator?Cn:void 0))||(s.init?s.init=n(s.init):(s.init=i.body,r--,a=!0))}}else s instanceof Me?s.init instanceof lt||s.init instanceof ct||(s.object=n(s.object)):s instanceof Qe?s.condition=n(s.condition):(s instanceof et||s instanceof we)&&(s.expression=n(s.expression));if(t.option("conditionals")&&s instanceof Qe){var u=[],c=E(s.body,u),l=E(s.alternative,u);if(!1!==c&&!1!==l&&u.length>0){var f=u.length;u.push(p(Qe,s,{condition:s.condition,body:c||p(ve,s.body),alternative:l})),u.unshift(r,1),[].splice.apply(e,u),o+=f,r+=f+1,i=null,a=!0;continue}}e[r++]=s,i=s instanceof he?s:null}e.length=r}function D(e,n){if(e instanceof st){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof Mt)if(n instanceof Ct?i=[n]:n instanceof Et&&(i=n.expressions.slice()),i){var a=!1;do{var s=i[0];if(!(s instanceof Ct))break;if("="!=s.operator)break;if(!(s.left instanceof gt))break;var u=s.left.expression;if(!(u instanceof rn))break;if(r.name.name!=u.name)break;if(!s.right.is_constant_expression(o))break;var c=s.left.property;if(c instanceof pe&&(c=c.evaluate(t)),c instanceof pe)break;c=""+c;var l=t.option("ecma")<2015&&t.has_directive("use strict")?function(e){return e.key!=c&&e.key&&e.key.name!=c}:function(e){return e.key&&e.key.name!=c};if(!r.value.properties.every(l))break;var f=r.value.properties.filter((function(e){return e.key===c}))[0];f?f.value=new Et({start:f.start,expressions:[f.value.clone(),s.right.clone()],end:f.end}):r.value.properties.push(p(wt,s,{key:c,value:s.right})),i.shift(),a=!0}while(i.length);return a&&i}}}function S(e){for(var t,n=0,i=-1,r=e.length;ni instanceof ut?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",i.start),i.remove_initializers(),n.push(i),!0):i instanceof Be&&(i===t||!e.has_directive("use strict"))?(n.push(i===t?i:p(ut,i,{definitions:[p(ft,i,{name:p(Gt,i.name,i.name),value:null})]})),!0):i instanceof xe||void 0)}function wi(e){return e instanceof ln?e.getValue():e instanceof At&&"void"==e.operator&&e.expression instanceof ln?void 0:e}function xi(e,t){return ii(e,8)||e instanceof gn||e instanceof At&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}pe.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(pe,t),e(hn,u),e(gn,u),e(ln,s),e(Ft,s),e(Mt,(function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n]._dot_throw(e))return!0;return!1})),e(Rt,s),e(Nt,u),e(ke,(function(e){return this.expression._dot_throw(e)})),e(Pe,s),e(Ve,s),e(Tt,s),e(At,(function(){return"void"==this.operator})),e(yt,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(Ct,(function(e){return"="==this.operator&&this.right._dot_throw(e)})),e(bt,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(Dt,(function(e){return!!t(e)&&!(this.expression instanceof Pe&&"prototype"==this.property)})),e(Et,(function(e){return this.tail_node()._dot_throw(e)})),e(rn,(function(e){if("arguments"===this.name)return!1;if(ii(this,8))return!0;if(!t(e))return!1;if(yi(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(e)}))}((function(e,t){e.DEFMETHOD("_dot_throw",t)})),function(e){const t=E("! delete"),n=E("in instanceof == != === !== < <= >= >");e(pe,s),e(At,(function(){return t.has(this.operator)})),e(yt,(function(){return n.has(this.operator)||Ni.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()})),e(bt,(function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()})),e(Ct,(function(){return"="==this.operator&&this.right.is_boolean()})),e(Et,(function(){return this.tail_node().is_boolean()})),e(Tn,u),e(An,u)}((function(e,t){e.DEFMETHOD("is_boolean",t)})),function(e){e(pe,s),e(pn,u);var t=E("+ - ~ ++ --");e(vt,(function(){return t.has(this.operator)}));var n=E("- * / % & | ^ << >> >>>");e(yt,(function(e){return n.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(Ct,(function(e){return n.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(Et,(function(e){return this.tail_node().is_number(e)})),e(bt,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}((function(e,t){e.DEFMETHOD("is_number",t)})),(Ci=function(e,t){e.DEFMETHOD("is_string",t)})(pe,s),Ci(fn,u),Ci(Ge,u),Ci(At,(function(){return"typeof"==this.operator})),Ci(yt,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),Ci(Ct,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),Ci(Et,(function(e){return this.tail_node().is_string(e)})),Ci(bt,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}));var Ni=E("&& || ??"),ki=E("delete ++ --");function Ii(e,t){return t instanceof vt&&ki.has(t.operator)?t.expression:t instanceof Ct&&t.left===e?e:void 0}function Li(e,t){return e.size()>t.size()?t:e}function Pi(e,t){return Li(p(he,e,{body:e}),p(he,t,{body:t})).body}function Vi(e,t,n){return(In(e)?Pi:Li)(t,n)}function Bi(e){const t=new Map;for(var n of Object.keys(e))t.set(n,E(e[n]));return t}!function(e){function t(e,t){e.warn("global_defs "+t.print_to_string()+" redefined [{file}:{line},{col}]",t.start)}Ne.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Fn((function(n){var i=n._find_defs(e,"");if(i){for(var r,o=0,a=n;(r=this.parent(o++))&&r instanceof gt&&r.expression===a;)a=r;if(!Ii(a,r))return i;t(e,n)}})))):this})),e(pe,a),e(Dt,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(Ut,(function(e){this.global()&&D(e.option("global_defs"),this.name)&&t(e,this)})),e(rn,(function(e,t){if(this.global()){var n=e.option("global_defs"),i=this.name+t;return D(n,i)?function e(t,n){if(t instanceof pe)return p(t.CTOR,n,t);if(Array.isArray(t))return p(Ft,n,{elements:t.map((function(t){return e(t,n)}))});if(t&&"object"==typeof t){var i=[];for(var r in t)D(t,r)&&i.push(p(wt,n,{key:r,value:e(t[r],n)}));return p(Mt,n,{properties:i})}return hi(t,n)}(n[i],this):void 0}}))}((function(e,t){e.DEFMETHOD("_find_defs",t)}));var Ki=["constructor","toString","valueOf"],Ui=Bi({Array:["indexOf","join","lastIndexOf","slice"].concat(Ki),Boolean:Ki,Function:Ki,Number:["toExponential","toFixed","toPrecision"].concat(Ki),Object:Ki,RegExp:["test"].concat(Ki),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Ki)}),Gi=Bi({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});!function(e){pe.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=E("! ~ - + void");pe.DEFMETHOD("is_constant",(function(){return this instanceof ln?!(this instanceof dn):this instanceof At&&this.expression instanceof ln&&t.has(this.operator)})),e(_e,(function(){throw new Error(d("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(Ie,c),e(It,c),e(pe,c),e(ln,(function(){return this.getValue()})),e(_n,c),e(dn,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Ge,(function(){return 1!==this.segments.length?this:this.segments[0].value})),e(Pe,(function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this})),e(Ft,(function(e,t){if(e.option("unsafe")){for(var n=[],i=0,r=this.elements.length;i>":r=n>>o;break;case">>>":r=n>>>o;break;case"==":r=n==o;break;case"===":r=n===o;break;case"!=":r=n!=o;break;case"!==":r=n!==o;break;case"<":r=n":r=n>o;break;case">=":r=n>=o;break;default:return this}return isNaN(r)&&e.find_parent(we)?this:r})),e(bt,(function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative,r=i._eval(e,t);return r===i?this:r})),e(rn,(function(e,t){var n,i=this.fixed_value();if(!i)return this;if(D(i,"_eval"))n=i._eval();else{if(this._eval=c,n=i._eval(e,t),delete this._eval,n===i)return this;i._eval=function(){return n}}if(n&&"object"==typeof n){var r=this.definition().escaped;if(r&&t>r)return this}return n}));var r={Array:Array,Math:Math,Number:Number,Object:Object,String:String},o=Bi({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(gt,(function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof pe&&(n=n._eval(e,t))===this.property)return this;var i,a=this.expression;if(yi(a)){var s,u="hasOwnProperty"===a.name&&"call"===n&&(s=e.parent()&&e.parent().args)&&s&&s[0]&&s[0].evaluate(e);if(null==(u=u instanceof Dt?u.expression:u)||u.thedef&&u.thedef.undeclared)return this.clone();var c=o.get(a.name);if(!c||!c.has(n))return this;i=r[a.name]}else{if(!(i=a._eval(e,t+1))||i===a||!D(i,n))return this;if("function"==typeof i)switch(n){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[n]}return this})),e(mt,(function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof gt){var i,o=n.property;if(o instanceof pe&&(o=o._eval(e,t))===n.property)return this;var a=n.expression;if(yi(a)){var s="hasOwnProperty"===a.name&&"call"===o&&this.args[0]&&this.args[0].evaluate(e);if(null==(s=s instanceof Dt?s.expression:s)||s.thedef&&s.thedef.undeclared)return this.clone();var u=Gi.get(a.name);if(!u||!u.has(o))return this;i=r[a.name]}else{if((i=a._eval(e,t+1))===a||!i)return this;var c=Ui.get(i.constructor.name);if(!c||!c.has(o))return this}for(var l=[],f=0,p=this.args.length;f=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i);case"??":return r.right=r.right.negate(e),n(this,r,i)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,n){return t.call(this,e,n)}))}));var Hi=E("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");mt.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==n||n.thedef&&n.thedef.undeclared))return!1;if(yi(t)&&Hi.has(t.name))return!0;let i;if(t instanceof Dt&&yi(t.expression)&&(i=Gi.get(t.expression.name))&&i.has(t.property))return!0}return!!T(this,Mn)||!e.pure_funcs(this)})),pe.DEFMETHOD("is_call_pure",s),Dt.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;return t instanceof Ft?n=Ui.get("Array"):t.is_boolean()?n=Ui.get("Boolean"):t.is_number(e)?n=Ui.get("Number"):t instanceof dn?n=Ui.get("RegExp"):t.is_string(e)?n=Ui.get("String"):this.may_throw_on_access(e)||(n=Ui.get("Object")),n&&n.has(this.property)}));const Xi=new Set(["Number","String","Array","Object","Function","Promise"]);function zi(e){return e&&e.aborts()}!function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(pe,u),e(ve,s),e(ln,s),e(un,s),e(De,(function(e){return t(this.body,e)})),e(mt,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(et,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(it,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(rt,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(Qe,(function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)})),e(Te,(function(e){return this.body.has_side_effects(e)})),e(he,(function(e){return this.body.has_side_effects(e)})),e(Ie,s),e(It,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(yt,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(Ct,u),e(bt,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e(vt,(function(e){return ki.has(this.operator)||this.expression.has_side_effects(e)})),e(rn,(function(e){return!this.is_declared(e)&&!Xi.has(this.name)})),e($t,s),e(Ut,s),e(Mt,(function(e){return t(this.properties,e)})),e(Rt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value.has_side_effects(e)})),e(Lt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(kt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Nt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(xt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Ft,(function(e){return t(this.elements,e)})),e(Dt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(St,(function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)})),e(Et,(function(e){return t(this.expressions,e)})),e(st,(function(e){return t(this.definitions,e)})),e(ft,(function(){return this.value})),e(He,s),e(Ge,(function(e){return t(this.segments,e)}))}((function(e,t){e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(pe,u),e(ln,s),e(ve,s),e(Ie,s),e(Ut,s),e(un,s),e(It,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(Ft,(function(e){return t(this.elements,e)})),e(Ct,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof rn)&&this.left.may_throw(e)})),e(yt,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(De,(function(e){return t(this.body,e)})),e(mt,(function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof Ie)||t(this.expression.body,e)))})),e(it,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(bt,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(st,(function(e){return t(this.definitions,e)})),e(Dt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(Qe,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Te,(function(e){return this.body.may_throw(e)})),e(Mt,(function(e){return t(this.properties,e)})),e(Rt,(function(e){return this.value.may_throw(e)})),e(Lt,(function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(kt,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Nt,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(xt,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(We,(function(e){return this.value&&this.value.may_throw(e)})),e(Et,(function(e){return t(this.expressions,e)})),e(he,(function(e){return this.body.may_throw(e)})),e(St,(function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)})),e(et,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(rn,(function(e){return!this.is_declared(e)&&!Xi.has(this.name)})),e($t,s),e(rt,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e(vt,(function(e){return!("typeof"==this.operator&&this.expression instanceof rn)&&this.expression.may_throw(e)})),e(ft,(function(e){return!!this.value&&this.value.may_throw(e)}))}((function(e,t){e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return yn(this,n=>{if(n instanceof rn){if(ii(this,16))return t=!1,Cn;var r=n.definition();if(i(r,this.enclosed)&&!this.variables.has(r.name)){if(e){var o=e.find_variable(n);if(r.undeclared?!o:o===r)return t="f",!0}return t=!1,Cn}return!0}if(n instanceof un&&this instanceof Ve)return t=!1,Cn}),t}e(pe,s),e(ln,u),e(It,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(Ie,t),e(vt,(function(){return this.expression.is_constant_expression()})),e(yt,(function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()})),e(Ft,(function(){return this.elements.every(e=>e.is_constant_expression())})),e(Mt,(function(){return this.properties.every(e=>e.is_constant_expression())})),e(Rt,(function(){return!(this.key instanceof pe)&&this.value.is_constant_expression()}))}((function(e,t){e.DEFMETHOD("is_constant_expression",t)})),function(e){function t(){for(var e=0;e{if(e instanceof Ut){const n=e.definition();!t&&!n.global||o.has(n.id)||o.set(n.id,n)}}),n.value){if(n.name instanceof Ke)n.walk(_);else{var r=n.name.definition();g(c,r.id,n.value),r.chained||n.name.fixed_value()!==n.value||a.set(r.id,n)}n.value.has_side_effects(e)&&n.value.walk(_)}})),!0}return h(r,s)}}));t.walk(_),_=new On(h),o.forEach((function(e){var t=c.get(e.id);t&&t.forEach((function(e){e.walk(_)}))}));var d=new Fn((function(s,c,_){var h=d.parent();if(i){const e=r(s);if(e instanceof rn){var E=e.definition(),g=o.has(E.id);if(s instanceof Ct){if(!g||a.has(E.id)&&a.get(E.id)!==s)return Ei(h,s,s.right.transform(d))}else if(!g)return _?f.skip:p(pn,s,{value:0})}}if(l===t){if(s.name&&(s instanceof Vt&&!S(e.option("keep_classnames"),(E=s.name.definition()).name)||s instanceof Pe&&!S(e.option("keep_fnames"),(E=s.name.definition()).name))&&(!o.has(E.id)||E.orig.length>1)&&(s.name=null),s instanceof Ie&&!(s instanceof Le))for(var D=!e.option("keep_fargs"),v=s.argnames,A=v.length;--A>=0;){var T=v[A];T instanceof ke&&(T=T.expression),T instanceof Ot&&(T=T.left),T instanceof Ke||o.has(T.definition().id)?D=!1:(ri(T,1),D&&(v.pop(),e[T.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",R(T))))}if((s instanceof Be||s instanceof Pt)&&s!==t){const t=s.name.definition();if(!(t.global&&!n||o.has(t.id))){if(e[s.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",R(s.name)),t.eliminated++,s instanceof Pt){const t=s.drop_side_effect_free(e);if(t)return p(he,s,{body:t})}return _?f.skip:p(ve,s)}}if(s instanceof st&&!(h instanceof Me&&h.init===s)){var y=!(h instanceof Ne||s instanceof ut),b=[],C=[],O=[],F=[];switch(s.definitions.forEach((function(t){t.value&&(t.value=t.value.transform(d));var n=t.name instanceof Ke,r=n?new zn(null,{name:""}):t.name.definition();if(y&&r.global)return O.push(t);if(!i&&!y||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||o.has(r.id)){if(t.value&&a.has(r.id)&&a.get(r.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof Gt){var c=u.get(r.id);if(c.length>1&&(!t.value||r.orig.indexOf(t.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",R(t.name)),t.value){var l=p(rn,t.name,t.name);r.references.push(l);var f=p(Ct,t,{operator:"=",left:l,right:t.value});a.get(r.id)===t&&a.set(r.id,f),F.push(f.transform(d))}return m(c,t),void r.eliminated++}}t.value?(F.length>0&&(O.length>0?(F.push(t.value),t.value=mi(t.value,F)):b.push(p(he,s,{body:mi(s,F)})),F=[]),O.push(t)):C.push(t)}else if(r.orig[0]instanceof Qt){(_=t.value&&t.value.drop_side_effect_free(e))&&F.push(_),t.value=null,C.push(t)}else{var _;(_=t.value&&t.value.drop_side_effect_free(e))?(n||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",R(t.name)),F.push(_)):n||e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",R(t.name)),r.eliminated++}})),(C.length>0||O.length>0)&&(s.definitions=C.concat(O),b.push(s)),F.length>0&&b.push(p(he,s,{body:mi(s,F)})),b.length){case 0:return _?f.skip:p(ve,s);case 1:return b[0];default:return _?f.splice(b):p(Se,s,{body:b})}}if(s instanceof Fe)return c(s,this),s.init instanceof Se&&(M=s.init,s.init=M.body.pop(),M.body.push(s)),s.init instanceof he?s.init=s.init.body:Si(s.init)&&(s.init=null),M?_?f.splice(M.body):M:s;if(s instanceof Te&&s.body instanceof Fe){if(c(s,this),s.body instanceof Se){var M=s.body;return s.body=M.body.pop(),M.body.push(s),_?f.splice(M.body):M}return s}if(s instanceof Se)return c(s,this),_&&s.body.every(vi)?f.splice(s.body):s;if(s instanceof xe){const e=l;return l=s,c(s,this),l=e,s}}function R(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}}));function h(e,n){var i;const s=r(e);if(s instanceof rn&&!pi(e.left,Ht)&&t.variables.get(s.name)===(i=s.definition()))return e instanceof Ct&&(e.right.walk(_),i.chained||e.left.fixed_value()!==e.right||a.set(i.id,e)),!0;if(e instanceof rn){if(i=e.definition(),!o.has(i.id)&&(o.set(i.id,i),i.orig[0]instanceof Qt)){const e=i.scope.is_block_scope()&&i.scope.get_defun_scope().variables.get(i.name);e&&o.set(e.id,e)}return!0}if(e instanceof xe){var u=l;return l=e,n(),l=u,!0}}t.transform(d)})),xe.DEFMETHOD("hoist_declarations",(function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),i=e.option("hoist_vars");if(n||i){var r=[],o=[],a=new Map,s=0,u=0;yn(t,e=>e instanceof xe&&e!==t||(e instanceof ut?(++u,!0):void 0)),i=i&&u>1;var c=new Fn((function(u){if(u!==t){if(u instanceof me)return r.push(u),p(ve,u);if(n&&u instanceof Be&&!(c.parent()instanceof dt)&&c.parent()===t)return o.push(u),p(ve,u);if(i&&u instanceof ut){u.definitions.forEach((function(e){e.name instanceof Ke||(a.set(e.name.name,e),++s)}));var l=u.to_assignments(e),f=c.parent();if(f instanceof Me&&f.init===u){if(null==l){var _=u.definitions[0].name;return p(rn,_,_)}return l}return f instanceof Fe&&f.init===u?l:l?p(he,u,{body:l}):p(ve,u)}if(u instanceof xe)return u}}));if(t=t.transform(c),s>0){var l=[];const e=t instanceof Ie,n=e?t.args_as_names():null;if(a.forEach((t,i)=>{e&&n.some(e=>e.name===t.name.name)?a.delete(i):((t=t.clone()).value=null,l.push(t),a.set(i,t))}),l.length>0){for(var f=0;f"string"==typeof e.key)){a(o,this);const e=new Map,t=[];return c.properties.forEach((function(n){t.push(p(ft,o,{name:s(r,n.key,e),value:n.value}))})),i.set(u.id,e),f.splice(t)}}else if(o instanceof gt&&o.expression instanceof rn){const e=i.get(o.expression.definition().id);if(e){const t=e.get(String(wi(o.property))),n=p(rn,o,{name:t.name,scope:o.expression.scope,thedef:t});return n.reference({}),n}}function s(e,n,i){const r=p(e.CTOR,e,{name:t.make_var_name(e.name+"_"+n),scope:t}),o=t.def_variable(r);return i.set(String(n),o),t.enclosed.push(o),r}}));return t.transform(r)})),function(e){function t(e,t,n){var i=e.length;if(!i)return null;for(var r=[],o=!1,a=0;a0&&(u[0].body=s.concat(u[0].body)),e.body=u;n=u[u.length-1];){var d=n.body[n.body.length-1];if(d instanceof $e&&t.loopcontrol_target(d)===e&&n.body.pop(),n.body.length||n instanceof it&&(o||n.expression.has_side_effects(t)))break;u.pop()===o&&(o=null)}if(0==u.length)return p(Se,e,{body:s.concat(p(he,e.expression,{body:e.expression}))}).optimize(t);if(1==u.length&&(u[0]===a||u[0]===o)){var m=!1,h=new On((function(t){if(m||t instanceof Ie||t instanceof he)return!0;t instanceof $e&&h.loopcontrol_target(t)===e&&(m=!0)}));if(e.walk(h),!m){var E,g=u[0].body.slice();return(E=u[0].expression)&&g.unshift(p(he,E,{body:E})),g.unshift(p(he,e.expression,{body:e.expression})),p(Se,e,{body:g}).optimize(t)}}return e;function D(e,n){n&&!zi(n)?n.body=n.body.concat(e.body):Ri(t,e,s)}})),si(rt,(function(e,t){if(Mi(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Si)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Si)){var n=[];return e.bcatch&&Ri(t,e.bcatch,n),e.bfinally&&n.push(...e.bfinally.body),p(Se,e,{body:n}).optimize(t)}return e})),st.DEFMETHOD("remove_initializers",(function(){var e=[];this.definitions.forEach((function(t){t.name instanceof Ut?(t.value=null,e.push(t)):yn(t.name,n=>{n instanceof Ut&&e.push(p(ft,t,{name:n,value:null}))})})),this.definitions=e})),st.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce((function(e,n){if(!n.value||n.name instanceof Ke){if(n.value){var i=p(ft,n,{name:n.name,value:n.value}),r=p(ut,n,{definitions:[i]});e.push(r)}}else{var o=p(rn,n.name,n.name);e.push(p(Ct,n,{operator:"=",left:o,right:n.value})),t&&(o.definition().fixed=!1)}return(n=n.name.definition()).eliminated++,n.replaced--,e}),[]);return 0==n.length?null:mi(this,n)})),si(st,(function(e){return 0==e.definitions.length?p(ve,e):e})),si(_t,(function(e){return e})),si(mt,(function(e,t){var n=e.expression,i=n;sr(e,t,e.args);var r=e.args.every(e=>!(e instanceof ke));if(t.option("reduce_vars")&&i instanceof rn&&!T(e,wn)){const e=i.fixed_value();ji(e,t)||(i=e)}var o=i instanceof Ie;if(t.option("unused")&&r&&o&&!i.uses_arguments&&!i.pinned()){for(var a=0,s=0,u=0,c=e.args.length;u=i.argnames.length;if(l||ii(i.argnames[u],1)){if(D=e.args[u].drop_side_effect_free(t))e.args[a++]=D;else if(!l){e.args[a++]=p(pn,e.args[u],{value:0});continue}}else e.args[a++]=e.args[u];s=a}e.args.length=s}if(t.option("unsafe"))if(yi(n))switch(n.name){case"Array":if(1!=e.args.length)return p(Ft,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof pn&&e.args[0].value<=11){const t=[];for(let n=0;n=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);return f.push(n),e!==n})){let[n,i]=f;n=A(new RegExp(n).source);const r=p(dn,e,{value:{source:n,flags:i}});if(r._eval(t)!==r)return r;t.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(n instanceof Dt)switch(n.property){case"toString":if(0==e.args.length&&!n.expression.may_throw_on_access(t))return p(yt,e,{left:p(fn,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof Ft)e:{var _;if(!(e.args.length>0&&(_=e.args[0].evaluate(t))===e.args[0])){var d,m=[],h=[];for(u=0,c=n.expression.elements.length;u0&&(m.push(p(fn,e,{value:h.join(_)})),h.length=0),m.push(E))}return h.length>0&&m.push(p(fn,e,{value:h.join(_)})),0==m.length?p(fn,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:p(yt,m[0],{operator:"+",left:p(fn,e,{value:""}),right:m[0]}):""==_?(d=m[0].is_string(t)||m[1].is_string(t)?m.shift():p(fn,e,{value:""}),m.reduce((function(e,t){return p(yt,t,{operator:"+",left:e,right:t})}),d).optimize(t)):((D=e.clone()).expression=D.expression.clone(),D.expression.expression=D.expression.expression.clone(),D.expression.expression.elements=m,Vi(t,e,D));var D}}break;case"charAt":if(n.expression.is_string(t)){var S=e.args[0],v=S?S.evaluate(t):0;if(v!==S)return p(St,n,{expression:n.expression,property:hi(0|v,S||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof Ft)return(L=e.args[1].elements.slice()).unshift(e.args[0]),p(mt,e,{expression:p(Dt,n,{expression:n.expression,property:"call"}),args:L}).optimize(t);break;case"call":var y=n.expression;if(y instanceof rn&&(y=y.fixed_value()),y instanceof Ie&&!y.contains_this())return(e.args.length?mi(this,[e.args[0],p(mt,e,{expression:n.expression,args:e.args.slice(1)})]):p(mt,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&yi(n)&&"Function"==n.name){if(0==e.args.length)return p(Pe,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(e=>e instanceof fn))try{var b=ce(M="n(function("+e.args.slice(0,-1).map((function(e){return e.value})).join(",")+"){"+e.args[e.args.length-1].value+"})"),C={ie8:t.option("ie8")};b.figure_out_scope(C);var O,F=new ai(t.options);(b=b.transform(F)).figure_out_scope(C),qn.reset(),b.compute_char_frequency(C),b.mangle_names(C),yn(b,e=>{if(li(e))return O=e,Cn});var M=Bn();return Se.prototype._codegen.call(O,O,M),e.args=[p(fn,e,{value:O.argnames.map((function(e){return e.print_to_string()})).join(",")}),p(fn,e.args[e.args.length-1],{value:M.get().replace(/^{|}$/g,"")})],e}catch(n){if(!(n instanceof Q))throw n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}var R=o&&i.body[0],w=o&&!i.is_generator&&!i.async,x=w&&t.option("inline")&&!e.is_expr_pure(t);if(x&&R instanceof We){let n=R.value;if(!n||n.is_constant_expression()){n=n?n.clone(!0):p(gn,e);const i=e.args.concat(n);return mi(e,i).optimize(t)}if(1===i.argnames.length&&i.argnames[0]instanceof Wt&&e.args.length<2&&n instanceof rn&&n.name===i.argnames[0].name){let n;return e.args[0]instanceof gt&&(n=t.parent())instanceof mt&&n.expression===e?mi(e,[p(pn,e,{value:0}),e.args[0].optimize(t)]):(e.args[0]||p(gn)).optimize(t)}}if(x){var N,k,I=-1;let o,a,s;if(r&&!i.uses_arguments&&!i.pinned()&&!(t.parent()instanceof It)&&!(i.name&&i instanceof Pe)&&(a=function(e){var n=i.body,r=n.length;if(t.option("inline")<3)return 1==r&&V(e);e=null;for(var o=0;o!e.value))return!1}else{if(e)return!1;a instanceof ve||(e=a)}}return V(e)}(R))&&(n===i||T(e,Rn)||t.option("unused")&&1==(o=n.definition()).references.length&&!Ji(t,o)&&i.is_constant_expression(n.scope))&&!T(e,Mn|wn)&&!i.contains_this()&&function(){var n=new Set;do{if((N=t.parent(++I)).is_block_scope()&&N.block_scope&&N.block_scope.variables.forEach((function(e){n.add(e.name)})),N instanceof ot)N.argname&&n.add(N.argname.name);else if(N instanceof ye)k=[];else if(N instanceof rn&&N.fixed_value()instanceof xe)return!1}while(!(N instanceof xe));var r=!(N instanceof Ne)||t.toplevel.vars,o=t.option("inline");return!!function(e,t){for(var n=i.body.length,r=0;r=0;){var s=o.definitions[a].name;if(s instanceof Ke||e.has(s.name)||Oi.has(s.name)||N.var_names().has(s.name))return!1;k&&k.push(s.definition())}}}return!0}(n,o>=3&&r)&&(!!function(e,t){for(var n=0,r=i.argnames.length;n=2&&r)&&(!!function(){var t=new Set;const n=e=>{if(e instanceof xe){var n=new Set;return e.enclosed.forEach((function(e){n.add(e.name)})),e.variables.forEach((function(e){n.delete(e)})),n.forEach((function(e){t.add(e)})),!0}};for(let t=0;t=0;){var s=o.definitions[a].name;if(s instanceof Ke||t.has(s.name))return!1}}return!0}()&&(!k||0==k.length||!tr(i,k))))}()&&(s=_i(t))&&!Qi(s,i)&&!function(){let e,n=0;for(;e=t.parent(n++);){if(e instanceof Ot)return!0;if(e instanceof De)break}return!1}()&&!(N instanceof It))return ri(i,256),s.add_child_scope(i),mi(e,function(n){var r=[],o=[];if(function(t,n){for(var r=i.argnames.length,o=e.args.length;--o>=r;)n.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(ii(a,1)||!a.name||N.var_names().has(a.name))s&&n.push(s);else{var u=p(Gt,a,a);a.definition().orig.push(u),!s&&k&&(s=p(gn,e)),B(t,n,u,s)}}t.reverse(),n.reverse()}(r,o),function(e,t){for(var n=t.length,r=0,o=i.body.length;re.name!=l.name)){var f=i.variables.get(l.name),_=p(rn,l,l);f.references.push(_),t.splice(n++,0,p(Ct,c,{operator:"=",left:_,right:p(gn,l)}))}}}}(r,o),o.push(n),r.length){const e=N.body.indexOf(t.parent(I-1))+1;N.body.splice(e,0,p(ut,i,{definitions:r}))}return o.map(e=>e.clone(!0))}(a)).optimize(t)}if(w&&t.option("side_effects")&&i.body.every(Si)){var L=e.args.concat(p(gn,e));return mi(e,L).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof he&&Ti(e))return e.negate(t,!0);var P=e.evaluate(t);return P!==e?(P=hi(P,e).optimize(t),Vi(t,P,e)):e;function V(t){return t?t instanceof We?t.value?t.value.clone(!0):p(gn,e):t instanceof he?p(At,t,{operator:"void",expression:t.body.clone(!0)}):void 0:p(gn,e)}function B(t,n,i,r){var o=i.definition();N.variables.set(i.name,o),N.enclosed.push(o),N.var_names().has(i.name)||(N.add_var_name(i.name),t.push(p(ft,i,{name:i,value:null})));var a=p(rn,i,i);o.references.push(a),r&&n.push(p(Ct,e,{operator:"=",left:a,right:r.clone()}))}})),si(ht,(function(e,t){return t.option("unsafe")&&yi(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?p(mt,e,e).transform(t):e})),si(Et,(function(e,t){if(!t.option("side_effects"))return e;var n,i,r=[];n=In(t),i=e.expressions.length-1,e.expressions.forEach((function(e,o){o0&&xi(r[o],t);)o--;o0)return(n=this.clone()).right=mi(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),mi(this,t).optimize(e)}}return this}));var Zi=E("== === != !== * & | ^");function Ji(e,t){for(var n,i=0;n=e.parent(i);i++)if(n instanceof Ie||n instanceof It){var r=n.name;if(r&&r.definition()===t)break}return n}function Qi(e,t){for(const n of t.enclosed){if(t.variables.has(n.name))continue;const i=e.find_variable(n.name);if(i){if(i===n)continue;return!0}}return!1}function er(e,t){return e instanceof rn||e.TYPE===t.TYPE}function tr(e,t){const n=e=>{if(e instanceof rn&&i(e.definition(),t))return Cn};return bn(e,(t,i)=>{if(t instanceof xe&&t!==e){var r=i.parent();if(r instanceof mt&&r.expression===t)return;return!yn(t,n)||Cn}})}si(yt,(function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function i(t){if(n()){t&&(e.operator=t);var i=e.left;e.left=e.right,e.right=i}}if(Zi.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof yt&&se[e.left.operator]>=se[e.operator]||i()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&xi(e.left,t))e.left=p(hn,e.left);else if(t.option("typeofs")&&e.left instanceof fn&&"undefined"==e.left.value&&e.right instanceof At&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof rn?!o.is_declared(t):o instanceof gt&&t.option("ie8"))||(e.right=o,e.left=p(gn,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof rn&&e.right instanceof rn&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof Ft||u instanceof Ie||u instanceof Mt||u instanceof It))return p("="==e.operator[0]?Tn:An,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof yt&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof yt&&a.operator==e.right.operator&&(xi(a.left,t)&&e.right.left instanceof hn||a.left instanceof hn&&xi(e.right.left,t))&&!a.right.has_side_effects(t)&&a.right.equivalent_to(e.right.right)){var s=p(yt,e,{operator:a.operator.slice(0,-1),left:p(hn,e),right:a.right});return a!==e.left&&(s=p(yt,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),mi(e,[e.right,p(Tn,e)]).optimize(t);if(l&&"string"==typeof l)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),mi(e,[e.left,p(Tn,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof yt)||t.parent()instanceof Ct){var f=p(At,e,{operator:"!",expression:e.negate(t,In(t))});e=Vi(t,e,f)}if(t.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof fn&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof fn&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof yt&&"+"==e.left.operator&&e.left.left instanceof fn&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!ii(e.left,2)||!ii(e.left,4)&&e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),Ei(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof pe))return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),mi(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof pe)){if("&&"==(_=t.parent()).operator&&_.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(t)}}else{if(t.in_boolean_context())return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),mi(e,[e.left,p(An,e)]).optimize(t);ri(e,4)}if("||"==e.left.operator)if(!(d=e.left.right.evaluate(t)))return p(bt,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var _,d;if(!(c=!!ii(e.left,2)||!ii(e.left,4)&&e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),mi(e,[e.left,e.right]).optimize(t);if(!(c instanceof pe))return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),Ei(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof pe)){if(t.in_boolean_context())return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),mi(e,[e.left,p(Tn,e)]).optimize(t);ri(e,2)}}else if("||"==(_=t.parent()).operator&&_.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(t);if("&&"==e.left.operator)if((d=e.left.right.evaluate(t))&&!(d instanceof pe))return p(bt,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(rr(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof pe))return null==c?e.right:e.left;if(t.in_boolean_context()){const n=e.right.evaluate(t);if(!(n instanceof pe||n))return e.left}}var m=!0;switch(e.operator){case"+":if(e.left instanceof ln&&e.right instanceof yt&&"+"==e.right.operator&&e.right.is_string(t)){var h=(g=p(yt,e,{operator:"+",left:e.left,right:e.right.left})).optimize(t);g!==h&&(e=p(yt,e,{operator:"+",left:h,right:e.right.right}))}if(e.right instanceof ln&&e.left instanceof yt&&"+"==e.left.operator&&e.left.is_string(t)){var E=(g=p(yt,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);g!==E&&(e=p(yt,e,{operator:"+",left:e.left.left,right:E}))}if(e.left instanceof yt&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof yt&&"+"==e.right.operator&&e.right.is_string(t)){var g,D=(g=p(yt,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);g!==D&&(e=p(yt,e,{operator:"+",left:p(yt,e.left,{operator:"+",left:e.left.left,right:D}),right:e.right.right}))}if(e.right instanceof At&&"-"==e.right.operator&&e.left.is_number(t)){e=p(yt,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof At&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=p(yt,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Ge){h=e.left;if((E=e.right.evaluate(t))!=e.right)return h.segments[h.segments.length-1].value+=E.toString(),h}if(e.right instanceof Ge){E=e.right;if((h=e.left.evaluate(t))!=e.left)return E.segments[0].value=h.toString()+E.segments[0].value,E}if(e.left instanceof Ge&&e.right instanceof Ge){var S=(h=e.left).segments;E=e.right;S[S.length-1].value+=E.segments[0].value;for(var v=1;v=se[e.operator])){var A=p(yt,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof ln&&!(e.left instanceof ln)?Vi(t,A,e):Vi(t,e,A)}m&&e.is_number(t)&&(e.right instanceof yt&&e.right.operator==e.operator&&(e=p(yt,e,{operator:e.operator,left:p(yt,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof ln&&e.left instanceof yt&&e.left.operator==e.operator&&(e.left.left instanceof ln?e=p(yt,e,{operator:e.operator,left:p(yt,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof ln&&(e=p(yt,e,{operator:e.operator,left:p(yt,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof yt&&e.left.operator==e.operator&&e.left.right instanceof ln&&e.right instanceof yt&&e.right.operator==e.operator&&e.right.left instanceof ln&&(e=p(yt,e,{operator:e.operator,left:p(yt,e.left,{operator:e.operator,left:p(yt,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof yt&&e.right.operator==e.operator&&(Ni.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=p(yt,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var T=e.evaluate(t);return T!==e?(T=hi(T,e).optimize(t),Vi(t,T,e)):e})),si(on,(function(e){return e})),si(rn,(function(e,t){if(!t.option("ie8")&&yi(e)&&(!e.scope.uses_with||!t.find_parent(we)))switch(e.name){case"undefined":return p(gn,e).optimize(t);case"NaN":return p(En,e).optimize(t);case"Infinity":return p(Sn,e).optimize(t)}var n=t.parent();if(t.option("reduce_vars")&&Ii(e,n)!==e){const f=e.definition();if(t.top_retain&&f.global&&t.top_retain(f))return f.fixed=!1,f.should_replace=!1,f.single_use=!1,e;var i=e.fixed_value(),r=f.single_use&&!(n instanceof mt&&n.is_expr_pure(t)||T(n,wn));if(r&&(i instanceof Ie||i instanceof It))if(ji(i,t))r=!1;else if(f.scope!==e.scope&&(1==f.escaped||ii(i,16)||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof _e)return!1;if(t instanceof Ft||t instanceof wt||t instanceof Mt)return!0}return!1}(t)))r=!1;else if(Ji(t,f))r=!1;else if((f.scope!==e.scope||f.orig[0]instanceof Wt)&&"f"==(r=i.is_constant_expression(e.scope))){var o=e.scope;do{(o instanceof Be||li(o))&&ri(o,16)}while(o=o.parent_scope)}if(r&&i instanceof Ie){const o=_i(t);r=f.scope===e.scope&&!Qi(o,i)||n instanceof mt&&n.expression===e&&!Qi(o,i)}if(r&&i instanceof It){r=(!i.extends||!i.extends.may_throw(t)&&!i.extends.has_side_effects(t))&&!i.properties.some(e=>e.may_throw(t)||e.has_side_effects(t))}if(r&&i){if(i instanceof Pt&&(ri(i,256),i=p(Vt,i,i)),i instanceof Be&&(ri(i,256),i=p(Pe,i,i)),f.recursive_refs>0&&i.name instanceof Yt){const e=i.name.definition();let t=i.variables.get(i.name.name),n=t&&t.orig[0];n instanceof jt||(n=p(jt,i.name,i.name),n.scope=i,i.name=n,t=i.def_function(n)),yn(i,n=>{n instanceof rn&&n.definition()===e&&(n.thedef=t,t.references.push(n))})}return(i instanceof Ie||i instanceof It)&&_i(t).add_child_scope(i),i.optimize(t)}if(i&&void 0===f.should_replace){let e;if(i instanceof un)f.orig[0]instanceof Wt||!f.references.every(e=>f.scope===e.scope)||(e=i);else{var a=i.evaluate(t);a===i||!t.option("unsafe_regexp")&&a instanceof RegExp||(e=hi(a,i))}if(e){var s,u=e.optimize(t).size();yn(i,e=>{if(e instanceof rn)return Cn})?s=function(){var n=e.optimize(t);return n===e?n.clone(!0):n}:(u=Math.min(u,i.size()),s=function(){var n=Li(e.optimize(t),i);return n===e||n===i?n.clone(!0):n});var c=f.name.length,l=0;t.option("unused")&&!t.exposed(f)&&(l=(c+2+u)/(f.references.length-f.assignments)),f.should_replace=u<=c+l&&s}else f.should_replace=!1}if(f.should_replace)return f.should_replace()}return e})),si(gn,(function(e,t){if(t.option("unsafe_undefined")){var n=di(t,"undefined");if(n){var i=p(rn,e,{name:"undefined",scope:n.scope,thedef:n});return ri(i,8),i}}var r=Ii(t.self(),t.parent());return r&&er(r,e)?e:p(At,e,{operator:"void",expression:p(pn,e,{value:0})})})),si(Sn,(function(e,t){var n=Ii(t.self(),t.parent());return n&&er(n,e)?e:!t.option("keep_infinity")||n&&!er(n,e)||di(t,"Infinity")?p(yt,e,{operator:"/",left:p(pn,e,{value:1}),right:p(pn,e,{value:0})}):e})),si(En,(function(e,t){var n=Ii(t.self(),t.parent());return n&&!er(n,e)||di(t,"NaN")?p(yt,e,{operator:"/",left:p(pn,e,{value:0}),right:p(pn,e,{value:0})}):e}));const nr=E("+ - / * % >> << >>> | ^ &"),ir=E("* | ^ &");function rr(e){let t;return e instanceof hn||xi(e)||e instanceof rn&&(t=e.definition().fixed)instanceof pe&&rr(t)}function or(e,t){return e instanceof rn&&(e=e.fixed_value()),!!e&&(!(e instanceof Ie||e instanceof It)||(!(e instanceof Ie&&e.contains_this())||t.parent()instanceof ht))}function ar(e,t){return t.in_boolean_context()?Vi(t,e,mi(e,[e,p(Tn,e)]).optimize(t)):e}function sr(e,t,n){for(var i=0;i0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(o=function(){for(var e=s.args,t=u.args,n=0,i=e.length;n=2020&&function(e,t,n){if(t.may_throw(n))return!1;let i;if(e instanceof yt&&"=="===e.operator&&((i=rr(e.left)&&e.left)||(i=rr(e.right)&&e.right))&&(i===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof yt&&"||"===e.operator){let n,i;const r=e=>{if(!(e instanceof yt)||"==="!==e.operator&&"=="!==e.operator)return!1;let r,o=0;return e.left instanceof hn&&(o++,n=e,r=e.right),e.right instanceof hn&&(o++,n=e,r=e.left),xi(e.left)&&(o++,i=e,r=e.right),xi(e.right)&&(o++,i=e,r=e.left),1===o&&!!r.equivalent_to(t)};if(!r(e.left))return!1;if(!r(e.right))return!1;if(n&&i&&n!==i)return!0}return!1}(a,u,t))return p(yt,e,{operator:"??",left:u,right:s}).optimize(t);if(u instanceof Et&&s.equivalent_to(u.expressions[u.expressions.length-1]))return mi(e,[p(yt,e,{operator:"||",left:a,right:mi(e,u.expressions.slice(0,-1))}),s]).optimize(t);if(u instanceof yt&&"&&"==u.operator&&s.equivalent_to(u.right))return p(yt,e,{operator:"&&",left:p(yt,e,{operator:"||",left:a,right:u.left}),right:s}).optimize(t);if(s instanceof bt&&s.alternative.equivalent_to(u))return p(bt,e,{condition:p(yt,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:u});if(s.equivalent_to(u))return mi(e,[e.condition,s]).optimize(t);if(s instanceof yt&&"||"==s.operator&&s.right.equivalent_to(u))return p(yt,e,{operator:"||",left:p(yt,e,{operator:"&&",left:e.condition,right:s.left}),right:u}).optimize(t);var l=t.in_boolean_context();return _(e.consequent)?d(e.alternative)?f(e.condition):p(yt,e,{operator:"||",left:f(e.condition),right:e.alternative}):d(e.consequent)?_(e.alternative)?f(e.condition.negate(t)):p(yt,e,{operator:"&&",left:f(e.condition.negate(t)),right:e.alternative}):_(e.alternative)?p(yt,e,{operator:"||",left:f(e.condition.negate(t)),right:e.consequent}):d(e.alternative)?p(yt,e,{operator:"&&",left:f(e.condition),right:e.consequent}):e;function f(e){return e.is_boolean()?e:p(At,e,{operator:"!",expression:e.negate(t)})}function _(e){return e instanceof Tn||l&&e instanceof ln&&e.getValue()||e instanceof At&&"!"==e.operator&&e.expression instanceof ln&&!e.expression.getValue()}function d(e){return e instanceof An||l&&e instanceof ln&&!e.getValue()||e instanceof At&&"!"==e.operator&&e.expression instanceof ln&&e.expression.getValue()}})),si(vn,(function(e,t){if(t.in_boolean_context())return p(pn,e,{value:+e.value});var n=t.parent();return t.option("booleans_as_integers")?(n instanceof yt&&("==="==n.operator||"!=="==n.operator)&&(n.operator=n.operator.replace(/=$/,"")),p(pn,e,{value:+e.value})):t.option("booleans")?n instanceof yt&&("=="==n.operator||"!="==n.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:n.operator,value:e.value,file:n.start.file,line:n.start.line,col:n.start.col}),p(pn,e,{value:+e.value})):p(At,e,{operator:"!",expression:p(pn,e,{value:1-e.value})}):e})),si(St,(function(e,t){var n,i=e.expression,r=e.property;if(t.option("properties")){var o=r.evaluate(t);if(o!==r){if("string"==typeof o)if("undefined"==o)o=void 0;else(A=parseFloat(o)).toString()==o&&(o=A);r=e.property=Li(r,hi(o,r).transform(t));var a=""+o;if(j(a)&&a.length<=r.size()+1)return p(Dt,e,{expression:i,property:a,quote:r.quote}).optimize(t)}}e:if(t.option("arguments")&&i instanceof rn&&"arguments"==i.name&&1==i.definition().orig.length&&(n=i.scope)instanceof Ie&&n.uses_arguments&&!(n instanceof Ve)&&r instanceof pn){for(var s=r.getValue(),u=new Set,c=n.argnames,l=0;l1)&&(_=null)}else if(!_&&!t.option("keep_fargs")&&s=n.argnames.length;)_=p(Wt,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(_),n.enclosed.push(n.def_variable(_));if(_){var m=p(rn,e,_);return m.reference({}),oi(_,1),m}}if(Ii(e,t.parent()))return e;if(o!==r){var h=e.flatten_object(a,t);h&&(i=e.expression=h.expression,r=e.property=h.property)}if(t.option("properties")&&t.option("side_effects")&&r instanceof pn&&i instanceof Ft){s=r.getValue();var E=i.elements,g=E[s];e:if(or(g,t)){for(var D=!0,S=[],v=E.length;--v>s;){(A=E[v].drop_side_effect_free(t))&&(S.unshift(A),D&&A.has_side_effects(t)&&(D=!1))}if(g instanceof ke)break e;for(g=g instanceof Dn?p(gn,g):g,D||S.unshift(g);--v>=0;){var A;if((A=E[v])instanceof ke)break e;(A=A.drop_side_effect_free(t))?S.unshift(A):s--}return D?(S.push(g),mi(e,S).optimize(t)):p(St,e,{expression:p(Ft,i,{elements:S}),property:p(pn,r,{value:s})})}}var T=e.evaluate(t);return T!==e?Vi(t,T=hi(T,e).optimize(t),e):e})),Ie.DEFMETHOD("contains_this",(function(){return yn(this,e=>e instanceof un?Cn:e!==this&&e instanceof xe&&!(e instanceof Ve)||void 0)})),gt.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015,i=this.expression;if(i instanceof Mt)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof kt?a.key.name:a.key)==e){if(!r.every(e=>e instanceof wt||n&&e instanceof kt&&!e.is_generator))break;if(!or(a.value,t))break;return p(St,this,{expression:p(Ft,i,{elements:r.map((function(e){var t=e.value;t instanceof Le&&(t=p(Pe,t,t));var n=e.key;return n instanceof pe&&!(n instanceof qt)?mi(e,[n,t]):t}))}),property:p(pn,this,{value:o})})}}}})),si(Dt,(function(e,t){"arguments"!=e.property&&"caller"!=e.property||t.warn("Function.prototype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col});const n=t.parent();if(Ii(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Dt&&"prototype"==e.expression.property){var i=e.expression.expression;if(yi(i))switch(i.name){case"Array":e.expression=p(Ft,e.expression,{elements:[]});break;case"Function":e.expression=p(Pe,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=p(pn,e.expression,{value:0});break;case"Object":e.expression=p(Mt,e.expression,{properties:[]});break;case"RegExp":e.expression=p(dn,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=p(fn,e.expression,{value:""})}}if(!(n instanceof mt&&T(n,wn))){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let r=e.evaluate(t);return r!==e?(r=hi(r,e).optimize(t),Vi(t,r,e)):e})),si(Ft,(function(e,t){var n=ar(e,t);return n!==e?n:sr(e,0,e.elements)})),si(Mt,(function(e,t){var n=ar(e,t);if(n!==e)return n;for(var i=e.properties,r=0;r=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){if(!yn(e,e=>{if(e instanceof un)return Cn}))return p(Ve,e,e).optimize(t)}return e})),si(It,(function(e){return e})),si(Je,(function(e,t){return e.expression&&!e.is_star&&xi(e.expression,t)&&(e.expression=null),e})),si(Ge,(function(e,t){if(!t.option("evaluate")||t.parent()instanceof Ue)return e;for(var n=[],i=0;i=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof Ve&&Array.isArray(r.body)&&!r.contains_this()||r instanceof Pe)&&!r.name)return p(kt,e,{async:r.async,is_generator:r.is_generator,key:i instanceof pe?i:p(qt,e,{name:i}),value:p(Le,r,r),quote:e.quote})}return e})),si(Ke,(function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,i=0,r=t.length;n1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(i=e[f],r=void 0,(r=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(i))?_r(r[2]):(pe.warn("inline source map not found"),null))}c=n.parse.toplevel}s&&"strict"!==n.mangle.properties.keep_quoted&&lr(c,s),n.wrap&&(c=c.wrap_commonjs(n.wrap)),n.enclose&&(c=c.wrap_enclose(n.enclose)),u&&(u.rename=Date.now()),u&&(u.compress=Date.now()),n.compress&&(c=new ai(n.compress).compress(c)),u&&(u.scope=Date.now()),n.mangle&&c.figure_out_scope(n.mangle),u&&(u.mangle=Date.now()),n.mangle&&(qn.reset(),c.compute_char_frequency(n.mangle),c.mangle_names(n.mangle)),u&&(u.properties=Date.now()),n.mangle&&n.mangle.properties&&(c=pr(c,n.mangle.properties)),u&&(u.output=Date.now());var p={};if(n.output.ast&&(p.ast=c),!D(n.output,"code")||n.output.code){if(n.sourceMap&&("string"==typeof n.sourceMap.content&&(n.sourceMap.content=JSON.parse(n.sourceMap.content)),n.output.source_map=function(e){e=o(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new t.SourceMapGenerator({file:e.file,sourceRoot:e.root}),i=e.orig&&new t.SourceMapConsumer(e.orig);return i&&i.sources.forEach((function(e){var t=i.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)})),{add:function(t,r,o,a,s,u){if(i){var c=i.originalPositionFor({line:a,column:s});if(null===c.source)return;t=c.source,a=c.line,s=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:a+e.orig_line_diff,column:s},source:t,name:u})},get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}({file:n.sourceMap.filename,orig:n.sourceMap.content,root:n.sourceMap.root}),n.sourceMap.includeSources)){if(e instanceof Ne)throw new Error("original source content unavailable");for(var f in e)D(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var _=Bn(n.output);if(c.print(_),p.code=_.get(),n.sourceMap)if(n.sourceMap.asObject?p.map=n.output.source_map.get().toJSON():p.map=n.output.source_map.toString(),"inline"==n.sourceMap.url){var d="object"==typeof p.map?JSON.stringify(p.map):p.map;p.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+dr(d)}else n.sourceMap.url&&(p.code+="\n//# sourceMappingURL="+n.sourceMap.url)}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Er(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Er(n.mangle.properties.cache))),u&&(u.end=Date.now(),p.timings={parse:.001*(u.rename-u.parse),rename:.001*(u.compress-u.rename),compress:.001*(u.scope-u.compress),scope:.001*(u.mangle-u.scope),mangle:.001*(u.properties-u.mangle),properties:.001*(u.output-u.properties),output:.001*(u.end-u.output),total:.001*(u.end-u.start)}),l.length&&(p.warnings=l),p}catch(e){return{error:e}}finally{pe.warn_function=a}}!function(){var e=function(e){for(var t=!0,n=0;n1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new rt({start:i(e),end:r(e),body:s(e.block).body,bcatch:s(t[0]),bfinally:e.finalizer?new at(s(e.finalizer)):null})},Property:function(e){var t=e.key,n={start:i(t||e.value),end:r(e.value),key:"Identifier"==t.type?t.name:t.value,value:s(e.value)};return e.computed&&(n.key=s(e.key)),e.method?(n.is_generator=e.value.generator,n.async=e.value.async,e.computed?n.key=s(e.key):n.key=new qt({name:n.key}),new kt(n)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(n.key=s(t)),new wt(n)):("string"!=typeof n.key&&"number"!=typeof n.key||(n.key=new qt({name:n.key})),n.value=new Le(n.value),"get"==e.kind?new Nt(n):"set"==e.kind?new xt(n):"method"==e.kind?(n.async=e.value.async,n.is_generator=e.value.generator,n.quote=e.computed?'"':null,new kt(n)):void 0)},MethodDefinition:function(e){var t={start:i(e),end:r(e),key:e.computed?s(e.key):new qt({name:e.key.name||e.key.value}),value:s(e.value),static:e.static};return"get"==e.kind?new Nt(t):"set"==e.kind?new xt(t):(t.is_generator=e.value.generator,t.async=e.value.async,new kt(t))},FieldDefinition:function(e){let t;if(e.computed)t=s(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=s(e.key)}return new Lt({start:i(e),end:r(e),key:t,value:s(e.value),static:e.static})},ArrayExpression:function(e){return new Ft({start:i(e),end:r(e),elements:e.elements.map((function(e){return null===e?new Dn:s(e)}))})},ObjectExpression:function(e){return new Mt({start:i(e),end:r(e),properties:e.properties.map((function(e){return"SpreadElement"===e.type||(e.type="Property"),s(e)}))})},SequenceExpression:function(e){return new Et({start:i(e),end:r(e),expressions:e.expressions.map(s)})},MemberExpression:function(e){return new(e.computed?St:Dt)({start:i(e),end:r(e),property:e.computed?s(e.property):e.property.name,expression:s(e.object)})},SwitchCase:function(e){return new(e.test?it:nt)({start:i(e),end:r(e),expression:s(e.test),body:e.consequent.map(s)})},VariableDeclaration:function(e){return new("const"===e.kind?lt:"let"===e.kind?ct:ut)({start:i(e),end:r(e),definitions:e.declarations.map(s)})},ImportDeclaration:function(e){var t=null,n=null;return e.specifiers.forEach((function(e){"ImportSpecifier"===e.type?(n||(n=[]),n.push(new pt({start:i(e),end:r(e),foreign_name:s(e.imported),name:s(e.local)}))):"ImportDefaultSpecifier"===e.type?t=s(e.local):"ImportNamespaceSpecifier"===e.type&&(n||(n=[]),n.push(new pt({start:i(e),end:r(e),foreign_name:new tn({name:"*"}),name:s(e.local)})))})),new _t({start:i(e),end:r(e),imported_name:t,imported_names:n,module_name:s(e.source)})},ExportAllDeclaration:function(e){return new dt({start:i(e),end:r(e),exported_names:[new pt({name:new an({name:"*"}),foreign_name:new an({name:"*"})})],module_name:s(e.source)})},ExportNamedDeclaration:function(e){return new dt({start:i(e),end:r(e),exported_definition:s(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((function(e){return new pt({foreign_name:s(e.exported),name:s(e.local)})})):null,module_name:s(e.source)})},ExportDefaultDeclaration:function(e){return new dt({start:i(e),end:r(e),exported_value:s(e.declaration),is_default:!0})},Literal:function(e){var t=e.value,n={start:i(e),end:r(e)},o=e.regex;if(o&&o.pattern)return n.value={source:o.pattern,flags:o.flags},new dn(n);if(o){const i=e.raw||t,r=i.match(/^\/(.*)\/(\w*)$/);if(!r)throw new Error("Invalid regex source "+i);const[o,a,s]=r;return n.value={source:a,flags:s},new dn(n)}if(null===t)return new hn(n);switch(typeof t){case"string":return n.value=t,new fn(n);case"number":return n.value=t,new pn(n);case"boolean":return new(t?Tn:An)(n)}},MetaProperty:function(e){if("new"===e.meta.name&&"target"===e.property.name)return new Kt({start:i(e),end:r(e)})},Identifier:function(e){var t=a[a.length-2];return new("LabeledStatement"==t.type?nn:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?Xt:"let"==t.kind?zt:Gt:/Import.*Specifier/.test(t.type)?t.local===e?en:tn:"ExportSpecifier"==t.type?t.local===e?on:an:"FunctionExpression"==t.type?t.id===e?jt:Wt:"FunctionDeclaration"==t.type?t.id===e?Yt:Wt:"ArrowFunctionExpression"==t.type?t.params.includes(e)?Wt:rn:"ClassExpression"==t.type?t.id===e?Jt:rn:"Property"==t.type?t.key===e&&t.computed||t.value===e?rn:qt:"FieldDefinition"==t.type?t.key===e&&t.computed||t.value===e?rn:$t:"ClassDeclaration"==t.type?t.id===e?Zt:rn:"MethodDefinition"==t.type?t.computed?rn:qt:"CatchClause"==t.type?Qt:"BreakStatement"==t.type||"ContinueStatement"==t.type?sn:rn)({start:i(e),end:r(e),name:e.name})},BigIntLiteral:e=>new _n({start:i(e),end:r(e),value:e.value})};function n(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function i(e){var t=e.loc,i=t&&t.start,r=e.range;return new fe({file:t&&t.source,line:i&&i.line,col:i&&i.column,pos:r?r[0]:e.start,endline:i&&i.line,endcol:i&&i.column,endpos:r?r[0]:e.start,raw:n(e)})}function r(e){var t=e.loc,i=t&&t.end,r=e.range;return new fe({file:t&&t.source,line:i&&i.line,col:i&&i.column,pos:r?r[1]:e.end,endline:i&&i.line,endcol:i&&i.column,endpos:r?r[1]:e.end,raw:n(e)})}function o(e,n,o){var a="function From_Moz_"+e+"(M){\n";a+="return new U2."+n.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var c="function To_Moz_"+e+"(M){\n";c+="return {\ntype: "+JSON.stringify(e),o&&o.split(/\s*,\s*/).forEach((function(e){var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],i=t[2],r=t[3];switch(a+=",\n"+r+": ",c+=",\n"+n+": ",i){case"@":a+="M."+n+".map(from_moz)",c+="M."+r+".map(to_moz)";break;case">":a+="from_moz(M."+n+")",c+="to_moz(M."+r+")";break;case"=":a+="M."+n,c+="M."+r;break;case"%":a+="from_moz(M."+n+").body",c+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),a+="\n})\n}",c+="\n}\n}",a=new Function("U2","my_start_token","my_end_token","from_moz","return("+a+")")(xn,i,r,s),c=new Function("to_moz","to_moz_block","to_moz_scope","return("+c+")")(l,_,d),t[e]=a,u(n,c)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?At:Tt)({start:i(e),end:r(e),operator:e.operator,expression:s(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Pt:Vt)({start:i(e),end:r(e),name:s(e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},o("EmptyStatement",ve),o("BlockStatement",Se,"body@body"),o("IfStatement",Qe,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",Te,"label>label, body>body"),o("BreakStatement",$e,"label>label"),o("ContinueStatement",je,"label>label"),o("WithStatement",we,"object>expression, body>body"),o("SwitchStatement",et,"discriminant>expression, cases@body"),o("ReturnStatement",We,"argument>value"),o("ThrowStatement",Ye,"argument>value"),o("WhileStatement",Oe,"test>condition, body>body"),o("DoWhileStatement",Ce,"test>condition, body>body"),o("ForStatement",Fe,"init>init, test>condition, update>step, body>body"),o("ForInStatement",Me,"left>init, right>object, body>body"),o("ForOfStatement",Re,"left>init, right>object, body>body, await=await"),o("AwaitExpression",Ze,"argument>expression"),o("YieldExpression",Je,"argument>expression, delegate=is_star"),o("DebuggerStatement",de),o("VariableDeclarator",ft,"id>name, init>value"),o("CatchClause",ot,"param>argname, body%body"),o("ThisExpression",un),o("Super",cn),o("BinaryExpression",yt,"operator=operator, left>left, right>right"),o("LogicalExpression",yt,"operator=operator, left>left, right>right"),o("AssignmentExpression",Ct,"operator=operator, left>left, right>right"),o("ConditionalExpression",bt,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",ht,"callee>expression, arguments@args"),o("CallExpression",mt,"callee>expression, arguments@args"),u(Ne,(function(e){return d("Program",e)})),u(ke,(function(e){return{type:f()?"RestElement":"SpreadElement",argument:l(e.expression)}})),u(Ue,(function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}})),u(Ge,(function(e){for(var t=[],n=[],i=0;i({type:"BigIntLiteral",value:e.value})),vn.DEFMETHOD("to_mozilla_ast",ln.prototype.to_mozilla_ast),hn.DEFMETHOD("to_mozilla_ast",ln.prototype.to_mozilla_ast),Dn.DEFMETHOD("to_mozilla_ast",(function(){return null})),De.DEFMETHOD("to_mozilla_ast",Se.prototype.to_mozilla_ast),Ie.DEFMETHOD("to_mozilla_ast",Pe.prototype.to_mozilla_ast);var a=null;function s(e){a.push(e);var n=null!=e?t[e.type](e):null;return a.pop(),n}function u(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return n=this,i=t(this,e),r=n.start,o=n.end,r&&o?(null!=r.pos&&null!=o.endpos&&(i.range=[r.pos,o.endpos]),r.line&&(i.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(i.loc.source=r.file)),i):i;var n,i,r,o}))}pe.from_mozilla_ast=function(e){var t=a;a=[];var n=s(e);return a=t,n};var c=null;function l(e){null===c&&(c=[]),c.push(e);var t=null!=e?e.to_mozilla_ast(c[c.length-2]):null;return c.pop(),0===c.length&&(c=null),t}function f(){for(var e=c.length;e--;)if(c[e]instanceof Ke)return!0;return!1}function _(e){return{type:"BlockStatement",body:e.body.map(l)}}function d(e,t){var n=t.body.map(l);return t.body[0]instanceof he&&t.body[0].body instanceof fn&&n.unshift(l(new ve(t.body[0]))),{type:e,body:n}}}(),e.AST_Accessor=Le,e.AST_Array=Ft,e.AST_Arrow=Ve,e.AST_Assign=Ct,e.AST_Atom=mn,e.AST_Await=Ze,e.AST_Binary=yt,e.AST_Block=De,e.AST_BlockStatement=Se,e.AST_Boolean=vn,e.AST_Break=$e,e.AST_Call=mt,e.AST_Case=it,e.AST_Catch=ot,e.AST_Class=It,e.AST_ClassExpression=Vt,e.AST_ConciseMethod=kt,e.AST_Conditional=bt,e.AST_Const=lt,e.AST_Constant=ln,e.AST_Continue=je,e.AST_DWLoop=be,e.AST_Debugger=de,e.AST_DefClass=Pt,e.AST_Default=nt,e.AST_DefaultAssign=Ot,e.AST_Definitions=st,e.AST_Defun=Be,e.AST_Destructuring=Ke,e.AST_Directive=me,e.AST_Do=Ce,e.AST_Dot=Dt,e.AST_EmptyStatement=ve,e.AST_Exit=ze,e.AST_Expansion=ke,e.AST_Export=dt,e.AST_False=An,e.AST_Finally=at,e.AST_For=Fe,e.AST_ForIn=Me,e.AST_ForOf=Re,e.AST_Function=Pe,e.AST_Hole=Dn,e.AST_If=Qe,e.AST_Import=_t,e.AST_Infinity=Sn,e.AST_IterationStatement=ye,e.AST_Jump=Xe,e.AST_Label=nn,e.AST_LabelRef=sn,e.AST_LabeledStatement=Te,e.AST_Lambda=Ie,e.AST_Let=ct,e.AST_LoopControl=qe,e.AST_NaN=En,e.AST_NameMapping=pt,e.AST_New=ht,e.AST_NewTarget=Kt,e.AST_Node=pe,e.AST_Null=hn,e.AST_Number=pn,e.AST_Object=Mt,e.AST_ObjectGetter=Nt,e.AST_ObjectKeyVal=wt,e.AST_ObjectProperty=Rt,e.AST_ObjectSetter=xt,e.AST_PrefixedTemplateString=Ue,e.AST_PropAccess=gt,e.AST_RegExp=dn,e.AST_Return=We,e.AST_Scope=xe,e.AST_Sequence=Et,e.AST_SimpleStatement=he,e.AST_Statement=_e,e.AST_StatementWithBody=Ae,e.AST_String=fn,e.AST_Sub=St,e.AST_Super=cn,e.AST_Switch=et,e.AST_SwitchBranch=tt,e.AST_Symbol=Bt,e.AST_SymbolBlockDeclaration=Ht,e.AST_SymbolCatch=Qt,e.AST_SymbolClass=Jt,e.AST_SymbolConst=Xt,e.AST_SymbolDeclaration=Ut,e.AST_SymbolDefClass=Zt,e.AST_SymbolDefun=Yt,e.AST_SymbolExport=on,e.AST_SymbolExportForeign=an,e.AST_SymbolFunarg=Wt,e.AST_SymbolImport=en,e.AST_SymbolImportForeign=tn,e.AST_SymbolLambda=jt,e.AST_SymbolLet=zt,e.AST_SymbolMethod=qt,e.AST_SymbolRef=rn,e.AST_SymbolVar=Gt,e.AST_TemplateSegment=He,e.AST_TemplateString=Ge,e.AST_This=un,e.AST_Throw=Ye,e.AST_Token=fe,e.AST_Toplevel=Ne,e.AST_True=Tn,e.AST_Try=rt,e.AST_Unary=vt,e.AST_UnaryPostfix=Tt,e.AST_UnaryPrefix=At,e.AST_Undefined=gn,e.AST_Var=ut,e.AST_VarDef=ft,e.AST_While=Oe,e.AST_With=we,e.AST_Yield=Je,e.Compressor=ai,e.OutputStream=Bn,e.TreeTransformer=Fn,e.TreeWalker=On,e._INLINE=Rn,e._JS_Parse_Error=Q,e._NOINLINE=wn,e._PURE=Mn,e._has_annotation=T,e._tokenizer=ie,e.base54=qn,e.default_options=$n,e.defaults=o,e.mangle_properties=pr,e.minify=gr,e.parse=ce,e.push_uniq=_,e.reserve_quoted_keys=lr,e.string_template=d,e.to_ascii=_r}));
+//# sourceMappingURL=bundle.min.js.map
diff --git a/libantosdk/build/debug/core/terser.worker.js b/libantosdk/build/debug/core/terser.worker.js
new file mode 100644
index 0000000..feeeb7f
--- /dev/null
+++ b/libantosdk/build/debug/core/terser.worker.js
@@ -0,0 +1,50 @@
+importScripts('terser.min.js');
+
+class UglifyCodeJob extends AntOSDKBaseJob {
+    constructor(data)
+    {
+        super(data);
+    }
+    execute() {
+        
+        if(!Terser)
+        {
+            const e_msg = "Terser module is not loaded";
+            this.log_error(e_msg);
+            return this.error(e_m);
+        }
+         this.read_files(this.job.data)
+            .then((contents) => {
+                const promises = [];
+                const options = {
+                    toplevel: false,
+                    compress: {
+                        passes: 3,
+                    },
+                    mangle: true,
+                    output: {
+                        //beautify: true,
+                    },
+                };
+                for(let i in contents)
+                {
+                    
+                    const result = Terser.minify(contents[i], options);
+                    if (result.error) {
+                        this.log_error(`${this.job.data[i]}:${result.error}`);
+                        promises.push(new Promise((r,e) => e(result.error)));
+                    } else {
+                        this.log_info(`File ${this.job.data[i]} uglified`);
+                        promises.push(this.save_file(this.job.data[i],result.code));
+                    }
+                    
+                }
+                Promise.all(promises)
+                    .then((r) => this.result(r))
+                    .catch((e) => this.error(e));
+            })
+            .catch((e1) => this.error(e1));
+    }
+}
+
+API.jobhandle["terser-uglify"] = UglifyCodeJob;
\ No newline at end of file
diff --git a/libantosdk/build/debug/core/ts.worker.js b/libantosdk/build/debug/core/ts.worker.js
new file mode 100644
index 0000000..f43295c
--- /dev/null
+++ b/libantosdk/build/debug/core/ts.worker.js
@@ -0,0 +1,131 @@
+importScripts('typescript.min.js');
+
+const tslib = {};
+
+
+class TSJob extends AntOSDKBaseJob {
+    constructor(data)
+    {
+        super(data);
+    }
+    execute(){
+        if(!ts)
+        {
+            const e_msg = "typescript module is not loaded";
+            this.log_error(e_msg);
+            return this.error(e_msg);
+        }
+        switch (this.job.cmd) {
+            case 'ts-import':
+                this.importlib();
+                break;
+            case 'ts-compile':
+                this.compile();
+                break;
+            default:
+                const err_msg = `Unkown job ${this.job.cmd}`;
+                this.log_error(err_msg);
+                return this.error(err_msg);
+        }
+    }
+    importlib()
+    {
+        if(!ts)
+        {
+            const e_msg = "typescript module is not loaded";
+            this.log_error(e_msg);
+            return this.error(e_msg);
+        }
+       this.read_files(this.job.data)
+            .then((results) => {
+                for(let i in this.job.data)
+                {
+                    const lib = this.job.data[i];
+                    if(!tslib[lib])
+                    {
+                        tslib[lib] = ts.createSourceFile(lib, results[i], ts.ScriptTarget.Latest);
+                        this.log_info(`Typescript library ${lib} loaded`);
+                    }
+                }
+                this.result("Typescript libraries loaded");
+            })
+            .catch((e) => {
+                this.log_error("Fail to load Typescript module");
+                this.error(e);
+            });
+    }
+    compile()
+    {
+        let files = [];
+        const src_files = {};
+        for(let i in tslib)
+        {
+            files.push(i);
+            src_files[i] = tslib[i];
+        }
+        files = files.concat(this.job.data.src);
+        this.read_files(this.job.data.src)
+            .then((contents) => {
+                for(let i in contents)
+                {
+                    const m = this.job.data.src[i];
+                    src_files[m] = ts.createSourceFile(m, contents[i], ts.ScriptTarget.Latest);
+                }
+                let js_code = "";
+                const host = {
+                    fileExists: (path) => {
+                        return src_files[path] !== undefined;
+                    },
+                    directoryExists: (path) => {
+                        return true;
+                    },
+                    getCurrentDirectory: () => "/",
+                    getDirectories: () => [],
+                    getCanonicalFileName: (path) => path,
+                    getNewLine: () => "\n",
+                    getDefaultLibFileName: () => "",
+                    getSourceFile: (path) => src_files[path],
+                    readFile: (path) => undefined,
+                    useCaseSensitiveFileNames: () => true,
+                    writeFile: (path, data) => js_code = `${js_code}\n${data}`
+                };
+                const program = ts.createProgram(files, {
+                    "target": "es6",
+                    "skipLibCheck": true,
+                }, host);
+                const result = program.emit();
+                const diagnostics = result.diagnostics.concat((ts.getPreEmitDiagnostics(program)));
+                const errors = [];
+                if (diagnostics.length > 0) {
+                    diagnostics.forEach(diagnostic => {
+                        let err_msg = "";
+                        if (diagnostic.file) {
+                            let { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
+                            let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
+                            err_msg = `${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`;
+                        } else {
+                            err_msg = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
+                        }
+                        errors.push(err_msg);
+                        this.log_error(err_msg);
+                    });
+                    return this.error(errors);
+                }
+                // write to file
+                this.save_file(this.job.data.dest,js_code)
+                    .then(r => {
+                        if(r.error)
+                        {
+                            this.log_error(error);
+                            return this.error(r.error);
+                        }
+                        this.result(this.job.data.dest);
+                    })
+                    .catch(e1 => this.error(e1));
+            })
+            .catch(e => this.error(e));
+    }
+}
+
+API.jobhandle["ts-import"] = TSJob;
+API.jobhandle["ts-compile"] = TSJob;
diff --git a/libantosdk/build/debug/core/ts/antos.d.ts b/libantosdk/build/debug/core/ts/antos.d.ts
new file mode 100644
index 0000000..cc9fa93
--- /dev/null
+++ b/libantosdk/build/debug/core/ts/antos.d.ts
@@ -0,0 +1,10079 @@
+declare namespace OS {
+    /**
+     * This namespace is dedicated to everything related to the
+     * global system settings
+     */
+    namespace setting {
+        /**
+         * User setting type definition
+         *
+         * @export
+         * @interface UserSettingType
+         */
+        interface UserSettingType {
+            /**
+             * User full name
+             *
+             * @type {string}
+             * @memberof UserSettingType
+             */
+            name: string;
+            /**
+             * User name
+             *
+             * @type {string}
+             * @memberof UserSettingType
+             */
+            username: string;
+            /**
+             * User id
+             *
+             * @type {number}
+             * @memberof UserSettingType
+             */
+            id: number;
+            /**
+             * User groups
+             *
+             * @type {{ [index: number]: string }}
+             * @memberof UserSettingType
+             */
+            group?: {
+                [index: number]: string;
+            };
+            [propName: string]: any;
+        }
+        /**
+         * Virtual desktop setting data type
+         *
+         * @export
+         * @interface DesktopSettingType
+         */
+        interface DesktopSettingType {
+            /**
+             * Desktop VFS path
+             *
+             * @type {string}
+             * @memberof DesktopSettingType
+             */
+            path: string;
+            /**
+             * Desktop menu, can be added automatically by applications
+             *
+             * @type {GUI.BasicItemType[]}
+             * @memberof DesktopSettingType
+             */
+            menu: GUI.BasicItemType[];
+            /**
+             * Show desktop hidden files
+             *
+             * @type {boolean}
+             * @memberof DesktopSettingType
+             */
+            showhidden: boolean;
+            [propName: string]: any;
+        }
+        /**
+         * Wallpaper setting data type
+         *
+         * @export
+         * @interface WPSettingType
+         */
+        interface WPSettingType {
+            /**
+             * Repeat wallpaper:
+             * - `repeat`
+             * - `repeat-x`
+             * - `repeat-y`
+             * - `no-repeat`
+             *
+             * @type {string}
+             * @memberof WPSettingType
+             */
+            repeat: string;
+            /**
+             * Wallpaper size
+             * - `contain`
+             * - `cover`
+             * - `auto`
+             *
+             * @type {string}
+             * @memberof WPSettingType
+             */
+            size: string;
+            /**
+             * VFS path to the wallpaper image
+             *
+             * @type {string}
+             * @memberof WPSettingType
+             */
+            url: string;
+        }
+        /**
+         * Theme setting data type
+         *
+         * @export
+         * @interface ThemeSettingType
+         */
+        interface ThemeSettingType {
+            /**
+             * Theme name, this value is used for looking
+             * theme file in system asset
+             *
+             * @type {string}
+             * @memberof ThemeSettingType
+             */
+            name: string;
+            /**
+             * Theme user-friendly text
+             *
+             * @type {string}
+             * @memberof ThemeSettingType
+             */
+            text: string;
+        }
+        /**
+         * Appearance setting data type
+         *
+         * @export
+         * @interface AppearanceSettingType
+         */
+        interface AppearanceSettingType {
+            /**
+             * Current theme name
+             *
+             * @type {string}
+             * @memberof AppearanceSettingType
+             */
+            theme: string;
+            /**
+             * All themes available in the system
+             *
+             * @type {ThemeSettingType[]}
+             * @memberof AppearanceSettingType
+             */
+            themes: ThemeSettingType[];
+            /**
+             * Current wallpaper setting
+             *
+             * @type {WPSettingType}
+             * @memberof AppearanceSettingType
+             */
+            wp: WPSettingType;
+            /**
+             * All wallpapers available in the system
+             *
+             * @type {string[]}
+             * @memberof AppearanceSettingType
+             */
+            wps: string[];
+        }
+        /**
+         * VFS Mount points setting data type
+         *
+         * @export
+         * @interface VFSMountPointSettingType
+         */
+        interface VFSMountPointSettingType {
+            /**
+             * Path to the mount point
+             *
+             * @type {string}
+             * @memberof VFSMountPointSettingType
+             */
+            path: string;
+            /**
+             * User friendly mount point name
+             *
+             * @type {string}
+             * @memberof VFSMountPointSettingType
+             */
+            text: string;
+            [propName: string]: any;
+        }
+        /**
+         * VFS setting data type
+         *
+         * @export
+         * @interface VFSSettingType
+         */
+        interface VFSSettingType {
+            /**
+             * mount points setting
+             *
+             * @type {VFSMountPointSettingType[]}
+             * @memberof VFSSettingType
+             */
+            mountpoints: VFSMountPointSettingType[];
+            [propName: string]: any;
+        }
+        /**
+         * Global system setting data type
+         *
+         * @export
+         * @interface SystemSettingType
+         */
+        interface SystemSettingType {
+            /**
+             * System error report URL
+             *
+             * @type {string}
+             * @memberof SystemSettingType
+             */
+            error_report: string;
+            /**
+             * Current system locale e.g. `en_GB`
+             *
+             * @type {string}
+             * @memberof SystemSettingType
+             */
+            locale: string;
+            /**
+             * System menus
+             *
+             * @type {API.PackageMetaType[]}
+             * @memberof API.PackageMetaType
+             */
+            menu: API.PackageMetaType[];
+            /**
+             * Packages meta-data
+             *
+             * @type {{ [index: string]: API.PackageMetaType }}
+             * @memberof SystemSettingType
+             */
+            packages: {
+                [index: string]: API.PackageMetaType;
+            };
+            /**
+             * Path to the installed packages
+             *
+             * @type {{
+             *                 user: string;
+             *                 system: string;
+             *             }}
+             * @memberof SystemSettingType
+             */
+            pkgpaths: {
+                /**
+                 * User specific packages install location
+                 *
+                 * @type {string}
+                 */
+                user: string;
+                /**
+                 * System packages install location
+                 *
+                 * @type {string}
+                 */
+                system: string;
+            };
+            /**
+             * Package repositories setting.
+             * This configuration is used by [[MarketPlace]]
+             * for package management
+             *
+             * @type {{
+             *                 text: string;
+             *                 url: string;
+             *             }[]}
+             * @memberof SystemSettingType
+             */
+            repositories: {
+                /**
+                 * Repository name
+                 *
+                 * @type {string}
+                 */
+                text: string;
+                /**
+                 * Repository uri
+                 *
+                 * @type {string}
+                 */
+                url: string;
+            }[];
+            /**
+             * Startup applications and services
+             *
+             * @type {{
+             *                 apps: string[];
+             *                 services: string[];
+             *             }}
+             * @memberof SystemSettingType
+             */
+            startup: {
+                /**
+                 * List of application names
+                 *
+                 * @type {string[]}
+                 */
+                apps: string[];
+                /**
+                 * List of service names
+                 *
+                 * @type {string[]}
+                 */
+                services: string[];
+                /**
+                 * List of pinned applications
+                 *
+                 * @type {string[]}
+                 */
+                pinned: string[];
+            };
+        }
+        /**
+         * User settings
+         */
+        var user: UserSettingType;
+        /**
+         * Application settings
+         */
+        var applications: GenericObject;
+        /**
+         * Desktop settings
+         */
+        var desktop: DesktopSettingType;
+        /**
+         * Appearance settings
+         */
+        var appearance: AppearanceSettingType;
+        /**
+         * VFS settings
+         */
+        var VFS: VFSSettingType;
+        /**
+         * System settings
+         */
+        var system: SystemSettingType;
+    }
+    /**
+     * Reset the system settings to default values
+     *
+     * @export
+     */
+    function resetSetting(): void;
+    /**
+     * Apply the input parameter object to system settings.
+     * This object could be an object loaded from
+     * setting JSON file saved on the server.
+     *
+     * @export
+     * @param {*} conf
+     */
+    function systemSetting(conf: any): void;
+}
+declare namespace OS {
+    namespace API {
+        /**
+         * Simple Virtual Database (VDB) application API.
+         *
+         * This API abstracts and provides a standard way to
+         * connect to a server-side relational database (e.g. sqlite).
+         *
+         * Each user when connected has their own database previously
+         * created. All VDB operations related to that user will be
+         * performed on this database.
+         *
+         * The creation of user database need to be managed by the server-side API.
+         * The VDB API assumes that the database already exist. All operations
+         * is performed in tables level
+         *
+         * @export
+         * @class DB
+         */
+        class DB {
+            /**
+             * A table name on the user's database
+             *
+             * @private
+             * @type {string}
+             * @memberof DB
+             */
+            private table;
+            /**
+             *Creates an instance of DB.
+             * @param {string} table table name
+             * @memberof DB
+             */
+            constructor(table: string);
+            /**
+             * Save data to the current table. The input
+             * data must conform to the table record format.
+             *
+             * On the server side, if the table doest not
+             * exist yet, it should be created automatically
+             * by inferring the data structure of the input
+             * object
+             *
+             * @param {GenericObject} d data object represents a current table record
+             * @returns {Promise}
+             * @memberof DB
+             */
+            save(d: GenericObject): Promise;
+            /**
+             * delete record(s) from the current table by
+             * a conditional object
+             *
+             * @param {*} c conditional object, c can be:
+             *
+             * * a `number`: the operation will delete the record with `id = c`
+             * * a `string`: The SQL string condition that selects record to delete
+             * * a conditional object represents a SQL condition statement as an object,
+             * example: `pid = 10 AND cid = 2` is represented by:
+             *
+             * ```typescript
+             *  {
+             *      exp: {
+             *          "and": {
+             *              pid: 10,
+             *              cid: 2
+             *          }
+             *  }
+             * ```
+             *
+             * @returns {Promise}
+             * @memberof DB
+             */
+            delete(c: GenericObject | number | string): Promise;
+            /**
+             * Get a record in the table by its primary key
+             *
+             * @param {number} id the primary key value
+             * @returns {Promise>} Promise on returned record data
+             * @memberof DB
+             */
+            get(id: number): Promise>;
+            /**
+             * Find records by a condition
+             *
+             * @param {GenericObject} cond conditional object
+             *
+             * a conditional object represents a SQL condition statement as an object,
+             * example: `pid = 10 AND cid = 2 ORDER BY date DESC` is represented by:
+             *
+             * ```typescript
+             *  {
+             *      exp: {
+             *          "and": {
+             *              pid: 10,
+             *              cid: 2
+             *          }
+             *      },
+             *      order: {
+             *          date: "DESC"
+             *      }
+             *  }
+             * ```
+             * @returns {Promise[]>}
+             * @memberof DB
+             */
+            find(cond: GenericObject): Promise[]>;
+        }
+    }
+}
+/// 
+declare namespace OS {
+    /**
+     * This namespace is dedicated to application and service definition.
+     * When an application is loaded, its prototype definition will be
+     * inserted to this namespace for reuse lately
+     */
+    namespace application {
+        /**
+         * Abstract prototype of all AntOS applications.
+         * Any new application definition should extend
+         * this prototype
+         *
+         * @export
+         * @abstract
+         * @class BaseApplication
+         * @extends {BaseModel}
+         */
+        abstract class BaseApplication extends BaseModel {
+            /**
+             * Placeholder of all settings specific to the application.
+             * The settings stored in this object will be saved to system
+             * setting when logout and can be reused in the next login session
+             *
+             * @type {GenericObject}
+             * @memberof BaseApplication
+             */
+            setting: GenericObject;
+            /**
+             * Hotkeys (shortcuts) defined for this application
+             *
+             * @protected
+             * @type {GUI.ShortcutType}
+             * @memberof BaseApplication
+             */
+            protected keycomb: GUI.ShortcutType;
+            /**
+             * Reference to the system dock
+             *
+             * @type {GUI.tag.AppDockTag}
+             * @memberof BaseApplication
+             */
+            sysdock: GUI.tag.AppDockTag;
+            /**
+             * Reference to the system application menu located
+             * on the system panel
+             *
+             * @type {GUI.tag.MenuTag}
+             * @memberof BaseApplication
+             */
+            appmenu: GUI.tag.MenuTag;
+            /**
+             *Creates an instance of BaseApplication.
+             * @param {string} name application name
+             * @param {AppArgumentsType[]} args application arguments
+             * @memberof BaseApplication
+             */
+            constructor(name: string, args: AppArgumentsType[]);
+            /**
+             * Init the application, this function is called when the
+             * application process is created and docked in the application
+             * dock.
+             *
+             * The application UI will be rendered after the execution
+             * of this function.
+             *
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            init(): void;
+            /**
+             * Render the application UI by first loading its scheme
+             * and then mount this scheme to the DOM tree
+             *
+             * @protected
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            protected loadScheme(): void;
+            /**
+             * API function to perform an heavy task.
+             * This function will trigger the global `loading`
+             * event at the beginning of the task, and the `loaded`
+             * event after finishing the task
+             *
+             * @protected
+             * @param {Promise} promise the promise on a task to be performed
+             * @returns {Promise}
+             * @memberof BaseApplication
+             */
+            protected load(promise: Promise): Promise;
+            /**
+             * Bind a hotkey to the application, this function
+             * is used to define application keyboard shortcut
+             *
+             * @protected
+             * @param {string} k the hotkey to bind, should be in the following
+             * format: `[ALT|SHIFT|CTRL|META]-KEY`, e.g. `CTRL-S`
+             * @param {(e: JQuery.KeyboardEventBase) => void} f the callback function
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            protected bindKey(k: string, f: (e: JQuery.KeyboardEventBase) => void): void;
+            /**
+             * Update the application local from the system
+             * locale or application specific locale configuration
+             *
+             * @private
+             * @param {string} name locale name e.g. `en_GB`
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            protected updateLocale(name: string): void;
+            /**
+             * Execute the callback subscribed to a
+             * keyboard shortcut
+             *
+             * @param {string} fnk meta or modifier key e.g. `CTRL`, `ALT`, `SHIFT` or `META`
+             * @param {string} c a regular key
+             * @param {JQuery.KeyDownEvent} e JQuery keyboard event
+             * @returns {boolean} return whether the shortcut is executed
+             * @memberof BaseApplication
+             */
+            shortcut(fnk: string, c: string, e: JQuery.KeyDownEvent): boolean;
+            /**
+             * Apply a setting to the application
+             *
+             * @protected
+             * @param {string} k the setting name
+             * @memberof BaseApplication
+             */
+            protected applySetting(k: string): void;
+            /**
+             * Apply all settings to the application
+             *
+             * @protected
+             * @memberof BaseApplication
+             */
+            protected applyAllSetting(): void;
+            /**
+             * Set a setting value to the application setting
+             * registry
+             *
+             * @protected
+             * @param {string} k setting name
+             * @param {*} v setting value
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            protected registry(k: string, v: any): void;
+            /**
+             * Show the appliation
+             *
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            show(): void;
+            /**
+             * Blur the application
+             *
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            blur(): void;
+            /**
+             * Hide the application
+             *
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            hide(): void;
+            /**
+             * Maximize or restore the application window size
+             * and its position
+             *
+             * @returns {void}
+             * @memberof BaseApplication
+             */
+            toggle(): void;
+            /**
+             * Get the application title
+             *
+             * @returns {(string| FormattedString)}
+             * @memberof BaseApplication
+             */
+            title(): string | FormattedString;
+            /**
+             * Function called when the application exit.
+             * If the input exit event is prevented, the application
+             * process will not be killed
+             *
+             *
+             * @protected
+             * @param {BaseEvent} evt exit event
+             * @memberof BaseApplication
+             */
+            protected onexit(evt: BaseEvent): void;
+            /**
+             * Get the application meta-data
+             *
+             * @returns {API.PackageMetaType}
+             * @memberof BaseApplication
+             */
+            meta(): API.PackageMetaType;
+            /**
+             * Base menu definition. This function
+             * returns the based menu definition of all applications.
+             * Other application specific menu entries
+             * should be defined in [[menu]] function
+             *
+             * @protected
+             * @returns {GUI.BasicItemType[]}
+             * @memberof BaseApplication
+             */
+            protected baseMenu(): GUI.BasicItemType[];
+            /**
+             * The main application entry that is called after
+             * the application UI is rendered. This application
+             * must be implemented by all subclasses
+             *
+             * @abstract
+             * @memberof BaseApplication
+             */
+            abstract main(): void;
+            /**
+             * Application specific menu definition
+             *
+             * @protected
+             * @returns {GUI.BasicItemType[]}
+             * @memberof BaseApplication
+             */
+            protected menu(): GUI.BasicItemType[];
+            /**
+             * The cleanup function that is called by [[onexit]] function.
+             * Application need to override this function to perform some
+             * specific task before exiting or to prevent the application
+             * to be exited
+             *
+             * @protected
+             * @param {BaseEvent} e
+             * @memberof BaseApplication
+             */
+            protected cleanup(e: BaseEvent): void;
+        }
+    }
+}
+declare namespace OS {
+    namespace API {
+        /**
+         * Observable entry type definition
+         *
+         * @export
+         * @interface ObservableEntryType
+         */
+        interface ObservableEntryType {
+            /**
+             * A Set of callbacks that should be called only once.
+             * These callbacks will be removed after the first
+             * occurrence of the corresponding event
+             *
+             * @memberof ObservableEntryType
+             */
+            one: Set<(d: any) => void>;
+            /**
+             * A Set of callbacks that should be called
+             * every time the corresponding event is triggered
+             *
+             * @memberof ObservableEntryType
+             */
+            many: Set<(d: any) => void>;
+        }
+        /**
+         * Announcement listener type definition
+         *
+         * @export
+         * @interface AnnouncerListenerType
+         */
+        interface AnnouncerListenerType {
+            [index: number]: {
+                /**
+                 * The event name
+                 *
+                 * @type {string}
+                 */
+                e: string;
+                /**
+                 * The event callback
+                 *
+                 */
+                f: (d: any) => void;
+            }[];
+        }
+        /**
+         * This class is the based class used in AntOS event
+         * announcement system.
+         * It implements the observer pattern using simple
+         * subscribe/publish mechanism
+         * @export
+         * @class Announcer
+         */
+        class Announcer {
+            /**
+             * The observable object that stores event name
+             * and its corresponding callback in [[ObservableEntryType]]
+             *
+             * @type {GenericObject}
+             * @memberof Announcer
+             */
+            observable: GenericObject;
+            /**
+             * Enable/disable the announcer
+             *
+             * @type {boolean}
+             * @memberof Announcer
+             */
+            enable: boolean;
+            /**
+             *Creates an instance of Announcer.
+             * @memberof Announcer
+             */
+            constructor();
+            /**
+             * Disable the announcer, when this function is called
+             * all events and their callbacks will be removed
+             *
+             * @returns
+             * @memberof Announcer
+             */
+            disable(): boolean;
+            /**
+             * Subscribe to an event, the callback will be called
+             * every time the corresponding event is trigged
+             *
+             * @param {string} evtName event name
+             * @param {(d: any) => void} callback The corresponding callback
+             * @returns {void}
+             * @memberof Announcer
+             */
+            on(evtName: string, callback: (d: any) => void): void;
+            /**
+             * Subscribe to an event, the callback will
+             * be called only once and then removed from the announcer
+             *
+             * @param {string} evtName event name
+             * @param {(d: any) => void} callback the corresponding callback
+             * @returns {void}
+             * @memberof Announcer
+             */
+            one(evtName: string, callback: (d: any) => void): void;
+            /**
+             * Unsubscribe the callback from an event
+             *
+             * @param {string} evtName event name
+             * @param {(d: any) => void} [callback] the callback to be unsubscribed.
+             * When the `callback` is `*`, all callbacks related to `evtName` will be
+             * removed
+             * @memberof Announcer
+             */
+            off(evtName: string, callback?: (d: any) => void): void;
+            /**
+             * Trigger an event
+             *
+             * @param {string} evtName event name
+             * @param {*} data data object that will be send to all related callback
+             * @returns {void}
+             * @memberof Announcer
+             */
+            trigger(evtName: string, data: any): void;
+        }
+    }
+    /**
+     * This namespace defines every thing related to the system announcement.
+     *
+     * The system announcement provides a global way to communicate between
+     * processes (applications/services) using the subscribe/publish
+     * mechanism
+     */
+    namespace announcer {
+        /**
+         * The global announcer object that manages global events
+         * and callbacks
+         */
+        var observable: API.Announcer;
+        /**
+         * This variable is used to allocate the `id` of all messages
+         * passing between publishers and subscribers in the
+         * system announcement
+         */
+        var quota: 0;
+        /**
+         * Placeholder of all global events listeners
+         */
+        var listeners: API.AnnouncerListenerType;
+        /**
+         * Subscribe to a global event
+         *
+         * @export
+         * @param {string} e event name
+         * @param {(d: any) => void} f event callback
+         * @param {GUI.BaseModel} a the process  (Application/service) related to the callback
+         */
+        function on(e: string, f: (d: any) => void, a: BaseModel): void;
+        /**
+         * Trigger a global event
+         *
+         * @export
+         * @param {string} e event name
+         * @param {*} d data passing to all related callback
+         */
+        function trigger(e: string, d: any): void;
+        /**
+         * Report system fail. This will trigger the global `fail`
+         * event
+         *
+         * @export
+         * @param {(string | FormattedString)} m message string
+         * @param {Error} e error to be reported
+         */
+        function osfail(m: string | FormattedString, e: Error): void;
+        /**
+         * Report system error. This will trigger the global `error`
+         * event
+         *
+         * @export
+         * @param {(string | FormattedString)} m message string
+         * @param {Error} e error to be reported
+         */
+        function oserror(m: string | FormattedString, e: Error): void;
+        /**
+         * Trigger system notification (`info` event)
+         *
+         * @export
+         * @param {(string | FormattedString)} m notification message
+         */
+        function osinfo(m: string | FormattedString): void;
+        /**
+         * trigger a specific global event
+         *
+         * @export
+         * @param {string} e event name
+         * @param {*} d event data
+         */
+        function ostrigger(e: string, d: any): void;
+        /**
+         * Unregister a process (application/service) from
+         * the global announcement system
+         *
+         * @export
+         * @param {GUI.BaseModel} app reference to the process
+         * @returns {void}
+         */
+        function unregister(app: BaseModel): void;
+        /**
+         * Allocate message id
+         *
+         * @export
+         * @returns {number}
+         */
+        function getMID(): number;
+    }
+}
+/// 
+declare namespace OS {
+    /**
+     * Application argument type definition
+     *
+     * @export
+     * @interface AppArgumentsType
+     */
+    interface AppArgumentsType {
+        /**
+         * File type to be open by the app
+         *
+         * @type {string}
+         * @memberof AppArgumentsType
+         */
+        type?: string;
+        /**
+         * File path to be opened
+         *
+         * @type {string}
+         * @memberof AppArgumentsType
+         */
+        path: string;
+        /**
+         * Any other object
+         */
+        [propName: string]: any;
+    }
+    /**
+     * Enum definition of different model types
+     *
+     * @export
+     * @enum {number}
+     */
+    enum ModelType {
+        /**
+         * Applications
+         */
+        Application = 0,
+        /**
+         * Services
+         */
+        Service = 1,
+        /**
+         * Sub-window such as dialogs
+         */
+        SubWindow = 2
+    }
+    /**
+     * Base AntOS event definition
+     *
+     * @export
+     * @class BaseEvent
+     */
+    class BaseEvent {
+        /**
+         * The event name placeholder
+         *
+         * @type {string}
+         * @memberof BaseEvent
+         */
+        name: string;
+        /**
+         * Placeholder indicates whether the event is forced to
+         * be happen
+         *
+         * @private
+         * @type {boolean}
+         * @memberof BaseEvent
+         */
+        private force;
+        /**
+         * Placeholder indicates whether the event is prevented.
+         * This value has not effect if `force` is set to `true`
+         *
+         * @type {boolean}
+         * @memberof BaseEvent
+         */
+        prevent: boolean;
+        /**
+         *Creates an instance of BaseEvent.
+         * @param {string} name event name
+         * @param {boolean} force indicates whether the event is forced
+         * @memberof BaseEvent
+         */
+        constructor(name: string, force: boolean);
+        /**
+         * Prevent the current event. This function
+         * has no effect if `force` is set to true
+         *
+         * @memberof BaseEvent
+         */
+        preventDefault(): void;
+    }
+    /**
+     * The root model of all applications, dialogs or services
+     * in the system
+     *
+     * @export
+     * @abstract
+     * @class BaseModel
+     */
+    abstract class BaseModel {
+        /**
+         * The class name
+         *
+         * @type {string}
+         * @memberof BaseModel
+         */
+        name: string;
+        /**
+         * The argument of the model
+         *
+         * @type {AppArgumentsType[]}
+         * @memberof BaseModel
+         */
+        args: AppArgumentsType[];
+        /**
+         * Each model has its own local announcement system
+         * to handle all local events inside that model.
+         *
+         * This observable object is propagate to all the
+         * UI elements ([[AFXTag]]) inside the model
+         *
+         * @protected
+         * @type {API.Announcer}
+         * @memberof BaseModel
+         */
+        protected _observable: API.Announcer;
+        /**
+         * Reference to the core API namespace
+         *
+         * @protected
+         * @type {typeof API}
+         * @memberof BaseModel
+         */
+        protected _api: typeof API;
+        /**
+         * Reference to the core GUI namespace
+         *
+         * @protected
+         * @type {typeof GUI}
+         * @memberof BaseModel
+         */
+        protected _gui: typeof GUI;
+        /**
+         * Reference to the model's dialog
+         *
+         * @type {GUI.BaseDialog}
+         * @memberof BaseModel
+         */
+        dialog: GUI.BaseDialog;
+        /**
+         * The HTML element ID of the virtual desktop
+         *
+         * @protected
+         * @type {string}
+         * @memberof BaseModel
+         */
+        protected host: string;
+        /**
+         * The process number of the current model.
+         * For sub-window this number is the number
+         * of the parent window
+         *
+         * @type {number}
+         * @memberof BaseModel
+         */
+        pid: number;
+        /**
+         * Reference the DOM element of the UI scheme belong to
+         * this model
+         *
+         * @type {HTMLElement}
+         * @memberof BaseModel
+         */
+        scheme: HTMLElement;
+        /**
+         * Reference to the system setting
+         *
+         * @protected
+         * @type {typeof setting}
+         * @memberof BaseModel
+         */
+        protected systemsetting: typeof setting;
+        /**
+         * Placeholder for the process creation timestamp
+         *
+         * @type {number}
+         * @memberof BaseModel
+         */
+        birth: number;
+        /**
+         * Different model type
+         *
+         * @static
+         * @type {ModelType}
+         * @memberof BaseModel
+         */
+        static type: ModelType;
+        /**
+         * Allow singleton on this model
+         *
+         * @static
+         * @type {boolean}
+         * @memberof BaseModel
+         */
+        static singleton: boolean;
+        /**
+         * The javascript or css files that the model depends on. All dependencies
+         * will be loaded before the model is rendered
+         *
+         * @static
+         * @type {string[]} list of VFS paths of dependencies
+         * @memberof BaseModel
+         */
+        static dependencies: string[];
+        /**
+         * Reference to the CSS Element of the model
+         *
+         * @static
+         * @type {(HTMLElement | string)}
+         * @memberof BaseModel
+         */
+        static style: HTMLElement | string;
+        /**
+         * Place holder for model meta-data
+         *
+         * @static
+         * @type {API.PackageMetaType}
+         * @memberof BaseModel
+         */
+        static meta: API.PackageMetaType;
+        /**
+         *Creates an instance of BaseModel.
+         * @param {string} name class name
+         * @param {AppArgumentsType[]} args arguments
+         * @memberof BaseModel
+         */
+        constructor(name: string, args: AppArgumentsType[]);
+        /**
+         * Getter: get the local announcer object
+         *
+         * @readonly
+         * @type {API.Announcer}
+         * @memberof BaseModel
+         */
+        get observable(): API.Announcer;
+        /**
+         * Update the model locale
+         *
+         * @protected
+         * @param {string} name
+         * @memberof BaseModel
+         */
+        protected updateLocale(name: string): void;
+        /**
+         * Render the model's UI
+         *
+         * @protected
+         * @param {string} p VFS path to the UI scheme definition
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        protected render(p: string): void;
+        /**
+         * Exit the model
+         *
+         * @param {boolean} force set this value to `true` will bypass the prevented exit event by user
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        quit(force: boolean): void;
+        /**
+         * Model meta data, need to be implemented by
+         * subclasses
+         *
+         * @abstract
+         * @returns {API.PackageMetaType}
+         * @memberof BaseModel
+         */
+        abstract meta(): API.PackageMetaType;
+        /**
+         * VFS path to the model asset
+         *
+         * @returns {string}
+         * @memberof BaseModel
+         */
+        path(): string;
+        /**
+         * Execute a server side script and get back the result
+         *
+         * @protected
+         * @param {GenericObject} cmd execution indication, should be:
+         *
+         * ```
+         * {
+         *      path?: string, // VFS path to the server side script
+         *      code: string, // or server side code to be executed
+         *      parameters: any // the parameters of the server side execution
+         * }
+         * ```
+         *
+         * @returns {Promise}
+         * @memberof BaseModel
+         */
+        protected call(cmd: GenericObject): Promise;
+        /**
+         * Connect to the server side api using a websocket connection
+         *
+         * Server side script can be execute inside the stream by writing
+         * data in JSON format with the following interface
+         *
+         * ```
+         * {
+         *      path?: string, // VFS path to the server side script
+         *      code: string, // or server side code to be executed
+         *      parameters: any // the parameters of the server side execution
+         * }
+         * ```
+         *
+         * @protected
+         * @returns {Promise}
+         * @memberof BaseModel
+         */
+        protected stream(): Promise;
+        /**
+         * Init the model before  UI rendering
+         *
+         * @abstract
+         * @memberof BaseModel
+         */
+        abstract init(): void;
+        /**
+         * Main entry point after UI rendering
+         *
+         * @abstract
+         * @memberof BaseModel
+         */
+        abstract main(): void;
+        /**
+         * Show the model
+         *
+         * @abstract
+         * @memberof BaseModel
+         */
+        abstract show(): void;
+        /**
+         * Hide the model
+         *
+         * @abstract
+         * @memberof BaseModel
+         */
+        abstract hide(): void;
+        /**
+         * Function called when the model exits
+         *
+         * @protected
+         * @abstract
+         * @param {BaseEvent} e exit event
+         * @memberof BaseModel
+         */
+        protected abstract onexit(e: BaseEvent): void;
+        /**
+         * subscribe once to a local event
+         *
+         * @protected
+         * @param {string} e name of the event
+         * @param {(d: any) => void} f event callback
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        protected one(e: string, f: (d: any) => void): void;
+        /**
+         * Subscribe to a local event
+         *
+         * @protected
+         * @param {string} e event name
+         * @param {(d: any) => void} f event callback
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        protected on(e: string, f: (d: any) => void): void;
+        /**
+         * Unsubscribe an event
+         *
+         * @protected
+         * @param {string} e event name or `*` (all events)
+         * @param {(d: any) => void} [f] callback to be unsubscribed, can be `undefined`
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        protected off(e: string, f?: (d: any) => void): void;
+        /**
+         * trigger a local event
+         *
+         * @protected
+         * @param {string} e event name
+         * @param {*} [d] event data
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        trigger(e: string, d?: any): void;
+        /**
+         * subscribe to an event on the global announcement system
+         *
+         * @protected
+         * @param {string} e event name
+         * @param {(d: any) => void} f event callback
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        subscribe(e: string, f: (d: any) => void): void;
+        /**
+         * Open a dialog
+         *
+         * @param {(GUI.BaseDialog | string)} d a dialog object or a dialog class name
+         * @param {GenericObject} [data] input data of the dialog, refer to each
+         * dialog definition for the format of the input data
+         * @returns {Promise} A promise on the callback data of the dialog, refer
+         * to each dialog definition for the format of the callback data
+         * @memberof BaseModel
+         */
+        openDialog(d: GUI.BaseDialog | string, data?: GenericObject): Promise;
+        /**
+         * Open a [[YesNoDialog]] to confirm a task
+         *
+         * @protected
+         * @param {GenericObject} data [[YesNoDialog]] input data
+         * @returns {Promise}
+         * @memberof BaseModel
+         */
+        protected ask(data: GenericObject): Promise;
+        /**
+         * Trigger a global event
+         *
+         * @protected
+         * @param {string} t event name
+         * @param {(string | FormattedString)} m event message
+         * @param {Error} [e] error object if any
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        protected publish(t: string, m: string | FormattedString, e?: Error): void;
+        /**
+         * Publish a global notification
+         *
+         * @param {(string | FormattedString)} m notification string
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        notify(m: string | FormattedString): void;
+        /**
+         * Publish a global warning
+         *
+         * @param {(string | FormattedString)} m warning string
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        warn(m: string | FormattedString): void;
+        /**
+         * Report a global error
+         *
+         * @param {(string | FormattedString)} m error message
+         * @param {Error} [e] error object if any
+         * @returns
+         * @memberof BaseModel
+         */
+        error(m: string | FormattedString, e?: Error): void;
+        /**
+         * Report a global fail event
+         *
+         * @param {string} m fail message
+         * @param {Error} [e] error object if any
+         * @returns
+         * @memberof BaseModel
+         */
+        fail(m: string, e?: Error): void;
+        /**
+         * Throw an error inside the model
+         *
+         * @returns {Error}
+         * @memberof BaseModel
+         */
+        throwe(): Error;
+        /**
+         * Update the model, this will update all its UI elements
+         *
+         * @returns {void}
+         * @memberof BaseModel
+         */
+        update(): void;
+        /**
+         * Find a HTMLElement in the UI of the model
+         * using the `data-id` attribute of the element
+         *
+         * @protected
+         * @param {string} id
+         * @returns {HTMLElement}
+         * @memberof BaseModel
+         */
+        protected find(id: string): HTMLElement;
+        /**
+         * Select all DOM Element inside the UI of the model
+         * using JQuery selector
+         *
+         * @protected
+         * @param {string} sel
+         * @returns {HTMLElement}
+         * @memberof BaseModel
+         */
+        protected select(sel: string): JQuery;
+    }
+}
+/// 
+declare namespace OS {
+    namespace application {
+        /**
+         * Services are processes that run in the background and
+         * are waken up in certain circumstances such as by global
+         * events or user interactions.
+         *
+         * Each service takes an entry in the system tray menu
+         * located on the system panel. This menu entry is used
+         * to access to service visual contents such as: options,
+         * task performing based on user interaction, etc.
+         *
+         * Services are singleton processes, there is only
+         * one process of a service at a time
+         *
+         * @export
+         * @abstract
+         * @class BaseService
+         * @extends {BaseModel}
+         */
+        abstract class BaseService extends BaseModel {
+            /**
+             * The service icon shown in the system tray
+             *
+             * @type {string}
+             * @memberof BaseService
+             */
+            icon: string;
+            /**
+             * CSS class of the service icon shown in the system tray
+             *
+             * @type {string}
+             * @memberof BaseService
+             */
+            iconclass: string;
+            /**
+             * Text of the service shown in the system tray
+             *
+             * @type {string}
+             * @memberof BaseService
+             */
+            text: string;
+            /**
+             * Reference to the menu entry DOM element attached
+             * to the service
+             *
+             * @type {HTMLElement}
+             * @memberof BaseService
+             */
+            domel: HTMLElement;
+            /**
+             * Reference to the timer that periodically executes the callback
+             * defined in [[watch]].
+             *
+             * @private
+             * @type {number}
+             * @memberof BaseService
+             */
+            private timer;
+            /**
+             * Reference to the system tray menu
+             *
+             * @type {HTMLElement}
+             * @memberof BaseService
+             */
+            holder: HTMLElement;
+            /**
+             * Placeholder for service select callback
+             *
+             * @memberof BaseService
+             */
+            onmenuselect: (d: OS.GUI.TagEventType) => void;
+            /**
+             *Creates an instance of BaseService.
+             * @param {string} name service class name
+             * @param {AppArgumentsType[]} args service arguments
+             * @memberof BaseService
+             */
+            constructor(name: string, args: AppArgumentsType[]);
+            /**
+             * Do nothing
+             *
+             * @memberof BaseService
+             */
+            hide(): void;
+            /**
+             * Init the service before attaching it to
+             * the system tray: event subscribe, scheme
+             * loading.
+             *
+             * Should be implemented by all subclasses
+             *
+             * @abstract
+             * @memberof BaseService
+             */
+            abstract init(): void;
+            /**
+             * Refresh the service menu entry in the
+             * system tray
+             *
+             * @memberof BaseService
+             */
+            update(): void;
+            /**
+             * Get the service meta-data
+             *
+             * @returns {API.PackageMetaType}
+             * @memberof BaseService
+             */
+            meta(): API.PackageMetaType;
+            /**
+             * Attach the service to a menu element
+             * such as the system tray menu
+             *
+             * @param {HTMLElement} h
+             * @memberof BaseService
+             */
+            attach(h: HTMLElement): void;
+            /**
+             * Set the callback that will be called periodically
+             * after a period of time.
+             *
+             * Each service should only have at most one watcher
+             *
+             * @protected
+             * @param {number} t period time in seconds
+             * @param {() => void} f callback function
+             * @returns {number}
+             * @memberof BaseService
+             */
+            protected watch(t: number, f: () => void): number;
+            /**
+             * This function is called when the service
+             * is exited
+             *
+             * @protected
+             * @param {BaseEvent} evt exit event
+             * @returns
+             * @memberof BaseService
+             */
+            protected onexit(evt: BaseEvent): JQuery;
+            /**
+             * Do nothing
+             *
+             * @memberof BaseService
+             */
+            main(): void;
+            /**
+             * Do nothing
+             *
+             * @memberof BaseService
+             */
+            show(): void;
+            /**
+             * Awake the service, this function is usually called when
+             * the system tray menu entry attached to the service is
+             * selected.
+             *
+             * This function should be implemented by all subclasses
+             *
+             * @abstract
+             * @param {GUI.TagEventType} e
+             * @memberof BaseService
+             */
+            abstract awake(e: GUI.TagEventType): void;
+            /**
+             * Do nothing
+             *
+             * @protected
+             * @param {BaseEvent} evt
+             * @memberof BaseService
+             */
+            protected cleanup(evt: BaseEvent): void;
+        }
+    }
+}
+declare namespace OS {
+    /**
+     * This namespace dedicated to all operations related to system
+     * process management
+     */
+    namespace PM {
+        /**
+         * A process is either an instance of an application or a service
+         */
+        type ProcessType = application.BaseApplication | application.BaseService;
+        /**
+         * Alias to  all classes that extends [[BaseModel]]
+         */
+        type ModelTypeClass = {
+            new (args: AppArgumentsType[]): T;
+        };
+        /**
+         * Process id allocator, when a new process is created, the value of
+         * this variable is increased
+         */
+        var pidalloc: number;
+        /**
+         * All running processes is stored in this variables
+         */
+        var processes: GenericObject;
+        /**
+         * Create a new process of application or service
+         *
+         * @export
+         * @param {string} app class name string
+         * @param {ProcessTypeClass} cls prototype class
+         * @param {GUI.AppArgumentsType[]} [args] process arguments
+         * @returns {Promise} a promise on the created process
+         */
+        function createProcess(app: string, cls: ModelTypeClass, args?: AppArgumentsType[]): Promise;
+        /**
+         * Get the reference to a process using its id
+         *
+         * @export
+         * @param {number} pid
+         * @returns {BaseModel}
+         */
+        function appByPid(pid: number): BaseModel;
+        /**
+         * Kill a process
+         *
+         * @export
+         * @param {OS.GUI.BaseModel} app reference to the process
+         * @returns {void}
+         */
+        function kill(app: BaseModel): void;
+        /**
+         * Kill all process of an application or service
+         *
+         * @export
+         * @param {string} app process class name
+         * @param {boolean} force force exit all process
+         * @returns {void}
+         */
+        function killAll(app: string, force: boolean): void;
+    }
+}
+/// 
+declare namespace OS {
+    /**
+     * This namespace is dedicated to all APIs related to AntOS UI system,
+     * these API are called AFX APIs which handle:
+     * - The mouse and keyboard interaction with the UI system
+     * - UI rendering
+     * - Custom tags definition
+     * - Load/unload system, applications and services UI
+     * - System dialogs definition
+     */
+    namespace GUI {
+        /**
+         * AntOS keyboard shortcut type definition
+         *
+         * @export
+         * @interface ShortcutType
+         */
+        interface ShortcutType {
+            /**
+             * Placeholder for all shortcut callbacks, example:
+             * ```typescript
+             *      fn_193462204.c = function() {..}
+             *      // this function will be called when the hotkey `ALT-C` is triggered
+             *      // fn_${"ALT".hash()} is fn_193462204
+             * ```
+             *
+             * @memberof ShortcutType
+             */
+            [propName: string]: GenericObject<(e: JQuery.KeyDownEvent) => void>;
+        }
+        /**
+         * Basic item type definition which is usually used by some UI element
+         * such as list view, tree view, menu and grid view
+         *
+         *
+         * @export
+         * @interface BasicItemType
+         */
+        interface BasicItemType {
+            /**
+             * Item text
+             *
+             * @type {(string | FormattedString)}
+             * @memberof BasicItemType
+             */
+            text: string | FormattedString;
+            /**
+             * Item children, usually used by tree view or menu item
+             * This property is keep for compatibility purposes only.
+             * Otherwise, the [[nodes]] property should be used
+             *
+             * @type {BasicItemType[]}
+             * @memberof BasicItemType
+             */
+            children?: BasicItemType[];
+            /**
+             * Item children, usually used by tree view or menu item
+             *
+             * @type {BasicItemType[]}
+             * @memberof BasicItemType
+             */
+            nodes?: BasicItemType[];
+            [propName: string]: any;
+        }
+        /**
+         * Element id of the virtual desktop, used by JQuery
+         */
+        var workspace: string;
+        /**
+         * Indicate whether the system is in fullscreen mode
+         */
+        var fullscreen: boolean;
+        /**
+         * Reference to the current system dialog, only one dialog
+         * is allowed at a time. A dialog may have sub dialog
+         */
+        var dialog: BaseDialog;
+        /**
+         * Convert an application html scheme to
+         * UI elements, then insert this UI scheme to the DOM tree.
+         *
+         * This function renders the UI of the application before calling the
+         * application's [[main]] function
+         *
+         * @export
+         * @param {string} html html scheme string
+         * @param {BaseModel} app reference to the target application
+         * @param {(Element | string)} parent
+         * The parent HTML element where the application is rendered.
+         * This is usually the reference to the virtual desktop element.
+         */
+        function htmlToScheme(html: string, app: BaseModel, parent: Element | string): void;
+        /**
+         * Load an application scheme file then render
+         * it with [[htmlToScheme]]
+         *
+         * @export
+         * @param {string} path VFS path to the scheme file
+         * @param {BaseModel} app the target application
+         * @param {(HTMLElement | string)} parent The parent HTML element where the application is rendered.
+         */
+        function loadScheme(path: string, app: BaseModel, parent: HTMLElement | string): void;
+        /**
+         * Clear the current system theme
+         *
+         * @export
+         */
+        function clearTheme(): void;
+        /**
+         * Load a theme based on its name, then refresh the
+         * system UI theme
+         *
+         * @export
+         * @param {string} name name of the theme e.g. `antos_dark`
+         * @param {boolean} force force to clear the system theme before applying the new one
+         */
+        function loadTheme(name: string, force: boolean): void;
+        /**
+         * Open a system dialog.
+         *
+         * @export
+         * @param {(BaseDialog | string)} d a dialog object or a dialog class name
+         * @param {GenericObject} [data] input data of the dialog, refer to each
+         * dialog definition for the format of the input data
+         * @returns {Promise} A promise on the callback data of the dialog, refer
+         * to each dialog definition for the format of the callback data
+         */
+        function openDialog(d: string | BaseDialog, data: GenericObject): Promise;
+        /**
+         * Find a list of applications that support a specific mime
+         * type in the system packages meta-data
+         *
+         * @export
+         * @param {string} mime the mime type
+         * @returns {API.PackageMetaType[]}
+         */
+        function appsByMime(mime: string): API.PackageMetaType[];
+        /**
+         * Find all applications that have services attached to it.
+         * This function allows to collect all the services available
+         * on the system. These services may or may not be running.
+         *
+         * @export
+         * @returns {GenericObject} result in forme of:
+         * `service_name:service-meta-data` key-value pairs
+         */
+        function appsWithServices(): GenericObject;
+        /**
+         * Find an launch an application using input application argument
+         * such as VFS file meta-data.
+         *
+         * Based on the input application argument, the function will try
+         * to find all applications that is compatible with that argument.
+         * Three cases possible:
+         * - There is no application that can handle the argument, a message will
+         * be notified to user.
+         * - There is one application that can handle the argument, the application
+         * will be launched with the argument
+         * - There are many applications that can handle the arguments, a selection
+         * dialog will be popped up and allows user to select an application to launch.
+         *
+         * @export
+         * @param {AppArgumentsType} it application argument
+         * @returns {void}
+         */
+        function openWith(it: AppArgumentsType): void;
+        /**
+         * Kil all processes related to an application, reload the application
+         * prototype definition and launch a new process of this application.
+         *
+         * This function is used only for debug purpose or used by
+         * AntOSDK during in-browser application development
+         *
+         * @export
+         * @param {string} app the application class name
+         * @param {AppArgumentsType[]} args application arguments
+         * @returns {void}
+         */
+        function forceLaunch(app: string, args: AppArgumentsType[]): void;
+        /**
+         * Kill an running processes of an application, then
+         * unregister the application prototype definition
+         * from the [[application]] namespace.
+         *
+         * This process is similar to uninstall the application
+         * from the current system state
+         *
+         * @export
+         * @param {string} app
+         */
+        function unloadApp(app: string): void;
+        /**
+         * Create a service process.
+         *
+         * Services are singleton processes, there is only
+         * one process of a service at a time
+         *
+         * @export
+         * @param {string} ph
+         * @returns {Promise}
+         */
+        function pushService(ph: string): Promise;
+        /**
+         * Synchronously start a list of services
+         *
+         * @export
+         * @param {string[]} srvs list of service class names
+         * @returns {Promise}
+         */
+        function pushServices(srvs: string[]): Promise;
+        /**
+         * Launch an application with arguments
+         *
+         * @export
+         * @param {string} app application class name
+         * @param {AppArgumentsType[]} args application arguments
+         */
+        function launch(app: string, args: AppArgumentsType[]): Promise;
+        /**
+         * Dock an application to the system application dock
+         *
+         * @export
+         * @param {BaseApplication} app reference to the application process
+         * @param {API.PackageMetaType} meta Application meta-data
+         * @returns {void}
+         */
+        function dock(app: OS.application.BaseApplication, meta: API.PackageMetaType): void;
+        /**
+         * Toggle system fullscreen
+         *
+         * @export
+         */
+        function toggleFullscreen(): void;
+        /**
+         * Remove an application process from the system application
+         * dock. This action will also exit the process
+         *
+         * @export
+         * @param {BaseApplication} app
+         * @returns
+         */
+        function undock(app: application.BaseApplication): void;
+        /**
+         * Attach a running service process to the system tray
+         *
+         * @export
+         * @param {BaseService} srv reference to the running service process
+         * @returns {void}
+         */
+        function attachservice(srv: application.BaseService): void;
+        /**
+         * Detach a running process from the system tray
+         *
+         * @export
+         * @param {BaseService} srv reference to the running service process
+         * @returns {void}
+         */
+        function detachservice(srv: application.BaseService): void;
+        /**
+         * Register a hot key and its handle in the
+         * system  shortcut
+         *
+         * @export
+         * @param {string} k the hotkey e.g. `ALT-C`
+         * @param {(e: JQuery.KeyPressEvent) => void} f handle function
+         * @param {boolean} force force to rebind the hotkey
+         * @returns {void}
+         */
+        function bindKey(k: string, f: (e: JQuery.KeyDownEvent) => void, force?: boolean): void;
+        /**
+         * Load and apply system wallpaper from the setting object
+         *
+         * @export
+         * @param {setting.WPSettingType} obj wallpaper setting object
+         */
+        function wallpaper(obj?: setting.WPSettingType): void;
+        /**
+         * Refresh the virtual desktop
+         *
+         * @export
+         */
+        function refreshDesktop(): void;
+        /**
+         * Show the login screen and perform the login operation.
+         *
+         * Once login successfully, the [[startAntOS]] will be called
+         *
+         * @export
+         */
+        function login(): void;
+        /**
+         * Start AntOS after a successful login.
+         *
+         * This function performs the following operations:
+         *
+         * - System cleanup
+         * - Apply system setting
+         * - Load desktop wallpaper and the current theme from the system setting
+         * - Load system package meta-data
+         * - Load and apply system locale and language
+         *
+         *
+         * @export
+         * @param {*} conf
+         */
+        function startAntOS(conf: any): void;
+        /**
+         * HTML schemes used by the system:
+         * - The login screen scheme
+         * - The workspace including:
+         *  - System panel
+         *  - Virtual desktop
+         *  - Context menu
+         *  - System tooltip
+         */
+        const schemes: GenericObject;
+    }
+}
+/**
+ * Reference to the global this
+ */
+declare const Ant: typeof globalThis;
+/**
+ * Extend the String prototype with some API
+ * functions used by AntOS API
+ *
+ * @interface String
+ */
+interface String {
+    /**
+     * Simple string hash function
+     *
+     * @returns {number}
+     * @memberof String
+     */
+    hash(): number;
+    /**
+     * Parse the current string and convert it
+     * to an object of type [[Version]] if the string
+     * is in the format recognized by [[Version]],
+     * e.g.: `1.0.1-a`
+     *
+     * @returns {OS.Version}
+     * @memberof String
+     */
+    __v(): OS.Version;
+    /**
+     * Convert the current string to base 64 string
+     *
+     * @returns {string}
+     * @memberof String
+     */
+    asBase64(): string;
+    /**
+     * Unescape all escaped characters on the
+     * string using `\`
+     *
+     * @returns {string}
+     * @memberof String
+     */
+    unescape(): string;
+    /**
+     * Escape the current string using backslash
+     *
+     * @returns {string}
+     * @memberof String
+     */
+    escape(): string;
+    /**
+     * Convert the current string to uint8 array
+     *
+     * @returns {Uint8Array}
+     * @memberof String
+     */
+    asUint8Array(): Uint8Array;
+    /**
+     * Format the current using input parameters.
+     * The current string should be a formatted string
+     * in the following form:
+     *
+     * ```typescript
+     * "example string: {0} and {1}".format("hello", "world")
+     * // return "example string: hello and world"
+     * ```
+     *
+     * @param {...any[]} args
+     * @returns {string}
+     * @memberof String
+     */
+    format(...args: any[]): string;
+    /**
+     * Create a [[FormattedString]] object using the current
+     * string and the input parameters
+     *
+     * @param {...any[]} args
+     * @returns {OS.FormattedString}
+     * @memberof String
+     */
+    f(...args: any[]): OS.FormattedString;
+    /**
+     * Check if the current string is translatable, if it
+     * is the case, translate the string to the language specified
+     * in the current system locale setting.
+     *
+     * A translatable string is a string in the following
+     * form: `"__(example string)"`
+     *
+     * @returns {string}
+     * @memberof String
+     */
+    __(): string;
+    /**
+     * Translate current string to the language specified
+     * by the system locale setting
+     *
+     * @returns {string}
+     * @memberof String
+     */
+    l(): string;
+    /**
+     * Trim left of a string by a mask string
+     *
+     * @param {string} arg specifies a sub-string to be removed
+     * @returns {string}
+     * @memberof String
+     */
+    trimFromLeft(arg: string): string;
+    /**
+     * Trim right of a string by a mask string
+     *
+     * @param {string} arg specifies a sub-string to be removed
+     * @returns {string}
+     * @memberof String
+     */
+    trimFromRight(arg: string): string;
+    /**
+     * Trim both left and right of a string by a mask string
+     *
+     * @param {string} arg specifies a sub-string to be removed
+     * @returns {string}
+     * @memberof String
+     */
+    trimBy(arg: string): string;
+}
+/**
+ * Extend the Data prototype with the
+ * [[timestamp]] function
+ *
+ * @interface Date
+ */
+interface Date {
+    /**
+     * Return the timestamp of the current Date object
+     *
+     * @returns {number}
+     * @memberof Date
+     */
+    timestamp(): number;
+}
+/**
+ * Generic key-value pair object interface
+ *
+ * @interface GenericObject
+ * @template T
+ */
+interface GenericObject {
+    [index: string]: T;
+}
+/**
+ * Global function to create a [[FormattedString]] from
+ * a formatted string and a list of parameters. Example
+ *
+ * ```typescript
+ * __("hello {0}", world) // return a FormattedString object
+ * ```
+ *
+ * @param {...any[]} args
+ * @returns {(OS.FormattedString | string)}
+ */
+declare function __(...args: any[]): OS.FormattedString | string;
+/**
+ * This global function allow chaining stack trace from one error to
+ * another. It is particular helping when tracking the source of
+ * the error in promises chain which results in some obfuscated stack
+ * traces as the stack resets on every new promise.
+ *
+ * @param {Error} e
+ * @returns {Error}
+ */
+declare function __e(e: Error): Error;
+/**
+ * This namespace is the main entry point of AntOS
+ * API
+ */
+declare namespace OS {
+    /**
+     * Represent a translatable formatted string
+     *
+     * @export
+     * @class FormattedString
+     */
+    class FormattedString {
+        /**
+         * Format string in the following form
+         *
+         * ```typescript
+         * "format string with {0} and {1}"
+         * // {[0-9]} is the format pattern
+         * ```
+         *
+         * @type {string}
+         * @memberof FormattedString
+         */
+        fs: string;
+        /**
+         * The value of the format pattern represented
+         * in [[fs]]
+         *
+         * @type {any[]}
+         * @memberof FormattedString
+         */
+        values: any[];
+        /**
+         * Creates an instance of FormattedString.
+         * @param {string} fs format string
+         * @param {any[]} args input values of the format patterns
+         * @memberof FormattedString
+         */
+        constructor(fs: string, args: any[]);
+        /**
+         * Convert FormattedString to String
+         *
+         * @returns {string}
+         * @memberof FormattedString
+         */
+        toString(): string;
+        /**
+         * Translate the format string to the current system
+         * locale language, format the string with values and
+         * then converted it to normal `string`
+         *
+         * @returns {string}
+         * @memberof FormattedString
+         */
+        __(): string;
+        /**
+         * Return the hash number of the formatted string
+         *
+         * @returns {number}
+         * @memberof FormattedString
+         */
+        hash(): number;
+        /**
+         * Match the formatted string against a regular expression
+         * a string pattern
+         *
+         * @param {(string | RegExp)} t string or regular expression
+         * @returns {RegExpMatchArray}
+         * @memberof FormattedString
+         */
+        match(t: string | RegExp): RegExpMatchArray;
+        /**
+         * Convert the formatted string to Base^$
+         *
+         * @returns {string}
+         * @memberof FormattedString
+         */
+        asBase64(): string;
+        /**
+         * Un escape the formatted string
+         *
+         * @returns {string}
+         * @memberof FormattedString
+         */
+        unescape(): string;
+        /**
+         * Escape the formatted string
+         *
+         * @returns {string}
+         * @memberof FormattedString
+         */
+        escape(): string;
+        /**
+         * Convert the formatted string to uint8 array
+         *
+         * @returns {Uint8Array}
+         * @memberof FormattedString
+         */
+        asUint8Array(): Uint8Array;
+        /**
+         * Input values for the format string
+         *
+         * @param {...any[]} args
+         * @memberof FormattedString
+         */
+        format(...args: any[]): void;
+    }
+    /**
+     * This class represents the Version number format used by AntOS. A typical
+     * AntOS version number is in the following format:
+     *
+     * ```
+     * [major_number].[minor_number].[patch]-[branch]
+     *
+     * e.g.: 1.2.3-r means that:
+     * - version major number is 1
+     * - version minor number is 2
+     * - patch version is 3
+     * - the current branch is release `r`
+     * ```
+     *
+     * @export
+     * @class Version
+     */
+    class Version {
+        /**
+         * The version string
+         *
+         * @type {string}
+         * @memberof Version
+         */
+        string: string;
+        /**
+         * The current branch
+         * - 1: `a` - alpha branch
+         * - 2: `b` - beta branch
+         * - 3: `r` - release branch
+         *
+         * @private
+         * @type {number}
+         * @memberof Version
+         */
+        private branch;
+        /**
+         * Version major number
+         *
+         * @type {number}
+         * @memberof Version
+         */
+        major: number;
+        /**
+         * Version minor number
+         *
+         * @type {number}
+         * @memberof Version
+         */
+        minor: number;
+        /**
+         * Version patch number
+         *
+         * @type {number}
+         * @memberof Version
+         */
+        patch: number;
+        /**
+         *Creates an instance of Version.
+         * @param {string} string string represents the version
+         * @memberof Version
+         */
+        constructor(string: string);
+        /**
+         * Compare the current version with another version.
+         *
+         * The comparison priority is `branch>major>minor>patch`.
+         *
+         * For the branch, the priority is `r>b>a`
+         *
+         * @param {(string | Version)} o version string or object
+         * @returns {(0 | 1 | -1)}
+         * Return 0 if the two versions are the same, 1 if
+         * the current version is newer than the input version,
+         * otherwise return -1
+         * @memberof Version
+         */
+        compare(o: string | Version): 0 | 1 | -1;
+        /**
+         * Check if the current version is newer than
+         * the input version
+         *
+         * @param {(string | Version)} o version string or object
+         * @returns {boolean}
+         * @memberof Version
+         */
+        nt(o: string | Version): boolean;
+        /**
+         * Check if the current version is older than
+         * the input version
+         *
+         * @param {(string | Version)} o version string or object
+         * @returns {boolean}
+         * @memberof Version
+         */
+        ot(o: string | Version): boolean;
+        /**
+         * Return itself
+         *
+         * @returns {Version}
+         * @memberof Version
+         */
+        __v(): Version;
+        /**
+         * Convert Version object to string
+         *
+         * @returns {string}
+         * @memberof Version
+         */
+        toString(): string;
+    }
+    /**
+     * Variable represents the current AntOS version, it
+     * is an instance of [[Version]]
+     */
+    const VERSION: Version;
+    /**
+     * Register a model prototype to the system namespace.
+     * There are two types of model to be registered, if the model
+     * is of type [[SubWindow]], its prototype will be registered
+     * in the [[dialogs]] namespace, otherwise, if the model type
+     * is [[Application]] or [[Service]], its prototype will be
+     * registered in the [[application]] namespace.
+     *
+     * When a model is loaded in the system, its prototype is registered
+     * for later uses
+     *
+     * @export
+     * @param {string} name class name
+     * @param {*} x the corresponding class
+     * @returns {*}
+     */
+    function register(name: string, x: PM.ModelTypeClass): void;
+    /**
+     * This function cleans up the entire system and
+     * makes sure the system is in a new and clean session.
+     * It performs the following operations:
+     *
+     * - Kill all running processes
+     * - Unregister all global events and reset the  global
+     * announcement system
+     * - Clear the current theme
+     * - Reset process manager and all system settings
+     *
+     * @export
+     */
+    function cleanup(): void;
+    /**
+     * Booting up AntOS. This function checks whether the user
+     * is successfully logged in, then call [[startAntOS]], otherwise
+     * it shows the login screen
+     *
+     * @export
+     */
+    function boot(): void;
+    /**
+     * Placeholder for all the callbacks that are called when the system
+     * exits. These callbacks are useful when an application or service wants
+     * to perform a particular task before shuting down the system
+     */
+    const cleanupHandles: {
+        [index: string]: () => void;
+    };
+    /**
+     * Perform the system shutdown operation. This function calls all
+     * clean up handles in [[cleanupHandles]], then save the system setting
+     * before exiting
+     *
+     * @export
+     */
+    function exit(): void;
+    /**
+     * Register a callback to the system [[cleanupHandles]]
+     *
+     * @export
+     * @param {string} n callback string name
+     * @param {() => void} f the callback handle
+     * @returns
+     */
+    function onexit(n: string, f: () => void): () => void;
+    /**
+     * The namespace API is dedicated to the definition of the core system APIs
+     * used by AntOS and its applications. The following core APIs are defined:
+     *
+     * - The AntOS announcement system
+     * - Virtual File system
+     * - Virtual Database
+     * - Low-level REST based client-server communication
+     * - Dependencies management
+     * - System utilities
+     *
+     * These APIs are considered as middle-ware that abstracts the client-server
+     * communication and provide the application layer with a standardized APIs
+     * for file/database access, system events handling (announcement), automatic
+     * dependencies resolving, etc.
+     */
+    namespace API {
+        /**
+         * AntOS package meta-data type definition
+         *
+         * @export
+         * @interface PackageMetaType
+         */
+        interface PackageMetaType {
+            /**
+             * The application class name, if the package has only services
+             * this property is ignored and [[pkgname]] should be specified
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            app?: string;
+            /**
+             * Package name, in case of [[app]] being undefined, this property
+             * need to be specified
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            pkgname?: string;
+            /**
+             * Package category
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            category: string;
+            /**
+             * Package description string
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            description: string;
+            /**
+             * List of services that is attached to the
+             * package
+             *
+             * @type {string[]}
+             * @memberof PackageMetaType
+             */
+            services?: string[];
+            /**
+             * CSS icon class of the package
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            iconclass?: string;
+            /**
+             * VFS application icon path
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            icon?: string;
+            /**
+             * Package information
+             *
+             * @type {{
+             *                 author: string;
+             *                 email: string;
+             *                 [propName: string]: any;
+             *             }}
+             * @memberof PackageMetaType
+             */
+            info: {
+                /**
+                 * Author of the package
+                 *
+                 * @type {string}
+                 */
+                author: string;
+                /**
+                 * Author's email
+                 *
+                 * @type {string}
+                 */
+                email: string;
+                [propName: string]: any;
+            };
+            /**
+             * Application-specific locale definition. When the system locale changes,
+             * translatable texts inside the application will be first translated using
+             * the locale dictionary defined in the package meta-data. If no translation
+             * found, the system locale dictionary is used instead.
+             *
+             * A local dictionary definition should be in the following format:
+             *
+             * ```typescript
+             * {
+             *      [locale_name: string]: {
+             *          [origin_string]: string // translation string
+             *      }
+             * }
+             * ```
+             *
+             * Example of locale dictionaries:
+             *
+             * ```typescript
+             * {
+             *      "en_GB": {
+             *          "Cancel": "Cancel",
+             *          "Modify": "Modify"
+             *      },
+             *      "fr_FR": {
+             *          "Cancel": "Annuler",
+             *          "Modify": "Modifier"
+             *      }
+             * }
+             * ```
+             *
+             * @type {{ [index: string]: GenericObject }} locale dictionaries
+             * @memberof PackageMetaType
+             */
+            locales: {
+                [index: string]: GenericObject;
+            };
+            /**
+             * Mime types supported by the packages, regular expression can be used
+             * to specified a range of mimes in common
+             *
+             * @type {string[]}
+             * @memberof PackageMetaType
+             */
+            mimes: string[];
+            /**
+             * Package (application) name
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            name: string;
+            /**
+             * VFS path to package installation location
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            path: string;
+            /**
+             * Package version, should be in a format conforming
+             * to the version definition in [[Version]] class
+             *
+             * @type {string}
+             * @memberof PackageMetaType
+             */
+            version: string;
+            /**
+             * Package dependencies, each entry is in the following format
+             *
+             * `package_name@version`
+             *
+             * Example:
+             *
+             * ```json
+             * [
+             *  "File@0.1.5-b"
+             * ]
+             * ```
+             *
+             * @type {string[]}
+             * @memberof PackageMetaType
+             */
+            dependencies: string[];
+            [propName: string]: any;
+        }
+        /**
+         * Placeholder to store all loaded shared libraries. Once
+         * a shared library is firstly loaded, its identity will be
+         * stored in this variable. Based on this information, in
+         * the next use of the library, the system knows that the
+         * library is already loaded and ready to use.
+         *
+         * A shared library can be a javascript or a CSS file.
+         */
+        const shared: GenericObject;
+        /**
+         * Placeholder for all global search handles registered to the system.
+         * These callbacks will be called when user performs the search operation
+         * in the spotlight UI.
+         *
+         * Applications can define their own search handle to provide the spotlight UI
+         * with additional search results
+         *
+         */
+        const searchHandle: GenericObject<(text: string) => any[]>;
+        /**
+         * Placeholder of the current system locale dictionary, the system uses
+         * this dictionary to translate all translatable texts to the current
+         * locale language
+         */
+        var lang: GenericObject;
+        /**
+         * Re-export the system announcement [[getMID]] function to the
+         * core API
+         *
+         * @export
+         * @returns {number}
+         */
+        function mid(): number;
+        /**
+         * REST-based API.
+         *
+         * Perform a POST request to the server. Data exchanged
+         * is in `application/json`
+         *
+         * @export
+         * @param {string} p the server URI
+         * @param {*} d data object that will be converted to JSON
+         * @returns {Promise} a promise on the result data
+         */
+        function post(p: string, d: any): Promise;
+        /**
+         * REST-based API.
+         *
+         * Perform a GET request and read back the data in
+         * `ArrayBuffer` (binary) format. This is useful for
+         * binary data reading
+         *
+         * @export
+         * @param {string} p resource URI
+         * @returns {Promise} a promise on the returned binary data
+         */
+        function blob(p: string): Promise;
+        /**
+         * REST-based API.
+         *
+         * Send file to server
+         *
+         * @export
+         * @param {string} p resource URI
+         * @param {string} d VFS path of the destination file
+         * @returns {Promise}
+         */
+        function upload(p: string, d: string): Promise;
+        /**
+         * REST-based API.
+         *
+         * Download a file
+         *
+         * @export
+         * @param {string} name file name
+         * @param {*} b file content
+         */
+        function saveblob(name: string, b: any): void;
+        /**
+         * Helper function to trigger the global `loading`
+         * event. This event should be triggered in the
+         * beginning of a heavy task
+         *
+         * @export
+         * @param {number} q message id, see [[mid]]
+         * @param {string} p message string
+         */
+        function loading(q: number, p: string): void;
+        /**
+         * Helper function to trigger the global `loaded`
+         * event: This event should be triggered in the
+         * end of a heavy task that has previously triggered
+         * the `loading` event
+         *
+         * @export
+         * @param {number} q the message id of the corresponding `loading` event
+         * @param {string} p the message string
+         * @param {string} m message status  (`OK` of `FAIL`)
+         */
+        function loaded(q: number, p: string, m: string): void;
+        /**
+         * Perform an REST GET request
+         *
+         * @export
+         * @param {string} p the URI of the request
+         * @param {string} [t=undefined] the response data type:
+         * - jsonp: the response is an json object
+         * - script: the response is a javascript code
+         * - xm, html: the response is a XML/HTML object
+         * - text: plain text
+         * @returns {Promise} a Promise on the requested data
+         */
+        function get(p: string, t?: string): Promise;
+        /**
+         * REST-based API
+         *
+         * Perform a GET operation and executed the returned
+         * content as javascript
+         *
+         * @export
+         * @param {string} p URI resource
+         * @returns {Promise} promise on the executed content
+         */
+        function script(p: string): Promise;
+        /**
+         * REST-based API
+         *
+         * Get the content of a global asset resource stored
+         * in `os://resources/`
+         *
+         * @export
+         * @param {string} r relative path to the resource
+         * @returns {Promise} promise on the returned content
+         */
+        function resource(r: string): Promise;
+        /**
+         * Helper function to verify whether a shared library
+         * is loaded and ready to use
+         *
+         * @export
+         * @param {string} l path to the library
+         * @returns {boolean}
+         */
+        function libready(l: string): boolean;
+        /**
+         * Load a shared library if not ready
+         *
+         * @export
+         * @param {string} l VFS path to the library
+         * @param {string} force force reload library
+         * @returns {Promise} a promise on the result data
+         */
+        function requires(l: string, force?: boolean): Promise;
+        /**
+         * Synchronously load a list of shared libraries
+         *
+         * @export
+         * @param {string[]} libs list of shared libraries
+         * @returns {Promise}
+         */
+        function require(libs: string[]): Promise;
+        /**
+         * The namespace packages is dedicated to all package management
+         * related APIs.
+         */
+        namespace packages {
+            /**
+             * Fetch the package meta-data from the server
+             *
+             * @export
+             * @returns {Promise} Promise on a [[RequestResult]].
+             * A success request result should contain a list of [[PackageMetaType]]
+             */
+            function fetch(): Promise;
+            /**
+             * Request the server to regenerate the package
+             * caches
+             *
+             * @export
+             * @returns {Promise}
+             */
+            function cache(): Promise;
+        }
+        /**
+         * Save the current user setting
+         *
+         * @export
+         * @returns {Promise} promise on a [[RequestResult]]
+         */
+        function setting(): Promise;
+        /**
+         * An apigateway allows client side to execute a custom server-side
+         * script and get back the result. This gateway is particularly
+         * useful in case of performing a task that is not provided by the core
+         * API
+         *
+         * @export
+         * @param {GenericObject} d execution indication, provided only when ws is `false`
+         * otherwise, `d` should be written directly to the websocket stream as JSON object.
+         * Two possible formats of `d`:
+         * ```text
+         * execute an server-side script file:
+         *
+         * {
+         *  path: [VFS path],
+         *  parameters: [parameters of the server-side script]
+         * }
+         *
+         * or, execute directly a snippet of server-side script:
+         *
+         * { code: [server-side script code snippet as string] }
+         *
+         * ```
+         *
+         * @param {boolean} ws flag indicate whether to use websocket for the connection
+         * to the gateway API. In case of streaming data, the websocket is preferred
+         * @returns {Promise} a promise on the result object (any)
+         */
+        function apigateway(d: GenericObject, ws: boolean): Promise;
+        /**
+         * Perform the global search operation when user enter
+         * text in spotlight.
+         *
+         * This function will call all the search handles stored
+         * in [[searchHandle]] and build the search result based
+         * on output of these handle
+         *
+         * @export
+         * @param {string} text text to search
+         * @returns {any[]}
+         */
+        function search(text: string): any[];
+        /**
+         * Register a search handle to the global [[searchHandle]]
+         *
+         * @export
+         * @param {string} name handle name string
+         * @param {(text: string) => any[]} fn search handle
+         */
+        function onsearch(name: string, fn: (text: string) => any[]): void;
+        /**
+         * Set the current system locale: This function will
+         * find and load the locale dictionary definition file in the
+         * system asset resource, then trigger the global event
+         * `systemlocalechange` to translated all translatable text
+         * to the target language
+         *
+         * @export
+         * @param {string} name locale name, e.g. `en_GB`
+         * @returns {Promise}
+         */
+        function setLocale(name: string): Promise;
+        /**
+         * Return an error Object: AntOS use this function to
+         * collect information (stack trace) from user reported
+         * error.
+         *
+         * @export
+         * @param {(string | FormattedString)} n error string
+         * @returns {Error}
+         */
+        function throwe(n: string | FormattedString): Error;
+        /**
+         * Set value to the system clipboard
+         *
+         * @export
+         * @param {string} v clipboard value
+         * @returns {boolean}
+         */
+        function setClipboard(v: string): boolean;
+        /**
+         * Get the clipboard data
+         *
+         * @export
+         * @returns {Promise} Promise on the clipboard data
+         */
+        function getClipboard(): Promise;
+        /**
+         * A switcher object is a special object in which
+         * each object's property is a boolean option. All object's
+         * properties are mutual exclusive. It means that when a property
+         * is set to true, all other properties will be reset to false.
+         *
+         * Example:
+         *
+         * ```typescript
+         * let view = API.switcher("tree", "list", "icon")
+         * view.tree = true // view.list = false and view.icon = false
+         * view.list = true // view.tree = false and view.icon = false
+         * ```
+         *
+         * @export
+         * @returns {*}
+         */
+        function switcher(...args: string[]): any;
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        /**
+         * the SubWindow class is the abstract prototype of all
+         * modal windows or dialogs definition in AntOS
+         *
+         * @export
+         * @abstract
+         * @class SubWindow
+         * @extends {BaseModel}
+         */
+        abstract class SubWindow extends BaseModel {
+            /**
+             * Placeholder indicates whether the sub window is in
+             * modal mode. This value is reserver for future use
+             *
+             * @type {boolean}
+             * @memberof SubWindow
+             */
+            modal: boolean;
+            /**
+             * Reference to the parent of the current sub-window
+             *
+             * @type {(BaseModel | typeof GUI)}
+             * @memberof SubWindow
+             */
+            parent: BaseModel | typeof GUI;
+            /**
+             *Creates an instance of SubWindow.
+             * @param {string} name SubWindow (class) name
+             * @memberof SubWindow
+             */
+            constructor(name: string);
+            /**
+             * Exit the sub-window
+             *
+             * @returns {void}
+             * @memberof SubWindow
+             */
+            quit(): void;
+            /**
+             * Init the sub-window, this function is called
+             * on creation of the sub-window object. It is used
+             * to render the sub-window UI.
+             *
+             * Need to be implemented by subclasses
+             *
+             * @abstract
+             * @memberof SubWindow
+             */
+            abstract init(): void;
+            /**
+             * Main entry point after rendering of the sub-window
+             *
+             * @abstract
+             * @memberof SubWindow
+             */
+            abstract main(): void;
+            /**
+             * Return the parent meta-data of the current
+             * sub-window
+             *
+             * @returns {API.PackageMetaType}
+             * @memberof SubWindow
+             */
+            meta(): API.PackageMetaType;
+            /**
+             * Show the sub-window
+             *
+             * @memberof SubWindow
+             */
+            show(): void;
+            /**
+             * Hide the sub-window
+             *
+             * @returns {void}
+             * @memberof SubWindow
+             */
+            hide(): void;
+        }
+        /**
+         * Abstract prototype of all AntOS dialogs widget
+         *
+         * @export
+         * @abstract
+         * @class BaseDialog
+         * @extends {SubWindow}
+         */
+        abstract class BaseDialog extends SubWindow {
+            /**
+             * Placeholder for the dialog callback on exit
+             *
+             * @memberof BaseDialog
+             */
+            handle: (d: any) => void;
+            /**
+             * Placeholder of the dialog input data
+             *
+             * @type {GenericObject}
+             * @memberof BaseDialog
+             */
+            data: GenericObject;
+            /**
+             *Creates an instance of BaseDialog.
+             * @param {string} name Dialog (class) name
+             * @memberof BaseDialog
+             */
+            constructor(name: string);
+            /**
+             * Function called when dialog exits
+             *
+             * @protected
+             * @param {BaseEvent} _e
+             * @returns {void}
+             * @memberof BaseDialog
+             */
+            protected onexit(_e: BaseEvent): void;
+        }
+        /**
+         * A basic dialog renders a dialog widget using the UI
+         * scheme provided in it constructor or defined in its
+         * class variable `scheme`
+         *
+         * @export
+         * @class BasicDialog
+         * @extends {BaseDialog}
+         */
+        class BasicDialog extends BaseDialog {
+            /**
+             * Placeholder for the UI scheme to be rendered. This can
+             * be either the string definition of the scheme or
+             * the VFS file handle of the scheme file
+             *
+             * @protected
+             * @type {(string | OS.API.VFS.BaseFileHandle)}
+             * @memberof BasicDialog
+             */
+            protected markup: string | OS.API.VFS.BaseFileHandle;
+            /**
+             * If the `markup` variable is not provided, then
+             * the [[init]] function will find the scheme definition
+             * in this class variable
+             *
+             * @static
+             * @type {string}
+             * @memberof BasicDialog
+             */
+            static scheme: string;
+            /**
+             *Creates an instance of BasicDialog.
+             * @param {string} name dialog name
+             * @param {(string | OS.API.VFS.BaseFileHandle)} [markup] UI scheme definition
+             * @memberof BasicDialog
+             */
+            constructor(name: string, markup?: string | OS.API.VFS.BaseFileHandle);
+            /**
+             * Render the dialog using the UI scheme provided by either
+             * the `markup` instance variable or the `scheme` class variable
+             *
+             * @returns {void}
+             * @memberof BasicDialog
+             */
+            init(): void;
+            /**
+             * Main entry point for the dialog
+             *
+             * @memberof BasicDialog
+             */
+            main(): void;
+        }
+        /**
+         * The namespace `dialogs` is dedicated to all Dialog definition
+         * in AntOS
+         */
+        namespace dialogs {
+            /**
+             * Simple prompt dialog to get user input text.
+             * The input data of the dialog:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      label: string, // label text
+             *      value: string,   // user input text
+             *      type: string // input type: text or password
+             * }
+             * ```
+             *
+             * The data passing from the dialog to the callback function is
+             * in the string text of the user input value
+             *
+             * @export
+             * @class PromptDialog
+             * @extends {BasicDialog}
+             */
+            class PromptDialog extends BasicDialog {
+                /**
+                 *Creates an instance of PromptDialog.
+                 * @memberof PromptDialog
+                 */
+                constructor();
+                /**
+                 * Main entry point
+                 *
+                 * @memberof PromptDialog
+                 */
+                main(): void;
+            }
+            /**
+             * A text dialog is similar to a [[PromptDialog]] nut allows
+             * user to input multi-line text.
+             *
+             * Refer to [[PromptDialog]] for the definition of input and callback data
+             * of the dialog
+             *
+             * @export
+             * @class TextDialog
+             * @extends {BasicDialog}
+             */
+            class TextDialog extends BasicDialog {
+                /**
+                 *Creates an instance of TextDialog.
+                 * @memberof TextDialog
+                 */
+                constructor();
+                /**
+                 * Main entry point
+                 *
+                 * @memberof TextDialog
+                 */
+                main(): void;
+            }
+            /**
+             * A Calendar dialog allows user to select a date
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string // window title
+             * }
+             * ```
+             *
+             * @export
+             * @class CalendarDialog
+             * @extends {BasicDialog}
+             */
+            class CalendarDialog extends BasicDialog {
+                /**
+                 * Creates an instance of CalendarDialog.
+                 *
+                 * Callback data: a Date object represent the selected date
+                 *
+                 *
+                 * @memberof CalendarDialog
+                 */
+                constructor();
+                /**
+                 *
+                 *
+                 * @memberof CalendarDialog
+                 */
+                main(): void;
+            }
+            /**
+             * Color picker dialog
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string // window title
+             * }
+             * ```
+             * Callback data: [[ColorType]] object
+             *
+             * @export
+             * @class ColorPickerDialog
+             * @extends {BasicDialog}
+             */
+            class ColorPickerDialog extends BasicDialog {
+                /**
+                 *Creates an instance of ColorPickerDialog.
+                 * @memberof ColorPickerDialog
+                 */
+                constructor();
+                /**
+                 *
+                 *
+                 * @memberof ColorPickerDialog
+                 */
+                main(): void;
+            }
+            /**
+             * Show key-value pair of the input object
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      [propName:string]: any
+             * }
+             * ```
+             *
+             * No data for callback
+             *
+             * @export
+             * @class InfoDialog
+             * @extends {BasicDialog}
+             */
+            class InfoDialog extends BasicDialog {
+                /**
+                 *Creates an instance of InfoDialog.
+                 * @memberof InfoDialog
+                 */
+                constructor();
+                /**
+                 *
+                 *
+                 * @memberof InfoDialog
+                 */
+                main(): void;
+            }
+            /**
+             * A simple confirm dialog
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      icon?: string, // label icon
+             *      iconclass?: string, // label iconclass
+             *      text: string // label text
+             * }
+             * ```
+             *
+             * Callback data: `boolean`
+             *
+             * @export
+             * @class YesNoDialog
+             * @extends {BasicDialog}
+             */
+            class YesNoDialog extends BasicDialog {
+                /**
+                 *Creates an instance of YesNoDialog.
+                 * @memberof YesNoDialog
+                 */
+                constructor();
+                /**
+                 * Main entry point
+                 *
+                 * @memberof YesNoDialog
+                 */
+                main(): void;
+            }
+            /**
+             * A selection dialog provide user with a list of options to
+             * select.
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      data:
+             *      {
+             *          text: string,
+             *          [propName:string]: any
+             *      } [] // list data
+             * ```
+             *
+             * Callback data: the selected data in the input list
+             *
+             * @export
+             * @class SelectionDialog
+             * @extends {BasicDialog}
+             */
+            class SelectionDialog extends BasicDialog {
+                /**
+                 *Creates an instance of SelectionDialog.
+                 * @memberof SelectionDialog
+                 */
+                constructor();
+                /**
+                 * Main entry
+                 *
+                 * @memberof SelectionDialog
+                 */
+                main(): void;
+            }
+            /**
+             * An About dialog is dedicated to show the parent
+             * application meta-data
+             *
+             * Input data: no
+             *
+             * Callback data: no
+             *
+             * @export
+             * @class AboutDialog
+             * @extends {BasicDialog}
+             */
+            class AboutDialog extends BasicDialog {
+                /**
+                 *Creates an instance of AboutDialog.
+                 * @memberof AboutDialog
+                 */
+                constructor();
+                /**
+                 * Main entry point
+                 *
+                 * @returns {void}
+                 * @memberof AboutDialog
+                 */
+                main(): void;
+            }
+            /**
+             * File dialog allows user to select a file/folder
+             *
+             * Input data:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      root?: string, // the root path folder of the file view
+             *      type?: "file"|"dir"|"app", // file type to be selected
+             *      mimes?: string[], // mime types of file to be selected
+             *      hidden?: boolean, // show/hide hidden file
+             *      file?: string // file name
+             *
+             * }
+             * ```
+             *
+             * Callback data:
+             *
+             * ```typescript
+             * {
+             *      file: string, // selected file path
+             *      name: string // user input file name
+             * }
+             * ```
+             *
+             * @export
+             * @class FileDialog
+             * @extends {BasicDialog}
+             */
+            class FileDialog extends BasicDialog {
+                /**
+                 *Creates an instance of FileDialog.
+                 * @memberof FileDialog
+                 */
+                constructor();
+                /**
+                 * Store the last opened directory
+                 *
+                 * @static
+                 * @type {string}
+                 * @memberof FileDialog
+                 */
+                static last_opened: string;
+                /**
+                 *
+                 *
+                 * @returns {void}
+                 * @memberof FileDialog
+                 */
+                main(): void;
+            }
+            /**
+             * Generic & dynamic key-value dialog. The content
+             * of the dialog consist of an array of label and input elements
+             * which are generated based on the input model
+             *
+             * The input data of the dialog should be:
+             *
+             * ```typescript
+             * {
+             *      title: string, // window title
+             *      model: {
+             *          [propName:string]: string
+             *      },
+             *      data: {
+             *          [propName:string]: string
+             *      },
+             *      allow_empty: boolean
+             * }
+             * ```
+             * Where:
+             * - keys of `model` are data fields, each key correspond to an input element
+             * - values of `model` are description texts of fields, each value correspond to a label text
+             * - data is the input data object in the format of model (optional)
+             *
+             * ```
+             * Example:
+             * {
+             *      title: "Greeting",
+             *      model: {
+             *          name: "Your name",
+             *          email: "Your email"
+             *      },
+             *      allow_empty: false
+             * }
+             *```
+
+             * The data passing from the dialog to the callback function is
+             * the user input data corresponding to the input model
+             *
+             * Example of callback data for the above model:
+             *
+             * ```
+             * {
+             *      name: "John Doe",
+             *      email: "jd@mail.com"
+             * }
+             * ```
+             *
+             * @export
+             * @class MultiInputDialog
+             * @extends {BasicDialog}
+             */
+            class MultiInputDialog extends BasicDialog {
+                /**
+                 * References to all the input fields in the
+                 * dialog
+                 *
+                 * @private
+                 * @type {HTMLElement[]}
+                 * @memberof MultiInputDialog
+                 */
+                private inputs;
+                /**
+                 *Creates an instance of MultiInputDialog.
+                 * @memberof MultiInputDialog
+                 */
+                constructor();
+                /**
+                 * Generate the scheme before rendering
+                 *
+                 * @memberof MultiInputDialog
+                 */
+                init(): void;
+                /**
+                 * Main entry point
+                 *
+                 * @memberof MultiInputDialog
+                 */
+                main(): void;
+            }
+            /**
+             * Generic dynamic key-value dialog
+             *
+             * Allow user to input any data key-value based object:
+             *
+             * {
+             *      [prop:string]: string;
+             * }
+             *
+             * @export
+             * @class KeyValueDialog
+             * @extends {BasicDialog}
+             */
+            class KeyValueDialog extends BasicDialog {
+                /**
+                 * Reference to the form container
+                 *
+                 * @private
+                 * @type {HTMLDivElement}
+                 * @memberof KeyValueDialog
+                 */
+                private container;
+                /**
+                 * Creates an instance of KeyValueDialog.
+                 * @memberof KeyValueDialog
+                 */
+                constructor();
+                /**
+                 * Main entry point
+                 *
+                 * @memberof KeyValueDialog
+                 */
+                main(): void;
+                /**
+                 * Add new input key-value field to the dialog
+                 *
+                 * @private
+                 * @memberof KeyValueDialog
+                 */
+                private addField;
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace API {
+        /**
+         * Interface for user login data
+         *
+         * @export
+         * @interface UserLoginType
+         */
+        interface UserLoginType {
+            /**
+             * The user credential
+             *
+             * @type {string}
+             * @memberof UserLoginType
+             */
+            username: string;
+            /**
+             * The user password
+             *
+             * @type {string}
+             * @memberof UserLoginType
+             */
+            password: string;
+        }
+        /**
+         * Interface for a command sent to
+         * server side package manage, it contains two field:
+         *
+         * @export
+         * @interface PackageCommandType
+         */
+        interface PackageCommandType {
+            /**
+             * Command name, should be: `init`, `cache`, `install`,
+             * `uninstall` or `list`
+             *
+             * @type {string}
+             * @memberof PackageCommandType
+             */
+            command: string;
+            /**
+             * Parameter object of each command
+             *
+             * @type {GenericObject}
+             * @memberof PackageCommandType
+             */
+            args: GenericObject;
+        }
+        /**
+         *
+         * Interface for basic request result returned
+         * from the server-side. A valid server-side response should
+         * be in the following format
+         * ```json
+         * {
+         *  "error": boolean or string_err,
+         *  "result": JSON result object
+         * }
+         * ```
+         *
+         * @export
+         * @interface RequestResult
+         */
+        interface RequestResult {
+            /**
+             * Indicate whether the response is error
+             *
+             * @type {(boolean | string)}
+             * @memberof RequestResult
+             */
+            error: boolean | string;
+            /**
+             * The response result, this value must be
+             * set when `error` is false
+             *
+             * @type {(string
+             *                 | boolean
+             *                 | GenericObject
+             *                 | any[]
+             *                 | FileInfoType
+             *                 | FileInfoType[]
+             *                 | setting.UserSettingType)}
+             * @memberof RequestResult
+             */
+            result: string | boolean | GenericObject | any[] | FileInfoType | FileInfoType[] | setting.UserSettingType;
+        }
+        /**
+         * The host name of the server-side
+         */
+        var HOST: string;
+        /**
+         * The base URI of the server-side API
+         */
+        var BASE_URI: string;
+        /**
+         * The base REST URI of the server-side API
+         */
+        var REST: string;
+        /**
+         * The namespace `handle` contains some low level API to
+         * communicate with the server side API. It is the only
+         * API layer that communicate directly with the server.
+         * To make AntOS compatible with any server side API,
+         * all exported variable unctions defined in the `handle`
+         * namespace should be re-implemented
+         */
+        namespace handle {
+            /**
+             * Base URI for reading content of VFS file
+             */
+            var get: string;
+            /**
+             * Base URI for VFS file sharing
+             */
+            var shared: string;
+            /**
+             * Send a request to the server-side API for a directory scanning
+             * operation
+             *
+             * @export
+             * @param {string} p a VFS file path e.g. home://test/
+             * @returns {Promise} A promise on a [[RequestResult]]
+             * which contains an error or a list of FileInfoType
+             */
+            function scandir(p: string): Promise;
+            /**
+             *
+             * Send a request to the server-side API for directory creation
+             *
+             * @export
+             * @param {string} p VFS path of the directory to be created
+             * @returns {Promise} A promise on a RequestResult
+             * which contains an error or true on success
+             */
+            function mkdir(p: string): Promise;
+            /**
+             * Send a request to the server-side API for sharing/unsharing a VFS file,
+             * once shared a VFS file will be publicly visible by everyone
+             *
+             * @export
+             * @param {string} p VFS file path to be shared
+             * @param {boolean} pub flag: share (true) or unshare (false)
+             * @returns {Promise} A promise on a RequestResult
+             * which contains an error or true on success
+             */
+            function sharefile(p: string, pub: boolean): Promise;
+            /**
+             * Get VFS file meta-data
+             *
+             * @export
+             * @param {string} p VFS file path
+             * @returns {Promise} A promise on a [[RequestResult]]
+             * which contains an error or an object of FileInfoType
+             */
+            function fileinfo(p: string): Promise;
+            /**
+             * Read a VFS file content. There are many ways a VFS file can be read:
+             * - Read as a raw text content
+             * - Read as a javascript file, in this case the content of the
+             * file will be executed
+             * - Read as JSON object
+             *
+             * @export
+             * @param {string} p path of the VFS file
+             * @param {string} t return data type:
+             * - jsonp: the response is an json object
+             * - script: the response is a javascript code
+             * - xml, html: the response is a XML/HTML object
+             * - text: plain text
+             *
+             * @returns {Promise}  A promise on a [[RequestResult]]
+             * which contains an error or an object of [[FileInfoType]]
+             */
+            function readfile(p: string, t: string): Promise;
+            /**
+             * Move a file to another location on server-side
+             *
+             * @export
+             * @param {string} s VFS source file path
+             * @param {string} d VFS destination file path
+             * @returns {Promise}  A promise on a [[RequestResult]]
+             * which contains an error or a success response
+             */
+            function move(s: string, d: string): Promise;
+            /**
+             * Delete a VFS file on the server-side
+             *
+             * @export
+             * @param {string} p VFS file path
+             * @returns {Promise}  A promise on a [[RequestResult]]
+             * which contains an error or a success response
+             */
+            function remove(p: string): Promise;
+            /**
+             * Read the file as binary data
+             *
+             * @export
+             * @param {string} p VFS file to be read
+             * @returns {Promise} a Promise on an array buffer
+             */
+            function fileblob(p: string): Promise;
+            /**
+             * Send a command to the serverside package manager
+             *
+             * @export
+             * @param {PackageCommandType} d a package command of type PackageCommandType
+             * @returns {Promise} a promise on a [[RequestResult]]
+             */
+            function packages(d: PackageCommandType): Promise;
+            /**
+             * Upload file to the server via VFS interface
+             *
+             * @export
+             * @param {string} d VFS destination directory path
+             * @returns {Promise} a promise on a [[RequestResult]]
+             */
+            function upload(d: string): Promise;
+            /**
+             * Write Base 64 encoded data to a VFS file
+             *
+             * @export
+             * @param {string} p path to the VFS file
+             * @param {string} d file data encoded in Base 64
+             * @returns {Promise} a promise on a [[RequestResult]]
+             */
+            function write(p: string, d: string): Promise;
+            /**
+             * An apigateway allows client side to execute a custom server-side
+             * script and get back the result. This gateway is particularly
+             * useful in case of performing a task that is not provided by the core
+             * API
+             *
+             * @export
+             * @param {GenericObject} d execution indication, provided only when ws is `false`
+             * otherwise, `d` should be written directly to the websocket stream as JSON object.
+             * Two possible formats of `d`:
+             * ```text
+             * execute an server-side script file:
+             *
+             * {
+             *  path: [VFS path],
+             *  parameters: [parameters of the server-side script]
+             * }
+             *
+             * or, execute directly a snippet of server-side script:
+             *
+             * { code: [server-side script code snippet as string] }
+             *
+             * ```
+             *
+             * @param {boolean} ws flag indicate whether to use websocket for the connection
+             * to the gateway API. In case of streaming data, the websocket is preferred
+             * @returns {Promise} a promise on the result object (any)
+             */
+            function apigateway(d: GenericObject, ws: boolean): Promise;
+            /**
+             *  Check if a user is logged in
+             *
+             * @export
+             * @returns {Promise} a promise on a [[RequestResult]] that
+             * contains an error or a [[UserSettingType]] object
+             */
+            function auth(): Promise;
+            /**
+             * Perform a login operation
+             *
+             * @export
+             * @param {UserLoginType} d user data [[UserLoginType]]
+             * @returns {Promise} a promise on a [[RequestResult]] that
+             * contains an error or a [[UserSettingType]] object
+             */
+            function login(d: UserLoginType): Promise;
+            /**
+             * Perform a logout operation
+             *
+             * @export
+             * @returns {Promise} a promise on a [[RequestResult]]
+             */
+            function logout(): Promise;
+            /**
+             * Save the current user settings
+             *
+             * @export
+             * @returns {Promise} a promise on a [[RequestResult]]
+             */
+            function setting(): Promise;
+            /**
+             * This is the low level function of AntOS VDB API.
+             * It requests the server API to perform some simple
+             * SQL query.
+             *
+             * @export
+             * @param {string} cmd action to perform: save, delete, get, select
+             * @param {GenericObject} d data object of the request based on each action:
+             * - save:
+             * ```
+             *  { table: "table name", data: [record data object]}
+             * ```
+             * - get:
+             * ```
+             *  { table: "table name", id: [record id]}
+             * ```
+             * - delete:
+             * ```
+             *  { table: "table name", id: [record id]}
+             * or
+             *  { table: "table name", cond: [conditional object]}
+             * ```
+             * - select:
+             * ```
+             * { table: "table name", cond: [conditional object]}
+             * ```
+             * @returns {Promise} a promise of [[RequestResult]] on the
+             * query data
+             *
+             * A conditional object represents a SQL condition statement as an object,
+             * example: `pid = 10 AND cid = 2 ORDER BY date DESC`
+             * ```
+             *  {
+             *      exp: {
+             *          "and": {
+             *              pid: 10,
+             *              cid: 2
+             *          }
+             *      },
+             *      order: {
+             *          date: "DESC"
+             *      }
+             *  }
+             * ```
+             */
+            function dbquery(cmd: string, d: GenericObject): Promise;
+        }
+    }
+}
+declare type VFSFileHandleClass = {
+    new (...args: any[]): OS.API.VFS.BaseFileHandle;
+};
+interface String {
+    /**
+     * Convert a string to VFS file handle.
+     *
+     * This function will create a file handle object from the string
+     * with the help of [[VFS.findHandles]]
+     *
+     * @returns {OS.API.VFS.BaseFileHandle}
+     * @memberof String
+     */
+    asFileHandle(): OS.API.VFS.BaseFileHandle;
+}
+declare namespace OS {
+    namespace API {
+        /**
+         * User permission data type
+         *
+         * @export
+         * @interface UserPermissionType
+         */
+        interface UserPermissionType {
+            read: boolean;
+            write: boolean;
+            exec: boolean;
+        }
+        /**
+         * VFS file meta-data data type
+         *
+         * @export
+         * @interface FileInfoType
+         */
+        interface FileInfoType {
+            /**
+             * File mime type
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            mime: string;
+            /**
+             * File size
+             *
+             * @type {number}
+             * @memberof FileInfoType
+             */
+            size: number;
+            /**
+             * File name
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            name: string;
+            /**
+             * File path
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            path: string;
+            /**
+             * File type:
+             * - `file`
+             * - `dir`
+             * - `app`
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            type: string;
+            /**
+             * File permission
+             *
+             * @type {{
+             *                 group: UserPermissionType;
+             *                 owner: UserPermissionType;
+             *                 other: UserPermissionType;
+             *             }}
+             * @memberof FileInfoType
+             */
+            perm?: {
+                /**
+                 * Group permission
+                 *
+                 * @type {UserPermissionType}
+                 */
+                group: UserPermissionType;
+                /**
+                 * Owner permission
+                 *
+                 * @type {UserPermissionType}
+                 */
+                owner: UserPermissionType;
+                /**
+                 * Other permission
+                 *
+                 * @type {UserPermissionType}
+                 */
+                other: UserPermissionType;
+            };
+            /**
+             * Creation time
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            ctime?: string;
+            /**
+             * Modification time
+             *
+             * @type {string}
+             * @memberof FileInfoType
+             */
+            mtime?: string;
+            /**
+             * Group id
+             *
+             * @type {number}
+             * @memberof FileInfoType
+             */
+            gid?: number;
+            /**
+             * User id
+             *
+             * @type {number}
+             * @memberof FileInfoType
+             */
+            uid?: number;
+            [propName: string]: any;
+        }
+        /**
+         * This namespace is dedicated to all APIs related to
+         * AntOS Virtual File System (VFS)
+         */
+        namespace VFS {
+            /**
+             * Placeholder stores VFS file protocol patterns and its attached file handle class.
+             *
+             */
+            const handles: GenericObject;
+            /**
+             * Register a protocol to a handle class
+             *
+             * @export
+             * @param {string} protos VFS protocol pattern
+             * @param {VFSFileHandleClass} cls handle class
+             */
+            function register(protos: string, cls: VFSFileHandleClass): void;
+            /**
+             * Looking for a attached file handle class of a string protocol
+             *
+             * When converting a string to file handle, the system will look
+             * for a protocol pattern in the string, if the protocol found,
+             * its attached handle class (found in [[VFS.handles]]) will be
+             * used to initialize a file handle object from the string
+             *
+             * ```typescript
+             *  "home://data/test.txt".asFileHandle() // -> an instance of RemoteFileHandle
+             * ```
+             * @export
+             * @param {string} proto protocol string
+             * @returns {VFSFileHandleClass[]}
+             */
+            function findHandles(proto: string): VFSFileHandleClass[];
+            /**
+             * Abstract prototype of all all VFS file handle definition.
+             *
+             * This prototype provides a standardized interface to access
+             * to different underlay file systems such as remote file,
+             * cloud file (Dropbox, Google drive, etc.), URL or memory-based file
+             *
+             * @export
+             * @abstract
+             * @class BaseFileHandle
+             */
+            abstract class BaseFileHandle {
+                /**
+                 * Flag indicates whether the file is dirty
+                 *
+                 * @type {boolean}
+                 * @memberof BaseFileHandle
+                 */
+                dirty: boolean;
+                /**
+                 * Once read, file content will be cached in this placeholder
+                 *
+                 * @type {*}
+                 * @memberof BaseFileHandle
+                 */
+                cache: any;
+                /**
+                 * Flag indicated whether the file meta-data is loaded
+                 *
+                 * @type {boolean}
+                 * @memberof BaseFileHandle
+                 */
+                ready: boolean;
+                /**
+                 * File path
+                 *
+                 * @type {string}
+                 * @memberof BaseFileHandle
+                 */
+                path: string;
+                /**
+                 * File protocol e.g:
+                 * - `os://`
+                 * - `home://`
+                 *
+                 * @type {string}
+                 * @memberof BaseFileHandle
+                 */
+                protocol: string;
+                /**
+                 * List of path segments
+                 *
+                 * @type {string[]}
+                 * @memberof BaseFileHandle
+                 */
+                genealogy: string[];
+                /**
+                 * File base name
+                 *
+                 * @type {string}
+                 * @memberof BaseFileHandle
+                 */
+                basename: string;
+                /**
+                 * Once loaded, [[ready]] will be set to true and
+                 * file meta-data will be stored in this place holder
+                 *
+                 * @type {FileInfoType}
+                 * @memberof BaseFileHandle
+                 */
+                info: FileInfoType;
+                /**
+                 * File extension
+                 *
+                 * @type {string}
+                 * @memberof BaseFileHandle
+                 */
+                ext: string;
+                /**
+                 *
+                 * File type
+                 * @type {string}
+                 * @memberof BaseFileHandle
+                 */
+                type: string;
+                /**
+                 *Creates an instance of BaseFileHandle.
+                 * @param {string} path file path
+                 * @memberof BaseFileHandle
+                 */
+                constructor(path: string);
+                /**
+                 * Set a file path to the current file handle
+                 *
+                 * @param {string} p
+                 * @returns {void}
+                 * @memberof BaseFileHandle
+                 */
+                setPath(p: string): void;
+                /**
+                 * Getter: Get the file basename
+                 * Setter: set the file name
+                 *
+                 * @returns {string}
+                 * @memberof BaseFileHandle
+                 */
+                get filename(): string;
+                set filename(v: string);
+                /**
+                 * Set data to the file cache
+                 *
+                 * @param {*} v data object
+                 * @returns {BaseFileHandle}
+                 * @memberof BaseFileHandle
+                 */
+                setCache(v: any): BaseFileHandle;
+                /**
+                 * Return the object itself
+                 *
+                 * @returns {BaseFileHandle}
+                 * @memberof BaseFileHandle
+                 */
+                asFileHandle(): BaseFileHandle;
+                /**
+                 * Check whether the current file is the root of the file tree
+                 *
+                 * @returns {boolean}
+                 * @memberof BaseFileHandle
+                 */
+                isRoot(): boolean;
+                /**
+                 * Check whether the current file is a hidden file
+                 *
+                 * @returns {boolean}
+                 * @memberof BaseFileHandle
+                 */
+                isHidden(): boolean;
+                /**
+                 * Get hash number of the current file path
+                 *
+                 * @returns {number}
+                 * @memberof BaseFileHandle
+                 */
+                hash(): number;
+                /**
+                 * Convert the current file cache to Base64
+                 *
+                 * @protected
+                 * @param {string} t type of the file cache:
+                 * - `object`
+                 * - `mime type`
+                 * @returns {(Promise)} promise on the converted data
+                 * @memberof BaseFileHandle
+                 */
+                protected b64(t: string): Promise;
+                /**
+                 * Get the parent file handle of the current file
+                 *
+                 * @returns {BaseFileHandle}
+                 * @memberof BaseFileHandle
+                 */
+                parent(): BaseFileHandle;
+                /**
+                 * Load the file meta-data before performing
+                 * any task
+                 *
+                 * @returns {Promise} a promise on file meta-data
+                 * @memberof BaseFileHandle
+                 */
+                onready(): Promise;
+                /**
+                 * Public read operation
+                 *
+                 * This function calls the [[_rd]] function to perform the operation.
+                 *
+                 * If the current file is a directory, then the operation
+                 * will return the meta-data of all files inside of the directory.
+                 * Otherwise, file content will be returned
+                 *
+                 * @param {string} t data type
+                 * - jsonp: the response is an json object
+                 * - script: the response is a javascript code
+                 * - xml, html: the response is a XML/HTML object
+                 * - text: plain text
+                 * - binary
+                 *
+                 * @returns {Promise} a promise on the file content
+                 * @memberof BaseFileHandle
+                 */
+                read(t?: string): Promise;
+                /**
+                 * Write the file cache to the actual file
+                 *
+                 * This function calls the [[_wr]] function to perform the operation
+                 *
+                 * @param {string} t data type
+                 * - `base64`
+                 * - `object`
+                 * - `mime type`
+                 *
+                 * @returns {Promise} promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                write(t: string): Promise;
+                /**
+                 * Sub-directory creation
+                 *
+                 * This function calls the [[_mk]] function to perform the operation
+                 *
+                 * @param {string} d sub directory name
+                 * @returns {Promise} promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                mk(d: string): Promise;
+                /**
+                 * Delete the file
+                 *
+                 * This function calls the [[_rm]] function to perform the operation
+                 *
+                 * @returns {Promise} promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                remove(): Promise;
+                /**
+                 * Upload a file to the current directory
+                 *
+                 * Only work when the current file is a directory
+                 *
+                 * This function calls the [[_up]] function to perform the operation
+                 *
+                 * @returns {Promise} promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                upload(): Promise;
+                /**
+                 * Share the file by publish it.
+                 *
+                 * Only work with file
+                 *
+                 * This function calls the [[_pub]] function to perform the operation
+                 *
+                 * @returns {Promise} promise on operation result
+                 * @memberof BaseFileHandle
+                 */
+                publish(): Promise;
+                /**
+                 * Download the file.
+                 *
+                 * Only work with file
+                 *
+                 * This function calls the [[_down]] function to perform the operation
+                 *
+                 * @returns {Promise} Promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                download(): Promise;
+                /**
+                 * Move the current file to another location
+                 *
+                 * This function calls the [[_mv]] function to perform the operation
+                 *
+                 * @param {string} d destination location
+                 * @returns {Promise} promise on the operation result
+                 * @memberof BaseFileHandle
+                 */
+                move(d: string): Promise;
+                /**
+                 * Execute the current file.
+                 *
+                 * This action depends on each file protocol
+                 *
+                 * This function calls the [[_exec]] function to perform the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                execute(): Promise;
+                /**
+                 * Get an accessible link to the file
+                 * that can be accessed from the browser
+                 *
+                 * @returns {string}
+                 * @memberof BaseFileHandle
+                 */
+                getlink(): string;
+                /**
+                 * Helper function returns a promise on unsupported action
+                 *
+                 * @param {string} t action name
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected unsupported(t: string): Promise;
+                /**
+                 * Low level protocol-specific read operation
+                 *
+                 * This function should be overridden on the file handle class
+                 * that supports the operation
+                 *
+                 * @protected
+                 * @param {string} t data type, see [[read]]
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _rd(t: string): Promise;
+                /**
+                 * Low level protocol-specific write operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @protected
+                 * @param {string} t data type, see [[write]]
+                 * @param {*} [d]
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _wr(t: string, d?: any): Promise;
+                /**
+                 * Low level protocol-specific sub-directory creation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @protected
+                 * @param {string} d sub directory name
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _mk(d: string): Promise;
+                /**
+                 * Low level protocol-specific delete operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _rm(): Promise;
+                /**
+                 * Low level protocol-specific move operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @protected
+                 * @param {string} d
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _mv(d: string): Promise;
+                /**
+                 * Low level protocol-specific upload operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _up(): Promise;
+                /**
+                 * Low level protocol-specific download operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _down(): Promise;
+                /**
+                 * Low level protocol-specific execute operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _exec(): Promise;
+                /**
+                 * Low level protocol-specific share operation
+                 *
+                 * This function should be overridden by the file handle class
+                 * that supports the operation
+                 *
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                protected _pub(): Promise;
+                /**
+                 * Read the current file meta-data
+                 *
+                 * should be implemented by subclasses
+                 *
+                 * @abstract
+                 * @returns {Promise}
+                 * @memberof BaseFileHandle
+                 */
+                abstract meta(): Promise;
+            }
+            /**
+             * Remote file handle allows to perform file operation
+             * on AntOS remote server files. Its protocol is defined
+             * by the following pattern:
+             *
+             * ```
+             * ^(home|desktop|os|Untitled)$
+             * ```
+             *
+             * @class RemoteFileHandle
+             * @extends {BaseFileHandle}
+             */
+            class RemoteFileHandle extends BaseFileHandle {
+                /**
+                 *Creates an instance of RemoteFileHandle.
+                 * @param {string} path file path
+                 * @memberof RemoteFileHandle
+                 */
+                constructor(path: string);
+                /**
+                 * Read remote file meta-data
+                 *
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                meta(): Promise;
+                /**
+                 * Remote file access link
+                 *
+                 * @returns {string}
+                 * @memberof RemoteFileHandle
+                 */
+                getlink(): string;
+                /**
+                 * Read remote file content.
+                 *
+                 * If the current file is a directory, then the operation
+                 * will return the meta-data of all files inside of the directory.
+                 * Otherwise, file content will be returned
+                 *
+                 * @protected
+                 * @param {string} t data type see [[read]]
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _rd(t: string): Promise;
+                /**
+                 * Write file cache to the remote file
+                 *
+                 * @protected
+                 * @param {string} t data type see [[write]]
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _wr(t: string): Promise;
+                /**
+                 * Create sub directory
+                 *
+                 * Only work on directory file handle
+                 *
+                 * @protected
+                 * @param {string} d sub directory name
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _mk(d: string): Promise;
+                /**
+                 * Delete file/folder
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _rm(): Promise;
+                /**
+                 * Move file/folder
+                 *
+                 * @protected
+                 * @param {string} d
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _mv(d: string): Promise;
+                /**
+                 * Upload a file
+                 *
+                 * Only work with directory file handle
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _up(): Promise;
+                /**
+                 * Download a file
+                 *
+                 * only work with file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _down(): Promise;
+                /**
+                 * Publish a file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof RemoteFileHandle
+                 */
+                protected _pub(): Promise;
+            }
+            /**
+             * Package file is remote file ([[RemoteFileHandle]]) located either in
+             * the local user packages location or system packages
+             * location, it should be in the following format:
+             *
+             * ```
+             * pkg://PKG_NAME/path/to/file
+             *
+             * ```
+             *
+             * The system will locale the package name PKG_NAME either in the system domain
+             * or in user domain and return the correct path to the package
+             *
+             * @export
+             * @class PackageFileHandle
+             * @extends {RemoteFileHandle}
+             */
+            class PackageFileHandle extends RemoteFileHandle {
+                /**
+                 *Creates an instance of PackageFileHandle.
+                 * @param {string} pkg_path package path in string
+                 * @memberof PackageFileHandle
+                 */
+                constructor(pkg_path: string);
+            }
+            /**
+             * Application file is an AntOS special file allowing to
+             * refer to an application as a regular file. Its protocol
+             * pattern is defined as:
+             *
+             * ```typescript
+             * "^app$" // e.g. app://Setting
+             * ```
+             *
+             * @class ApplicationHandle
+             * @extends {BaseFileHandle}
+             */
+            class ApplicationHandle extends BaseFileHandle {
+                /**
+                 *Creates an instance of ApplicationHandle.
+                 * @param {string} path file path
+                 * @memberof ApplicationHandle
+                 */
+                constructor(path: string);
+                /**
+                 * Read application meta-data
+                 *
+                 * @returns {Promise}
+                 * @memberof ApplicationHandle
+                 */
+                meta(): Promise;
+                /**
+                 * If the current file is root (e.g. `app://`), the operation
+                 * will return all system packages meta-data.
+                 *
+                 * Otherwise, an error will be thrown
+                 *
+                 * @protected
+                 * @param {string} t
+                 * @returns {Promise}
+                 * @memberof ApplicationHandle
+                 */
+                protected _rd(t: string): Promise;
+            }
+            /**
+             * A buffer file handle represents a virtual file that is stored
+             * on the system memory. Its protocol pattern is defined as:
+             *
+             * ```typescript
+             * "^mem$" // e.g. mem://test.txt
+             * ```
+             *
+             * @class BufferFileHandle
+             * @extends {BaseFileHandle}
+             */
+            class BufferFileHandle extends BaseFileHandle {
+                /**
+                 *Creates an instance of BufferFileHandle.
+                 * @param {string} path file path
+                 * @param {string} mime file mime-type
+                 * @param {*} data file data
+                 * @memberof BufferFileHandle
+                 */
+                constructor(path: string, mime: string, data: any);
+                /**
+                 * Read the file meta-data
+                 *
+                 * @returns {Promise}
+                 * @memberof BufferFileHandle
+                 */
+                meta(): Promise;
+                /**
+                 * Read file content stored in the file cached
+                 *
+                 * @protected
+                 * @param {string} t data type see [[read]]
+                 * @returns {Promise}
+                 * @memberof BufferFileHandle
+                 */
+                protected _rd(t: string): Promise;
+                /**
+                 * Write data to the file cache
+                 *
+                 * @protected
+                 * @param {string} t data type, see [[write]]
+                 * @param {*} d data
+                 * @returns {Promise}
+                 * @memberof BufferFileHandle
+                 */
+                protected _wr(t: string, d: any): Promise;
+                /**
+                 * Download the buffer file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof BufferFileHandle
+                 */
+                protected _down(): Promise;
+            }
+            /**
+             * URL file handle represents a HTTP/HTTPs link url
+             * as an AntOS VFS file handle. Its protocol is defined as
+             *
+             * ```
+             * ^(http|https|ftp)$
+             * ```
+             *
+             * @class URLFileHandle
+             * @extends {BaseFileHandle}
+             */
+            class URLFileHandle extends BaseFileHandle {
+                /**
+                 *Creates an instance of URLFileHandle.
+                 * @param {string} path
+                 * @memberof URLFileHandle
+                 */
+                constructor(path: string);
+                /**
+                 * Read file meta-data
+                 *
+                 * @returns {Promise}
+                 * @memberof URLFileHandle
+                 */
+                meta(): Promise;
+                /**
+                 * Read URL content
+                 *
+                 * @protected
+                 * @param {string} t data type see [[read]]
+                 * @returns {Promise}
+                 * @memberof URLFileHandle
+                 */
+                protected _rd(t: string): Promise;
+            }
+            /**
+             * Shared file handle represents all AntOS shared file.
+             * Its protocol is defined as:
+             *
+             * ```
+             * ^shared$
+             * ```
+             *
+             * @class SharedFileHandle
+             * @extends {API.VFS.BaseFileHandle}
+             */
+            class SharedFileHandle extends API.VFS.BaseFileHandle {
+                /**
+                 *Creates an instance of SharedFileHandle.
+                 * @param {string} path file path
+                 * @memberof SharedFileHandle
+                 */
+                constructor(path: string);
+                /**
+                 * Read file meta-data
+                 *
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                meta(): Promise;
+                /**
+                 * Read file content
+                 *
+                 * @protected
+                 * @param {string} t data type, see [[read]]
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                protected _rd(t: string): Promise;
+                /**
+                 * write data to shared file
+                 *
+                 * @protected
+                 * @param {string} t data type, see [[write]]
+                 * @param {string} d file data
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                protected _wr(t: string, d: string): Promise;
+                /**
+                 * Un-publish the file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                protected _rm(): Promise;
+                /**
+                 * Download shared file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                protected _down(): Promise;
+                /**
+                 * Un publish the file
+                 *
+                 * @protected
+                 * @returns {Promise}
+                 * @memberof SharedFileHandle
+                 */
+                protected _pub(): Promise;
+            }
+            /**Utilities global functions */
+            /**
+             * Read a file content from a zip archive
+             *
+             * The content type should be:
+             * - base64 : the result will be a string, the binary in a base64 form.
+             * - text (or string): the result will be an unicode string.
+             * - binarystring: the result will be a string in “binary” form, using 1 byte per char (2 bytes).
+             * - array: the result will be an Array of bytes (numbers between 0 and 255).
+             * - uint8array : the result will be a Uint8Array. This requires a compatible browser.
+             * - arraybuffer : the result will be a ArrayBuffer. This requires a compatible browser.
+             * - blob : the result will be a Blob. This requires a compatible browser.             *
+             * If file_name is not specified, the first file_name in the zip archive will be read
+             * @export
+             * @param {string} file zip file
+             * @param {string} type content type to read
+             * @param {string} [file_name] the file should be read from the zip archive
+             * @return {*}  {Promise}
+             */
+            function readFileFromZip(file: string, type: string, file_name?: string): Promise;
+            /**
+             * Cat all files to a single out-put
+             *
+             * @export
+             * @param {string[]} list list of VFS files
+             * @param {string} data input data string that will be cat to the files content
+             * @param {string} join_by join on files content by this string
+             * @return {*}  {Promise}
+             */
+            function cat(list: string[], data: string, join_by?: string): Promise;
+            /**
+             * Read all files content on the list
+             *
+             * @export
+             * @param {string[]} list list of VFS files
+             * @param {GenericObject[]} contents content array
+             * @return {void}
+             */
+            function read_files(list: string[]): Promise[]>;
+            /**
+             * Copy files to a folder
+             *
+             * @export
+             * @param {string[]} files list of files
+             * @param {string} to destination folder
+             * @return {*}  {Promise}
+             */
+            function copy(files: string[], to: string): Promise;
+            /**
+             * Create a zip archive from a folder
+             *
+             * @export
+             * @param {string} src source file/folder
+             * @param {string} dest destination archive
+             * @return {*}  {Promise}
+             */
+            function mkar(src: string, dest: string): Promise;
+            /**
+             * Create a list of directories
+             *
+             * @export
+             * @param {string[]} list of directories to be created
+             * @param {boolen} sync sync/async of directory creation
+             * @return {*}  {Promise}
+             */
+            function mkdirAll(list: string[], sync?: boolean): Promise;
+            /**
+             *
+             *
+             * @export Extract a zip fle
+             * @param {string} zfile zip file to extract
+             * @param {(zip:any) => Promise} [dest_callback] a callback to get extraction destination
+             * @return {*}  {Promise}
+             */
+            function extractZip(zfile: string | API.VFS.BaseFileHandle, dest_callback: (zip: any) => Promise): Promise;
+            /**
+             * Make files from a set of template files
+             *
+             * @export
+             * @param {Array} list mapping paths between templates files and created files
+             * @param {string} path files destination
+             * @param {(data: string) => string} callback: pre-processing files content before writing to destination files
+             * @return {*}  {Promise}
+             */
+            function mktpl(list: Array, path: string, callback: (data: string) => string): Promise;
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A tile layout organize it child elements
+             * in a fixed horizontal or vertical direction.
+             *
+             * The size of each child element is attributed based
+             * on its configuration of automatically based on the
+             * remaining space in the layout
+             *
+             *
+             * @export
+             * @class TileLayoutTag
+             * @extends {AFXTag}
+             */
+            class TileLayoutTag extends AFXTag {
+                /**
+                 *C reates an instance of TileLayoutTag.
+                 * @memberof TileLayoutTag
+                 */
+                constructor();
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof TileLayoutTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof TileLayoutTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Set the name of the tile container, should be: `hbox` or `vbox`
+                 *
+                 * Getter: Get the name of the tile container
+                 *
+                 * @memberof TileLayoutTag
+                 */
+                set name(v: string);
+                get name(): string;
+                /**
+                 * Setter:
+                 *
+                 * SET the layout direction, should be:
+                 * - `row`: horizontal direction
+                 * - `column`: vertical direction
+                 *
+                 * Getter:
+                 *
+                 * Get layout direction
+                 *
+                 * @memberof TileLayoutTag
+                 */
+                set dir(v: "row" | "column");
+                get dir(): "row" | "column";
+                /**
+                 * Mount the element
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof TileLayoutTag
+                 */
+                protected mount(): void;
+                /**
+                 * re-organize the layout
+                 *
+                 * @returns {void}
+                 * @memberof TileLayoutTag
+                 */
+                calibrate(): void;
+                /**
+                 * Organize the layout in horizontal direction, only work when
+                 * the layout direction set to horizontal
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof TileLayoutTag
+                 */
+                private hcalibrate;
+                /**
+                 * Organize the layout in vertical direction, only work when
+                 * the layout direction set to vertical
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof TileLayoutTag
+                 */
+                private vcalibrate;
+                /**
+                 * Layout definition
+                 *
+                 * @returns
+                 * @memberof TileLayoutTag
+                 */
+                layout(): {
+                    el: string;
+                    ref: string;
+                }[];
+            }
+            /**
+             * A HBox organize its child elements in horizontal direction
+             *
+             * @export
+             * @class HBoxTag
+             * @extends {TileLayoutTag}
+             */
+            class HBoxTag extends TileLayoutTag {
+                /**
+                 * Creates an instance of HBoxTag.
+                 * @memberof HBoxTag
+                 */
+                constructor();
+                /**
+                 * Mount the tag
+                 *
+                 * @protected
+                 * @memberof HBoxTag
+                 */
+                protected mount(): void;
+            }
+            /**
+             * A VBox organize its child elements in vertical direction
+             *
+             * @export
+             * @class VBoxTag
+             * @extends {TileLayoutTag}
+             */
+            class VBoxTag extends TileLayoutTag {
+                /**
+                 *Creates an instance of VBoxTag.
+                 * @memberof VBoxTag
+                 */
+                constructor();
+                /**
+                 * Mount the tag
+                 *
+                 * @protected
+                 * @memberof VBoxTag
+                 */
+                protected mount(): void;
+            }
+        }
+    }
+}
+/// 
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A `resizer` tag is basically used to dynamically resize an element using mouse.
+             * It is usually put inside a [[TileLayoutTag]] an can be attached to any element. Example:
+             *
+             * The resizer tag in the following example  will be attached to the first `afx-vbox`,
+             * and allows to resize this element using mouse
+             *
+             * ```xml
+             * 
+             *      ...
+             *      
+             *      ...
+             * 
+             * ```
+             *
+             * @export
+             * @class ResizerTag
+             * @extends {AFXTag}
+             */
+            class ResizerTag extends AFXTag {
+                /**
+                 * Reference to the element that this tag is attached to
+                 *
+                 * @private
+                 * @type {*}
+                 * @memberof ResizerTag
+                 */
+                private _resizable_el;
+                /**
+                 * Reference to the resize event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ResizerTag
+                 */
+                private _onresize;
+                /**
+                 * Reference to the parent tag of the current tag.
+                 * The parent tag should be an instance of a [[TileLayoutTag]]
+                 * such as [[VBoxTag]] or [[HBoxTag]]
+                 *
+                 * @private
+                 * @type {*}
+                 * @memberof ResizerTag
+                 */
+                private _parent;
+                /**
+                 * Placeholder of the minimum value that
+                 * the attached element can be resized
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof ResizerTag
+                 */
+                private _minsize;
+                /**
+                 *Creates an instance of ResizerTag.
+                 * @memberof ResizerTag
+                 */
+                constructor();
+                /**
+                 * Set the properties of the tag to default values
+                 *
+                 * @protected
+                 * @memberof ResizerTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof ResizerTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter:
+                 *
+                 * Set resize direction, two possible values:
+                 * - `hz` - horizontal direction, resize by width
+                 * - `ve` - vertical direction, resize by height
+                 *
+                 * Getter:
+                 *
+                 * Get the resize direction
+                 *
+                 * @memberof ResizerTag
+                 */
+                set dir(v: string);
+                get dir(): string;
+                /**
+                 * Getter : Check whether the resizer should attach to its next or previous element
+                 *
+                 * Setter: if `v=true` select next element as attached element of the resizer, otherwise
+                 * select the previous element
+                 * @readonly
+                 * @type {boolean}
+                 * @memberof ResizerTag
+                 */
+                get attachnext(): boolean;
+                set attachnext(v: boolean);
+                /**
+                 * Setter:
+                 * - set the resize event callback
+                 *
+                 * Getter:
+                 * - get the resize event callback
+                 *
+                 * @memberof ResizerTag
+                 */
+                set onelresize(v: TagEventCallback);
+                get onelresize(): TagEventCallback;
+                /**
+                 * Mount the tag to the DOM tree
+                 *
+                 * @protected
+                 * @memberof ResizerTag
+                 */
+                protected mount(): void;
+                /**
+                 * Enable draggable on the element
+                 *
+                 * @private
+                 * @memberof ResizerTag
+                 */
+                private make_draggable;
+                /**
+                 * Resize the attached element in the horizontal direction (width)
+                 *
+                 * @private
+                 * @param {JQuery.MouseEventBase} e JQuery mouse event
+                 * @returns {void}
+                 * @memberof ResizerTag
+                 */
+                private horizontalResize;
+                /**
+                 * Resize the attached element in the vertical direction (height)
+                 *
+                 * @protected
+                 * @param {JQuery.MouseEventBase} e JQuery mouse event
+                 * @returns {void}
+                 * @memberof ResizerTag
+                 */
+                protected verticalResize(e: JQuery.MouseEventBase): void;
+                /**
+                 * Layout definition of the tag, empty layout
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof ResizerTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * Definition of system file view widget
+             *
+             * @export
+             * @class FileViewTag
+             * @extends {AFXTag}
+             */
+            class FileViewTag extends AFXTag {
+                /**
+                 * placeholder for file select event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof FileViewTag
+                 */
+                private _onfileselect;
+                /**
+                 * placeholder for file open event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof FileViewTag
+                 */
+                private _onfileopen;
+                /**
+                 * Reference to the currently selected file meta-data
+                 *
+                 * @private
+                 * @type {API.FileInfoType}
+                 * @memberof FileViewTag
+                 */
+                private _selectedFile;
+                /**
+                 * Data placeholder of the current working directory
+                 *
+                 * @private
+                 * @type {API.FileInfoType[]}
+                 * @memberof FileViewTag
+                 */
+                private _data;
+                /**
+                 * The path of the current working directory
+                 *
+                 * @private
+                 * @type {string}
+                 * @memberof FileViewTag
+                 */
+                private _path;
+                /**
+                 * Header definition of the widget grid view
+                 *
+                 * @private
+                 * @type {(GenericObject[])}
+                 * @memberof FileViewTag
+                 */
+                private _header;
+                /**
+                 * placeholder for the user-specified meta-data fetch function
+                 *
+                 * @private
+                 * @memberof FileViewTag
+                 */
+                private _fetch;
+                /**
+                 *Creates an instance of FileViewTag.
+                 * @memberof FileViewTag
+                 */
+                constructor();
+                /**
+                 * Init the widget before mounting
+                 *
+                 * @protected
+                 * @memberof FileViewTag
+                 */
+                protected init(): void;
+                /**
+                 * Update the current widget, do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof FileViewTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * set the function that allows to fetch file entries.
+                 * This handle function should return a promise on
+                 * an arry of [[API.FileInfoType]]
+                 *
+                 * @memberof FileViewTag
+                 */
+                set fetch(v: (p: string) => Promise);
+                /**
+                 * set the callback handle for the file select event.
+                 * The parameter of the callback should  be an object
+                 * of type [[TagEventType]] with the data type `T` is [[API.FileInfoType]]
+                 *
+                 * @memberof FileViewTag
+                 */
+                set onfileselect(e: TagEventCallback);
+                /**
+                 set the callback handle for the file open event.
+                 * The parameter of the callback should  be an object
+                 * of type [[TagEventType]] with the data type `T` is [[API.FileInfoType]]
+                 *
+                 * @memberof FileViewTag
+                 */
+                set onfileopen(e: TagEventCallback);
+                /**
+                 * Setter:
+                 *
+                 * chang the view of the widget, there are three different views
+                 * - `icon`
+                 * - `list`
+                 * - `tree`
+                 *
+                 * Getter:
+                 *
+                 * Get the current view setting of the widget
+                 *
+                 * @memberof FileViewTag
+                 */
+                set view(v: string);
+                get view(): string;
+                /**
+                 * Setter:
+                 *
+                 * Turn on/off the changing current working directory feature
+                 * of the widget when a directory is double clicked. If enabled,
+                 * the widget will use the configured [[fetch]] function to query
+                 * the content of the selected directory
+                 *
+                 * Getter:
+                 *
+                 * check whether changing current working directory feature
+                 * is enabled
+                 *
+                 * @memberof FileViewTag
+                 */
+                set chdir(v: boolean);
+                get chdir(): boolean;
+                /**
+                 * Setter : Enable or disable the status bar of the widget
+                 *
+                 * Getter: Check whether the status bar is enabled
+                 *
+                 * @memberof FileViewTag
+                 */
+                set status(v: boolean);
+                get status(): boolean;
+                /**
+                 * Setter:
+                 *
+                 * Allow the widget to show or hide hidden file
+                 *
+                 * Getter:
+                 *
+                 * Check whether the hidden file should be shown in
+                 * the widget
+                 *
+                 * @memberof FileViewTag
+                 */
+                set showhidden(v: boolean);
+                get showhidden(): boolean;
+                /**
+                 * Get the current selected file
+                 *
+                 * @readonly
+                 * @type {API.FileInfoType}
+                 * @memberof FileViewTag
+                 */
+                get selectedFile(): API.FileInfoType;
+                /**
+                 * Setter:
+                 *
+                 * Set the path of the current working directory.
+                 * When called the widget will refresh the current
+                 * working directory using the configured [[fetch]]
+                 * function
+                 *
+                 * Getter:
+                 *
+                 * Get the path of the current working directory
+                 *
+                 * @memberof FileViewTag
+                 */
+                set path(v: string);
+                get path(): string;
+                /**
+                 * Setter: Set the data of the current working directory
+                 *
+                 * Getter: Get the data of the current working directory
+                 *
+                 * @memberof FileViewTag
+                 */
+                set data(v: API.FileInfoType[]);
+                get data(): API.FileInfoType[];
+                /**
+                 * Set the file drag and drop event handle. This allows application
+                 * to define custom behavior of the event
+                 *
+                 * @memberof FileViewTag
+                 */
+                set ondragndrop(v: TagEventCallback>);
+                /**
+                 * Sort file by its type
+                 *
+                 * @private
+                 * @param {API.FileInfoType} a
+                 * @param {API.FileInfoType} b
+                 * @return {*}  {number}
+                 * @memberof FileViewTag
+                 */
+                private sortByType;
+                /**
+                 * sort file by its name
+                 *
+                 * @private
+                 * @param {API.FileInfoType} a first file meta-data
+                 * @param {API.FileInfoType} b second file meta-data
+                 * @returns {number}
+                 * @memberof FileViewTag
+                 */
+                private sortByName;
+                /**
+                 * calibrate the widget layout
+                 *
+                 * @memberof FileViewTag
+                 */
+                calibrate(): void;
+                /**
+                 * Refresh the list view of the widget. This function
+                 * is called when the view of the widget changed to `icon`
+                 *
+                 * @private
+                 * @memberof FileViewTag
+                 */
+                private refreshList;
+                /**
+                 * Refresh the grid view of the widget, this function is called
+                 * when the view of the widget set to `list`
+                 *
+                 * @private
+                 * @memberof FileViewTag
+                 */
+                private refreshGrid;
+                /**
+                 * Refresh the Treeview of the widget, this function is called
+                 * when the view of the widget set to `tree`
+                 *
+                 * @private
+                 * @memberof FileViewTag
+                 */
+                private refreshTree;
+                /**
+                 * Create the tree data from the list of input
+                 * file meta-data
+                 *
+                 * @private
+                 * @param {API.FileInfoType[]} data list of file meta-data
+                 * @returns {TreeViewDataType[]}
+                 * @memberof FileViewTag
+                 */
+                private getTreeData;
+                /**
+                 * Refresh data of the current widget view
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof FileViewTag
+                 */
+                private refreshData;
+                /**
+                 * Switch between three view options
+                 *
+                 * @private
+                 * @memberof FileViewTag
+                 */
+                private switchView;
+                /**
+                 * This function triggers the file select event
+                 *
+                 * @private
+                 * @param {API.FileInfoType} e selected file meta-data
+                 * @memberof FileViewTag
+                 */
+                private fileselect;
+                /**
+                 * This function triggers the file open event
+                 *
+                 * @private
+                 * @param {API.FileInfoType} e selected file meta-data
+                 * @memberof FileViewTag
+                 */
+                private filedbclick;
+                /**
+                 * Mount the widget in the DOM tree
+                 *
+                 * @protected
+                 * @memberof FileViewTag
+                 */
+                protected mount(): void;
+                /**
+                 * Layout definition of the widget
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof FileViewTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * Tree view data type definition
+             *
+             * @export
+             * @interface TreeViewDataType
+             */
+            interface TreeViewDataType {
+                /**
+                 * The child nodes data of the current tree node
+                 *
+                 * @type {TreeViewDataType[]}
+                 * @memberof TreeViewDataType
+                 */
+                nodes?: TreeViewDataType[];
+                /**
+                 * Boolean indicates whether the current node is opened.
+                 * Only work when the current node is not a leaf node
+                 *
+                 * @type {boolean}
+                 * @memberof TreeViewDataType
+                 */
+                open?: boolean;
+                /**
+                 * The node's path from the root node
+                 *
+                 * @type {string}
+                 * @memberof TreeViewDataType
+                 */
+                path?: string;
+                /**
+                 * Indicates whether this node should be selected
+                 *
+                 * @type {boolean}
+                 * @memberof TreeViewDataType
+                 */
+                selected?: boolean;
+                [propName: string]: any;
+            }
+            /**
+             * Tree node event data type definition
+             */
+            type TreeItemEventData = TagEventDataType;
+            /**
+             * Abstract prototype of a tree node. All tree node definition should
+             * extend this class
+             *
+             * @class TreeViewItemPrototype
+             * @extends {AFXTag}
+             */
+            abstract class TreeViewItemPrototype extends AFXTag {
+                /**
+                 * Node data placeholder
+                 *
+                 * @private
+                 * @type {TreeViewDataType}
+                 * @memberof TreeViewItemPrototype
+                 */
+                private _data;
+                /**
+                 * Placeholder for the indent level of the current node from root node
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof TreeViewItemPrototype
+                 */
+                private _indent;
+                /**
+                 * private event object used by current node event
+                 *
+                 * @private
+                 * @type {TagEventType}
+                 * @memberof TreeViewItemPrototype
+                 */
+                private _evt;
+                /**
+                 * Reference to the root node
+                 *
+                 * @type {TreeViewTag}
+                 * @memberof TreeViewItemPrototype
+                 */
+                treeroot: TreeViewTag;
+                /**
+                 * The tree path from the root node
+                 *
+                 * @type {string}
+                 * @memberof TreeViewItemPrototype
+                 */
+                treepath: string;
+                /**
+                 * Reference to the parent node of the current node
+                 *
+                 * @type {TreeViewTag}
+                 * @memberof TreeViewItemPrototype
+                 */
+                parent: TreeViewTag;
+                /**
+                 * Placeholder for the `fetch` function of the node.
+                 * This function is used to fetch the child nodes of the
+                 * current nodes. This function should return a promise on
+                 * a list of [[TreeViewDataType]]
+                 *
+                 * @memberof TreeViewItemPrototype
+                 */
+                fetch: (d: TreeViewItemPrototype) => Promise;
+                /**
+                 *Creates an instance of TreeViewItemPrototype.
+                 * @memberof TreeViewItemPrototype
+                 */
+                constructor();
+                /**
+                 * Update the tree, this function
+                 * is used to refresh/expand/collapse the
+                 * current node based on the input parameter
+                 *
+                 * @protected
+                 * @param {*} p string indication, the value should be:
+                 * - `expand`: expand the current node
+                 * - `collapse`: collapse the current node
+                 * - other string: this string is considered as a tree path of a node. If this value
+                 * is the value of current node tree path, the node will be refreshed. Otherwise, nothing
+                 * happens
+                 * @returns {void}
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected reload(p: any): void;
+                /**
+                 * Setter:
+                 *
+                 * Set the data of the current node. This will trigger the
+                 * [[ondatachange]] function
+                 *
+                 * Getter:
+                 *
+                 * Get the current node's data
+                 *
+                 * @memberof TreeViewItemPrototype
+                 */
+                set data(v: TreeViewDataType);
+                get data(): TreeViewDataType;
+                /**
+                 * Setter:
+                 *
+                 * Select or unselect the current node.
+                 * This will trigger the item select event
+                 * on the tree root if the parameter is `true`
+                 *
+                 * Getter:
+                 *
+                 * Check whether the current node is selected
+                 *
+                 * @memberof TreeViewItemPrototype
+                 */
+                set selected(v: boolean);
+                get selected(): boolean;
+                /**
+                 * Setter:
+                 *
+                 * Refresh the current node and expands its sub tree.
+                 * This function only works if the current node is not
+                 * a leaf node
+                 *
+                 * Getter:
+                 *
+                 * Check whether the current node is expanded
+                 *
+                 * @memberof TreeViewItemPrototype
+                 */
+                set open(v: boolean);
+                get open(): boolean;
+                /**
+                 * Setter: Set the current indent level of this node from the root node
+                 *
+                 * Getter: Get the current indent level
+                 *
+                 * @type {number}
+                 * @memberof TreeViewItemPrototype
+                 */
+                get indent(): number;
+                set indent(v: number);
+                /**
+                 * Check whether the current node is not a leaf node
+                 *
+                 * @private
+                 * @returns {boolean}
+                 * @memberof TreeViewItemPrototype
+                 */
+                private is_folder;
+                /**
+                 * Getter: Get the child nodes data of the current node
+                 *
+                 * Setter: Set the child nodes data of the current node
+                 *
+                 * @type {TreeViewDataType[]}
+                 * @memberof TreeViewItemPrototype
+                 */
+                get nodes(): TreeViewDataType[];
+                set nodes(nodes: TreeViewDataType[]);
+                /**
+                 * Init the tag with default properties data
+                 *
+                 * @protected
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected init(): void;
+                /**
+                 * Mount the tag and bind basic events
+                 *
+                 * @protected
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected mount(): void;
+                /**
+                 * Layout definition of a node. This function
+                 * returns the definition of the base outer layout
+                 * of a node. Custom inner layout of the node should
+                 * be defined in the [[itemlayout]] function
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * This function need to be implemented by all subclasses
+                 * to define the inner layout of the node
+                 *
+                 * @protected
+                 * @abstract
+                 * @returns {TagLayoutType[]}
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected abstract itemlayout(): TagLayoutType[];
+                /**
+                 * This function is called when the node data change.
+                 * It needs to be implemented on all subclasses of this
+                 * class
+                 *
+                 * @protected
+                 * @abstract
+                 * @memberof TreeViewItemPrototype
+                 */
+                protected abstract ondatachange(): void;
+            }
+            /**
+             * SimpleTreeViewItem extends [[TreeViewItemPrototype]] and
+             * define it inner layout using a [[LabelTag]]
+             *
+             * @export
+             * @class SimpleTreeViewItem
+             * @extends {TreeViewItemPrototype}
+             */
+            class SimpleTreeViewItem extends TreeViewItemPrototype {
+                /**
+                 *Creates an instance of SimpleTreeViewItem.
+                 * @memberof SimpleTreeViewItem
+                 */
+                constructor();
+                /**
+                 * Refresh the label when data changed
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof SimpleTreeViewItem
+                 */
+                protected ondatachange(): void;
+                /**
+                 * Inner layout definition
+                 *
+                 * @protected
+                 * @returns
+                 * @memberof SimpleTreeViewItem
+                 */
+                protected itemlayout(): {
+                    el: string;
+                    ref: string;
+                }[];
+            }
+            /**
+             * A tree view widget presents a hierarchical list of nodes.
+             *
+             * @export
+             * @class TreeViewTag
+             * @extends {AFXTag}
+             */
+            class TreeViewTag extends AFXTag {
+                /**
+                 * Reference to the selected node
+                 *
+                 * @private
+                 * @type {TreeViewItemPrototype}
+                 * @memberof TreeViewTag
+                 */
+                private _selectedItem;
+                /**
+                 * Placeholder for tree select event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof TreeViewTag
+                 */
+                private _ontreeselect;
+                /**
+                 * Place holder for tree double click event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof TreeViewTag
+                 */
+                private _ontreedbclick;
+                /**
+                 * Placeholder for drag and drop event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback>}
+                 * @memberof TreeViewTag
+                 */
+                private _ondragndrop;
+                /**
+                 * Tree data placeholder
+                 *
+                 * @private
+                 * @type {TreeViewDataType}
+                 * @memberof TreeViewTag
+                 */
+                private _data;
+                /**
+                 * Placeholder for private dragndrop mouse down event handle
+                 *
+                 * @private
+                 * @memberof TreeViewTag
+                 */
+                private _treemousedown;
+                /**
+                 * Placeholder for private dragndrop mouse up event handle
+                 *
+                 * @private
+                 * @memberof TreeViewTag
+                 */
+                private _treemouseup;
+                /**
+                 * Placeholder for private dragndrop mouse move event handle
+                 *
+                 * @private
+                 * @memberof TreeViewTag
+                 */
+                private _treemousemove;
+                /**
+                 * Private data object passing between dragndrop mouse event
+                 *
+                 * @private
+                 * @type {{ from: TreeViewTag; to: TreeViewTag }}
+                 * @memberof TreeViewTag
+                 */
+                private _dnd;
+                /**
+                 * Reference to parent tree of the current tree.
+                 * This value is undefined if the current tree is the root
+                 *
+                 * @type {TreeViewTag}
+                 * @memberof TreeViewTag
+                 */
+                parent: TreeViewTag;
+                /**
+                 * Reference to the root tree, this value is undefined
+                 * if the curent tree is root
+                 *
+                 * @type {TreeViewTag}
+                 * @memberof TreeViewTag
+                 */
+                treeroot: TreeViewTag;
+                /**
+                 * tree path of the current tree from the root
+                 *
+                 * @type {string}
+                 * @memberof TreeViewTag
+                 */
+                treepath: string;
+                /**
+                 * Indent level of the current tree
+                 *
+                 * @type {number}
+                 * @memberof TreeViewTag
+                 */
+                indent: number;
+                /**
+                 * Indicates whether the tree should be expanded
+                 *
+                 * @type {boolean}
+                 * @memberof TreeViewTag
+                 */
+                open: boolean;
+                /**
+                 * Placeholder for the `fetch` function of the tree.
+                 * This function is used to fetch the child nodes of the
+                 * current tree. This function should return a promise on
+                 * a list of [[TreeViewDataType]]
+                 *
+                 * @memberof TreeViewItemPrototype
+                 */
+                fetch: (d: TreeViewItemPrototype) => Promise;
+                /**
+                 *Creates an instance of TreeViewTag.
+                 * @memberof TreeViewTag
+                 */
+                constructor();
+                /**
+                 * Init the tree view before mounting:
+                 *
+                 * @protected
+                 * @memberof TreeViewTag
+                 */
+                protected init(): void;
+                /**
+                 * Layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof TreeViewTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof TreeViewTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Enable/disable drag and drop event on the tree
+                 *
+                 * Getter: Check whether the drag and drop event is enabled
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set dragndrop(v: boolean);
+                get dragndrop(): boolean;
+                /**
+                 * Set the tree select event handle
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set ontreeselect(v: TagEventCallback);
+                /**
+                 * Set the tree double click event handle
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set ontreedbclick(v: TagEventCallback);
+                /**
+                 * Setter:
+                 *
+                 * Set the default tag name of the tree node.
+                 * If there is no tag name in the node data,
+                 * this value will be used when creating node.
+                 *
+                 * Defaut to `afx-tree-view-item`
+                 *
+                 * Getter:
+                 *
+                 * Get the default node tag name
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set itemtag(v: string);
+                get itemtag(): string;
+                /**
+                 * Unselect the selected element in the tree
+                 *
+                 * @memberof TreeViewTag
+                 */
+                unselect(): void;
+                /**
+                 * Setter: Set the selected node using its DOM element
+                 *
+                 * Getter: Get the DOM element of the selected node
+                 *
+                 * @type {TreeViewItemPrototype}
+                 * @memberof TreeViewTag
+                 */
+                get selectedItem(): TreeViewItemPrototype;
+                set selectedItem(v: TreeViewItemPrototype);
+                /**
+                 * Expand all nodes in the tree
+                 *
+                 * @returns {void}
+                 * @memberof TreeViewTag
+                 */
+                expandAll(): void;
+                /**
+                 * Collapse all nodes in the tree
+                 *
+                 * @returns {void}
+                 * @memberof TreeViewTag
+                 */
+                collapseAll(): void;
+                /**
+                 * This function will trigger the tree select or tree double click
+                 * event
+                 *
+                 * @param {TagEventType} e
+                 * @returns {void}
+                 * @memberof TreeViewTag
+                 */
+                itemclick(e: TagEventType): void;
+                /**
+                 * Check whether the current tree is a root tree
+                 *
+                 * @returns {boolean}
+                 * @memberof TreeViewTag
+                 */
+                is_root(): boolean;
+                /**
+                 * Check whether the current tree tag is a leaf
+                 *
+                 * @returns {boolean}
+                 * @memberof TreeViewTag
+                 */
+                is_leaf(): boolean;
+                /**
+                 * Set drag and drop event handle
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set ondragndrop(v: TagEventCallback>);
+                /**
+                 * Setter:
+                 *
+                 * Set the tree data. This operation will create
+                 * all tree node elements of the current tree
+                 *
+                 * Getter:
+                 *
+                 * Get the tree data
+                 *
+                 * @memberof TreeViewTag
+                 */
+                set data(v: TreeViewDataType);
+                get data(): TreeViewDataType;
+                /**
+                 * Mount the tree view
+                 *
+                 * @protected
+                 * @memberof TreeViewTag
+                 */
+                protected mount(): void;
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        /**
+         * Tab container data type definition
+         *
+         * @export
+         * @interface TabContainerTabType
+         */
+        interface TabContainerTabType {
+            /**
+             * Reference to the DOM element of the current container
+             *
+             * @type {HTMLElement}
+             * @memberof TabContainerTabType
+             */
+            container: HTMLElement;
+            [propName: string]: any;
+        }
+        namespace tag {
+            /**
+             * A tab container allows to attach each tab on a [[TabBarTag]]
+             * with a container widget. The attached container widget should be
+             * composed inside a [[HBoxTag]]
+             *
+             * The tab bar in a tab container can be configured to display tabs
+             * in horizontal (row) or vertical (column) order. Default to vertical order
+             *
+             * Once a tab is selected, its attached container will be shown
+             *
+             * @export
+             * @class TabContainerTag
+             * @extends {AFXTag}
+             */
+            class TabContainerTag extends AFXTag {
+                /**
+                 * Reference to the currently selected tab DOM element
+                 *
+                 * @private
+                 * @type {TabContainerTabType}
+                 * @memberof TabContainerTag
+                 */
+                private _selectedTab;
+                /**
+                 * Placeholder of the tab select event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof TabContainerTag
+                 */
+                private _ontabselect;
+                /**
+                 *Creates an instance of TabContainerTag.
+                 * @memberof TabContainerTag
+                 */
+                constructor();
+                /**
+                 * Init the tab bar direction to vertical (column)
+                 *
+                 * @protected
+                 * @memberof TabContainerTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof TabContainerTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Set the tab select event handle
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set ontabselect(f: TagEventCallback);
+                /**
+                 * Get all tab items in the container
+                 *
+                 * @readonly
+                 * @type {TabContainerTabType[]}
+                 * @memberof TabContainerTag
+                 */
+                get tabs(): TabContainerTabType[];
+                /**
+                 * Select a tab by its index
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set selectedIndex(i: number);
+                /**
+                 * Setter:
+                 *
+                 * Set the tab bar direction:
+                 * - `row`: horizontal direction
+                 * - `column`: vertical direction
+                 *
+                 * Getter:
+                 *
+                 * Get the tab bar direction
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set dir(v: "row" | "column");
+                get dir(): "row" | "column";
+                /**
+                 * Setter:
+                 *
+                 * Select a tab using the its tab data type.
+                 * This will show the attached container to the tab
+                 *
+                 * Getter:
+                 *
+                 * Get the tab data of the currently selected Tab
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set selectedTab(v: TabContainerTabType);
+                get selectedTab(): TabContainerTabType;
+                /**
+                 * Set the tab bar width, this function only
+                 * works when the tab bar direction is set to
+                 * `row`
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set tabbarwidth(v: number);
+                /**
+                 * Set the tab bar height, this function only works
+                 * when the tab bar direction is set to `column`
+                 *
+                 * @memberof TabContainerTag
+                 */
+                set tabbarheight(v: number);
+                /**
+                 * Add a new tab with container to the container
+                 *
+                 * item should be in the following format:
+                 *
+                 * ```ts
+                 * {
+                 *  text: string,
+                 *  icon?: string,
+                 *  iconclass?: string,
+                 *  container: HTMLElement
+                 * }
+                 * ```
+                 *
+                 * @param {GenericObject} item tab descriptor
+                 * @param {boolean} insert insert the tab content to the container ?
+                 * @returns {ListViewItemTag} the tab DOM element
+                 * @memberof TabContainerTag
+                 */
+                addTab(item: GenericObject, insert: boolean): ListViewItemTag;
+                /**
+                 * Remove a tab from the container
+                 *
+                 * @param {ListViewItemTag} tab the tab item to be removed
+                 * @memberof TabContainerTag
+                 */
+                removeTab(tab: ListViewItemTag): void;
+                /**
+                 * Mount the tag and bind basic events
+                 *
+                 * @protected
+                 * @memberof TabContainerTag
+                 */
+                protected mount(): void;
+                /**
+                 * calibrate the  tab container
+                 *
+                 * @memberof TabContainerTag
+                 */
+                calibrate(): void;
+                /**
+                 * Layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof TabContainerTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+/// 
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * This tag define a basic button and its behavior
+             *
+             * @export
+             * @class ButtonTag
+             * @extends {AFXTag}
+             */
+            class ButtonTag extends AFXTag {
+                /**
+                 * Variable hold the button click callback handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ButtonTag
+                 */
+                private _onbtclick;
+                /**
+                 * Custom user data
+                 *
+                 * @type {GenericObject}
+                 * @memberof ButtonTag
+                 */
+                data: GenericObject;
+                /**
+                 *Creates an instance of ButtonTag.
+                 * @memberof ButtonTag
+                 */
+                constructor();
+                /**
+                 * Set the click callback handle for the target button
+                 *
+                 * @memberof ButtonTag
+                 */
+                set onbtclick(v: TagEventCallback);
+                /**
+                 * Set the path to the button icon, the path should be
+                 * a VFS file path
+                 *
+                 * @memberof ButtonTag
+                 */
+                set icon(v: string);
+                /**
+                 * Set the icon class to the button, this property
+                 * allows to style the button icon using CSS
+                 *
+                 * @memberof ButtonTag
+                 */
+                set iconclass(v: string);
+                /**
+                 * Setter: Set the text of the button
+                 *
+                 * Getter: Get the current button test
+                 *
+                 * @memberof ButtonTag
+                 */
+                set text(v: string | FormattedString);
+                get text(): string | FormattedString;
+                /**
+                 * Setter: Enable or disable the button
+                 *
+                 * Getter: Get the `enable` property of the button
+                 *
+                 * @memberof ButtonTag
+                 */
+                set enable(v: boolean);
+                get enable(): boolean;
+                /**
+                 * Setter: set or remove the attribute `selected` of the button
+                 *
+                 * Getter: check whether the attribute `selected` of the button is set
+                 *
+                 * @memberof ButtonTag
+                 */
+                set selected(v: boolean);
+                get selected(): boolean;
+                /**
+                 * Setter: activate or deactivate the toggle mode of the button
+                 *
+                 * Getter: Check whether the button is in toggle mode
+                 *
+                 * @memberof ButtonTag
+                 */
+                set toggle(v: boolean);
+                get toggle(): boolean;
+                /**
+                 * Mount the tag
+                 *
+                 * @protected
+                 * @memberof ButtonTag
+                 */
+                protected mount(): void;
+                /**
+                 *  Init the tag before mounting
+                 *
+                 * @protected
+                 * @memberof ButtonTag
+                 */
+                protected init(): void;
+                /**
+                 * Re-calibrate the button, do nothing in this tag
+                 *
+                 * @protected
+                 * @memberof ButtonTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Update the current tag, do nothing in this tag
+                 *
+                 * @param {*} [d]
+                 * @memberof ButtonTag
+                 */
+                reload(d?: any): void;
+                /**
+                 * Button layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof ButtonTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+/**
+ * Extend the Array interface with some
+ * property needed by AFX API
+ *
+ * @interface Array
+ * @template T
+ */
+interface Array {
+    /**
+     * Reference to a DOM element created by AFX API,
+     * this property is used by some AFX tags to refer
+     * to its child element in it data object
+     *
+     * @type {GenericObject}
+     * @memberof Array
+     */
+    domel?: GenericObject;
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A grid Row is a simple element that
+             * contains a group of grid cell
+             *
+             * @export
+             * @class GridRowTag
+             * @extends {AFXTag}
+             */
+            class GridRowTag extends AFXTag {
+                /**
+                 * Data placeholder for a collection of cell data
+                 *
+                 * @type {GenericObject[]}
+                 * @memberof GridRowTag
+                 */
+                data: GenericObject[];
+                /**
+                 *Creates an instance of GridRowTag.
+                 * @memberof GridRowTag
+                 */
+                constructor();
+                /**
+                 * Mount the tag, do nothing
+                 *
+                 * @protected
+                 * @memberof GridRowTag
+                 */
+                protected mount(): void;
+                /**
+                 * Init the tag before mounting: reset the data placeholder
+                 *
+                 * @protected
+                 * @memberof GridRowTag
+                 */
+                protected init(): void;
+                /**
+                 * Empty layout
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof GridRowTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * This function does nothing in this tag
+                 *
+                 * @protected
+                 * @memberof GridRowTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * This function does nothing in this tag
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof GridRowTag
+                 */
+                protected reload(d?: any): void;
+            }
+            /**
+             * Event data used by grid cell
+             */
+            type CellEventData = TagEventDataType;
+            /**
+             * Prototype of any grid cell, custom grid cell
+             * definition should extend and implement this
+             * abstract prototype
+             *
+             * @export
+             * @abstract
+             * @class GridCellPrototype
+             * @extends {AFXTag}
+             */
+            abstract class GridCellPrototype extends AFXTag {
+                /**
+                 * placeholder for cell selected event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof GridCellPrototype
+                 */
+                private _oncellselect;
+                /**
+                 * placeholder for cell double click event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof GridCellPrototype
+                 */
+                private _oncelldbclick;
+                /**
+                 * Data placeholder of the current cell
+                 *
+                 * @private
+                 * @type {GenericObject}
+                 * @memberof GridCellPrototype
+                 */
+                private _data;
+                /**
+                 *Creates an instance of GridCellPrototype.
+                 * @memberof GridCellPrototype
+                 */
+                constructor();
+                /**
+                 * Set the cell selected event callback
+                 *
+                 * @memberof GridCellPrototype
+                 */
+                set oncellselect(v: TagEventCallback);
+                /**
+                 * Set the cell double click event callback
+                 *
+                 * @memberof GridCellPrototype
+                 */
+                set oncelldbclick(v: TagEventCallback);
+                /**
+                 * Setter:
+                 *
+                 * Set the data of the cell, this will trigger
+                 * the [[ondatachange]] function
+                 *
+                 * Getter:
+                 *
+                 * Get the current cell data placeholder
+                 *
+                 * @memberof GridCellPrototype
+                 */
+                set data(v: GenericObject);
+                get data(): GenericObject;
+                /**
+                 * Setter:
+                 *
+                 * Set/unset the current cell as selected.
+                 * This will trigger the [[cellselect]]
+                 * event
+                 *
+                 * Getter:
+                 *
+                 * Check whether the current cell is selected
+                 *
+                 * @memberof GridCellPrototype
+                 */
+                set selected(v: boolean);
+                get selected(): boolean;
+                /**
+                 * Update the current cell. This will
+                 * reset the cell data
+                 *
+                 * @protected
+                 * @param {*} d
+                 * @memberof GridCellPrototype
+                 */
+                protected reload(d: any): void;
+                /**
+                 * Mount the current cell to the grid
+                 *
+                 * @protected
+                 * @memberof GridCellPrototype
+                 */
+                protected mount(): void;
+                /**
+                 * This function triggers the cell select
+                 * event
+                 *
+                 * @private
+                 * @param {TagEventType} e
+                 * @param {boolean} flag
+                 * @returns {void}
+                 * @memberof GridCellPrototype
+                 */
+                private cellselect;
+                /**
+                 * Abstract function called when the cell data changed.
+                 * This should be implemented by subclasses
+                 *
+                 * @protected
+                 * @abstract
+                 * @memberof GridCellPrototype
+                 */
+                protected abstract ondatachange(): void;
+            }
+            /**
+             * Simple grid cell defines a grid cell with
+             * an [[LabelTag]] as it cell layout
+             *
+             * @export
+             * @class SimpleGridCellTag
+             * @extends {GridCellPrototype}
+             */
+            class SimpleGridCellTag extends GridCellPrototype {
+                /**
+                 *Creates an instance of SimpleGridCellTag.
+                 * @memberof SimpleGridCellTag
+                 */
+                constructor();
+                /**
+                 * Reset the label of the cell with its data
+                 *
+                 * @protected
+                 * @memberof SimpleGridCellTag
+                 */
+                protected ondatachange(): void;
+                /**
+                 * This function do nothing in this tag
+                 *
+                 * @protected
+                 * @memberof SimpleGridCellTag
+                 */
+                protected init(): void;
+                /**
+                 * This function do nothing in this tag
+                 *
+                 * @protected
+                 * @memberof SimpleGridCellTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * The layout of the cell with a simple [[LabelTag]]
+                 *
+                 * @returns
+                 * @memberof SimpleGridCellTag
+                 */
+                layout(): {
+                    el: string;
+                    ref: string;
+                }[];
+            }
+            /**
+             * A Grid contains a header and a collection grid rows
+             * which has the same number of cells as the number of
+             * the header elements
+             *
+             * @export
+             * @class GridViewTag
+             * @extends {AFXTag}
+             */
+            class GridViewTag extends AFXTag {
+                /**
+                 * Grid header definition
+                 *
+                 * @private
+                 * @type {GenericObject[]}
+                 * @memberof GridViewTag
+                 */
+                private _header;
+                /**
+                 * Grid rows data placeholder
+                 *
+                 * @private
+                 * @type {GenericObject[][]}
+                 * @memberof GridViewTag
+                 */
+                private _rows;
+                /**
+                 * Reference to the current selected row DOM element
+                 *
+                 * @private
+                 * @type {GridRowTag}
+                 * @memberof GridViewTag
+                 */
+                private _selectedRow;
+                /**
+                 * A collection of selected grid rows DOM element
+                 *
+                 * @private
+                 * @type {GridRowTag[]}
+                 * @memberof GridViewTag
+                 */
+                private _selectedRows;
+                /**
+                 * Reference to the current selected cell
+                 *
+                 * @private
+                 * @type {GridCellPrototype}
+                 * @memberof GridViewTag
+                 */
+                private _selectedCell;
+                /**
+                 * Cell select event callback placeholder
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof GridViewTag
+                 */
+                private _oncellselect;
+                /**
+                 * Row select event callback placeholder
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof GridViewTag
+                 */
+                private _onrowselect;
+                /**
+                 * Cell double click event callback placeholder
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof GridViewTag
+                 */
+                private _oncelldbclick;
+                /**
+                 * Creates an instance of GridViewTag.
+                 * @memberof GridViewTag
+                 */
+                constructor();
+                /**
+                 * Init the grid view before mounting.
+                 * Reset all the placeholders to default values
+                 *
+                 * @protected
+                 * @memberof GridViewTag
+                 */
+                protected init(): void;
+                /**
+                 * This function does nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof GridViewTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * set the cell select event callback
+                 *
+                 * @memberof GridViewTag
+                 */
+                set oncellselect(v: TagEventCallback);
+                /**
+                 * set the row select event callback
+                 *
+                 * @memberof GridViewTag
+                 */
+                set onrowselect(v: TagEventCallback);
+                /**
+                 * set the cell double click event callback
+                 *
+                 * @memberof GridViewTag
+                 */
+                set oncelldbclick(v: TagEventCallback);
+                /**
+                 * Setter: set the tag name of the header cells
+                 *
+                 * Getter: get the grid header tag name
+                 *
+                 * @memberof GridViewTag
+                 */
+                set headeritem(v: string);
+                get headeritem(): string;
+                /**
+                 * Setter: set the tag name of the grid cell
+                 *
+                 * Getter: get the tag name of the grid cell
+                 *
+                 * @memberof GridViewTag
+                 */
+                set cellitem(v: string);
+                get cellitem(): string;
+                /**
+                 * Setter: set the header data
+                 *
+                 * Getter: get the header data placeholder
+                 *
+                 * @type {GenericObject[]}
+                 * @memberof GridViewTag
+                 */
+                get header(): GenericObject[];
+                set header(v: GenericObject[]);
+                /**
+                 * Get all the selected rows
+                 *
+                 * @readonly
+                 * @type {GridRowTag[]}
+                 * @memberof GridViewTag
+                 */
+                get selectedRows(): GridRowTag[];
+                /**
+                 * Get the latest selected row
+                 *
+                 * @readonly
+                 * @type {GridRowTag}
+                 * @memberof GridViewTag
+                 */
+                get selectedRow(): GridRowTag;
+                /**
+                 * Get the current selected cell
+                 *
+                 * @readonly
+                 * @type {GridCellPrototype}
+                 * @memberof GridViewTag
+                 */
+                get selectedCell(): GridCellPrototype;
+                /**
+                 * Setter: set the rows data
+                 *
+                 * Getter: get the rows data
+                 *
+                 * @memberof GridViewTag
+                 */
+                set rows(rows: GenericObject[][]);
+                get rows(): GenericObject[][];
+                /**
+                 * Setter: activate deactivate multi-select
+                 *
+                 * Getter: check whether the `multiselect` option is activated
+                 *
+                 * @memberof GridViewTag
+                 */
+                set multiselect(v: boolean);
+                get multiselect(): boolean;
+                /**
+                 * Set and Get the resizable attribute
+                 *
+                 * This allows to enable/disable column resize feature
+                 *
+                 * @memberof GridViewTag
+                 */
+                set resizable(v: boolean);
+                get resizable(): boolean;
+                /**
+                 * Delete a grid rows
+                 *
+                 * @param {GridRowTag} row row DOM element
+                 * @returns {void}
+                 * @memberof GridViewTag
+                 */
+                delete(row: GridRowTag): void;
+                /**
+                 * Push a row to the grid
+                 *
+                 * @param {GenericObject[]} row list of cell data
+                 * @param {boolean} flag indicates where the row is add to beginning or end
+                 * of the row
+                 * @memberof GridViewTags
+                 */
+                push(row: GenericObject[], flag: boolean): void;
+                /**
+                 * Unshift a row to the grid
+                 *
+                 * @param {GenericObject[]} row list of cell data in the row
+                 * @memberof GridViewTag
+                 */
+                unshift(row: GenericObject[]): void;
+                /**
+                 * This function triggers the cell select event
+                 *
+                 * @private
+                 * @param {TagEventType} e event contains cell event data
+                 * @param {boolean} flag indicates whether the event is double clicked
+                 * @returns {void}
+                 * @memberof GridViewTag
+                 */
+                private cellselect;
+                /**
+                 * This function triggers the row select event, a cell select
+                 * event will also trigger this event
+                 *
+                 * @param {TagEventType} e
+                 * @returns {void}
+                 * @memberof GridViewTag
+                 */
+                private rowselect;
+                /**
+                 * Check whether the grid has header
+                 *
+                 * @private
+                 * @returns {boolean}
+                 * @memberof GridViewTag
+                 */
+                private has_header;
+                /**
+                 * Calibrate the grid
+                 *
+                 * @protected
+                 * @memberof GridViewTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Recalculate the size of each header cell, changing
+                 * in header cell size will also resize the entire
+                 * related column
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof GridViewTag
+                 */
+                private calibrate_header;
+                /**
+                 * Mount the grid view tag
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof GridViewTag
+                 */
+                protected mount(): void;
+                /**
+                 * Layout definition of the grid view
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof GridViewTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+/// 
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * Menu event data interface definition
+             */
+            type MenuEventData = TagEventDataType;
+            /**
+             * This class defines the abstract prototype of an menu entry.
+             * Any implementation of menu entry tag should extend this class
+             *
+             * @export
+             * @abstract
+             * @class MenuEntryTag
+             * @extends {AFXTag}
+             */
+            abstract class MenuEntryTag extends AFXTag {
+                /**
+                 * Data placeholder of the menu entry
+                 *
+                 * @private
+                 * @type {GenericObject}
+                 * @memberof MenuEntryTag
+                 */
+                private _data;
+                /**
+                 * placeholder of `menu entry select` event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof MenuEntryTag
+                 */
+                private _onmenuselect;
+                /**
+                 * placeholder of `sub-menu entry select event` handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof MenuEntryTag
+                 */
+                private _onchildselect;
+                /**
+                 * Reference to the parent menu entry of current one
+                 *
+                 * @type {MenuEntryTag}
+                 * @memberof MenuEntryTag
+                 */
+                parent: MenuEntryTag;
+                /**
+                 * Reference to the root menu entry
+                 *
+                 * @type {MenuTag}
+                 * @memberof MenuEntryTag
+                 */
+                root: MenuTag;
+                /**
+                 *Creates an instance of MenuEntryTag.
+                 * @memberof MenuEntryTag
+                 */
+                constructor();
+                /**
+                 * Init the tag before mounting
+                 *
+                 * @protected
+                 * @memberof MenuEntryTag
+                 */
+                protected init(): void;
+                /**
+                 * Set the `menu entry select` event handle
+                 *
+                 * @memberof MenuEntryTag
+                 */
+                set onmenuselect(v: TagEventCallback);
+                /**
+                 * Setter: Set the `sub menu entry select` event handle
+                 *
+                 * Getter: get the current `sub menu entry select` event handle
+                 *
+                 * @memberof MenuEntryTag
+                 */
+                set onchildselect(v: TagEventCallback);
+                get onchildselect(): TagEventCallback;
+                /**
+                 * Setter: Set data to the entry
+                 *
+                 * Getter: Get data of the current menu entry
+                 *
+                 * @memberof MenuEntryTag
+                 */
+                set data(data: GenericObject);
+                get data(): GenericObject;
+                /**
+                 * Check whether the current menu entry has sub-menu
+                 *
+                 * @protected
+                 * @returns {boolean}
+                 * @memberof MenuEntryTag
+                 */
+                protected has_nodes(): boolean;
+                /**
+                 * Check whether the current menu entry is the root entry
+                 *
+                 * @protected
+                 * @returns
+                 * @memberof MenuEntryTag
+                 */
+                protected is_root(): boolean;
+                /**
+                 * Layout definition of the menu entry
+                 * This function define the outer layout of the menu entry.
+                 * Custom inner layout of each item implementation should
+                 * be defined in [[itemlayout]]
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof MenuEntryTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * Setter: Set the sub-menu data
+                 *
+                 * Getter: Get the sub-menu data
+                 *
+                 * @memberof MenuEntryTag
+                 */
+                set nodes(v: GenericObject[]);
+                get nodes(): GenericObject[];
+                /**
+                 * Bind some base event to the menu entry
+                 *
+                 * @protected
+                 * @memberof MenuEntryTag
+                 */
+                protected mount(): void;
+                /**
+                 * Hide the sub-menu of the current menu entry
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof MenuEntryTag
+                 */
+                private submenuoff;
+                /**
+                 * This function trigger two event:
+                 * - the `onmenuselect` event on the current entry
+                 * - the `onchildselect` event on the parent of the current entry
+                 *
+                 * @protected
+                 * @param {JQuery.ClickEvent} e
+                 * @memberof MenuEntryTag
+                 */
+                protected select(e: JQuery.ClickEvent): void;
+                /**
+                 * custom inner layout of a menu entry
+                 *
+                 * @protected
+                 * @abstract
+                 * @returns {TagLayoutType[]}
+                 * @memberof MenuEntryTag
+                 */
+                protected abstract itemlayout(): TagLayoutType[];
+            }
+            /**
+             * This class extends the [[MenuEntryTag]] prototype. It inner layout is
+             * defined with the following elements:
+             * - a [[SwitchTag]] acts as checker or radio
+             * - a [[LabelTag]] to display the content of the menu entry
+             * - a `span` element that display the keyboard shortcut of the entry
+             *
+             * @class SimpleMenuEntryTag
+             * @extends {MenuEntryTag}
+             */
+            class SimpleMenuEntryTag extends MenuEntryTag {
+                /**
+                 *Creates an instance of SimpleMenuEntryTag.
+                 * @memberof SimpleMenuEntryTag
+                 */
+                constructor();
+                /**
+                 * Reset some properties to default value
+                 *
+                 * @protected
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Turn on/off the checker feature of the menu entry
+                 *
+                 * Getter: Check whether the checker feature is enabled on this menu entry
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set switch(v: boolean);
+                get switch(): boolean;
+                /**
+                 * Setter: Turn on/off the radio feature of the menu entry
+                 *
+                 * Getter: Check whether the radio feature is enabled
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set radio(v: boolean);
+                get radio(): boolean;
+                /**
+                 * Setter:
+                 *
+                 * Toggle the switch on the menu entry, this setter
+                 * only works when the `checker` or `radio` feature is
+                 * enabled
+                 *
+                 * Getter:
+                 *
+                 * Check whether the switch is turned on
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set checked(v: boolean);
+                get checked(): boolean;
+                /**
+                 * Set the label icon using a VFS path
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set icon(v: string);
+                /**
+                 * Set the label CSS icon class
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set iconclass(v: string);
+                /**
+                 * Set the label text
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set text(v: string);
+                /**
+                 * Set the keyboard shortcut text
+                 *
+                 * @memberof SimpleMenuEntryTag
+                 */
+                set shortcut(v: string);
+                /**
+                 * Uncheck all sub-menu items of the current menu entry
+                 * that have the radio feature enabled
+                 *
+                 * @returns {void}
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected reset_radio(): void;
+                /**
+                 * Mount the current tag
+                 *
+                 * @protected
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected mount(): void;
+                /**
+                 * Trigger the onmenuselect and onchildselect events
+                 *
+                 * @protected
+                 * @param {JQuery.ClickEvent} e Mouse click event
+                 * @returns {void}
+                 * @memberof SimpleMenuEntryTag
+                 */
+                protected select(e: JQuery.ClickEvent): void;
+                /**
+                 * Inner item layout of the menu entry
+                 *
+                 * @returns
+                 * @memberof SimpleMenuEntryTag
+                 */
+                itemlayout(): ({
+                    el: string;
+                    ref: string;
+                    class?: undefined;
+                } | {
+                    el: string;
+                    class: string;
+                    ref: string;
+                })[];
+            }
+            /**
+             * A menu tag contains a collection of menu entries in which each
+             * entry maybe a leaf entry or may contain a submenu
+             *
+             * @export
+             * @class MenuTag
+             * @extends {AFXTag}
+             */
+            class MenuTag extends AFXTag {
+                /**
+                 * Reference to the parent menu entry of the current value.
+                 * This value is `undefined` in case of the current menu is
+                 * the root menu
+                 *
+                 * @type {MenuEntryTag}
+                 * @memberof MenuTag
+                 */
+                parent: MenuEntryTag;
+                /**
+                 * Reference to the root menu
+                 *
+                 * @type {MenuTag}
+                 * @memberof MenuTag
+                 */
+                root: MenuTag;
+                /**
+                 * The `pid` of the application that attached to this menu.
+                 * This value is optional
+                 *
+                 * @type {number}
+                 * @memberof MenuTag
+                 */
+                pid?: number;
+                /**
+                 * placeholder for menu select event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof MenuTag
+                 */
+                private _onmenuselect;
+                /**
+                 * Menu data placeholder
+                 *
+                 * @private
+                 * @type {GenericObject[]}
+                 * @memberof MenuTag
+                 */
+                private _items;
+                /**
+                 *Creates an instance of MenuTag.
+                 * @memberof MenuTag
+                 */
+                constructor();
+                /**
+                 * Reset some properties to  default value
+                 *
+                 * @protected
+                 * @memberof MenuTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof MenuTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof MenuTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Set the menu items data
+                 *
+                 * Getter: Get menu items data
+                 *
+                 * @memberof MenuTag
+                 */
+                set items(data: GenericObject[]);
+                get items(): GenericObject[];
+                /**
+                 * Setter: Set whether the current menu is a context menu
+                 *
+                 * Getter: Check whether the current menu is a context menu
+                 *
+                 * @memberof MenuTag
+                 */
+                set context(v: boolean);
+                get context(): boolean;
+                /**
+                 * Set menu select event handle
+                 *
+                 * @memberof MenuTag
+                 */
+                set onmenuselect(v: TagEventCallback);
+                /**
+                 * Setter:
+                 *
+                 * Set the default tag name of the menu item.
+                 * If the tag is not specified in an item data,
+                 * this value will be used
+                 *
+                 * Getter:
+                 *
+                 * Get the default menu entry tag name
+                 *
+                 * @memberof MenuTag
+                 */
+                set contentag(v: string);
+                get contentag(): string;
+                /**
+                 * Get the reference to the function that triggers
+                 * the menu select event
+                 *
+                 * @readonly
+                 * @type {TagEventCallback}
+                 * @memberof MenuTag
+                 */
+                get onmenuitemselect(): TagEventCallback;
+                /**
+                 * This function triggers the menu select event
+                 *
+                 * @private
+                 * @param {TagEventType} e
+                 * @memberof MenuTag
+                 */
+                private handleselect;
+                /**
+                 * Show the current menu. This function is called
+                 * only if the current menu is a context menu
+                 *
+                 * @param {JQuery.MouseEventBase} e JQuery mouse event
+                 * @returns {void}
+                 * @memberof MenuTag
+                 */
+                show(e: JQuery.MouseEventBase): void;
+                /**
+                 * Test whether the current menu is the root menu
+                 *
+                 * @private
+                 * @returns {boolean}
+                 * @memberof MenuTag
+                 */
+                private is_root;
+                /**
+                 * Mount the menu tag and bind some basic events
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof MenuTag
+                 */
+                protected mount(): void;
+                /**
+                 * Add a menu entry to the beginning of the current
+                 * menu
+                 *
+                 * @param {GenericObject} item menu entry data
+                 * @memberof MenuTag
+                 */
+                unshift(item: GenericObject): void;
+                /**
+                 * Delete a menu entry
+                 *
+                 * @param {MenuEntryTag} item reference to the DOM element of an menu entry
+                 * @memberof MenuTag
+                 */
+                delete(item: MenuEntryTag): void;
+                /**
+                 * Add an menu entry to the beginning or end of the menu
+                 *
+                 * @param {GenericObject} item menu entry data
+                 * @param {boolean} flag indicates whether the entry should be added to the beginning of the menu
+                 * @returns {MenuEntryTag}
+                 * @memberof MenuTag
+                 */
+                push(item: GenericObject, flag: boolean): MenuEntryTag;
+                /**
+                 * Menu tag layout definition
+                 *
+                 * @returns
+                 * @memberof MenuTag
+                 */
+                layout(): {
+                    el: string;
+                    ref: string;
+                    children: ({
+                        el: string;
+                        class: string;
+                        ref?: undefined;
+                    } | {
+                        el: string;
+                        ref: string;
+                        class?: undefined;
+                    })[];
+                }[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A WindowTag represents a virtual window element
+             * used by AntOS applications and dialogs.
+             *
+             * @export
+             * @class WindowTag
+             * @extends {AFXTag}
+             */
+            class WindowTag extends AFXTag {
+                /**
+                 * The element ID of the virtual desktop element
+                 *
+                 * @type {string}
+                 * @memberof WindowTag
+                 */
+                desktop: string;
+                /**
+                 * Window width placeholder
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof WindowTag
+                 */
+                private _width;
+                /**
+                 * Window height placeholder
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof WindowTag
+                 */
+                private _height;
+                /**
+                 * Placeholder indicates whether the current window is shown
+                 *
+                 * @private
+                 * @type {boolean}
+                 * @memberof WindowTag
+                 */
+                private _shown;
+                /**
+                 * Placeholder indicates whether the current window is maximized
+                 *
+                 * @private
+                 * @type {boolean}
+                 * @memberof WindowTag
+                 */
+                private _isMaxi;
+                /**
+                 * This placeholder stores the latest offset of the current window.
+                 *
+                 * @private
+                 * @type {GenericObject}
+                 * @memberof WindowTag
+                 */
+                private _history;
+                /**
+                 * This placeholder stores the offset of the virtual desktop element
+                 *
+                 * @private
+                 * @type {GenericObject}
+                 * @memberof WindowTag
+                 */
+                private _desktop_pos;
+                /**
+                 * Creates an instance of WindowTag.
+                 * @memberof WindowTag
+                 */
+                constructor();
+                /**
+                 * Init window tag
+                 * - `shown`: false
+                 * - `isMaxi`: false
+                 * - `minimizable`: false
+                 * - `resizable`: true
+                 * - `apptitle`: Untitled
+                 *
+                 * @protected
+                 * @memberof WindowTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof WindowTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof WindowTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Set the window width
+                 *
+                 * Getter: Get the window width
+                 *
+                 * @memberof WindowTag
+                 */
+                set width(v: number);
+                get width(): number;
+                /**
+                 * Setter: Set the window height
+                 *
+                 * Getter: Get the window height
+                 *
+                 * @memberof WindowTag
+                 */
+                set height(v: number);
+                get height(): number;
+                /**
+                 * Setter: enable/disable window minimizable
+                 *
+                 * getter: Check whether the window is minimizable
+                 *
+                 * @memberof WindowTag
+                 */
+                set minimizable(v: boolean);
+                get minimizable(): boolean;
+                /**
+                 * Setter: enable/disable widow resizable
+                 *
+                 * Getter: Check whether the current window is resizable
+                 *
+                 * @memberof WindowTag
+                 */
+                set resizable(v: boolean);
+                get resizable(): boolean;
+                /**
+                 * Setter: Set the window title
+                 *
+                 * Getter: Get window title
+                 *
+                 * @memberof WindowTag
+                 */
+                set apptitle(v: string | FormattedString);
+                get apptitle(): string | FormattedString;
+                /**
+                 * Resize all the children of the window based on its width and height
+                 *
+                 * @private
+                 * @memberof WindowTag
+                 */
+                private resize;
+                /**
+                 * Mount the window tag and bind basic events
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof WindowTag
+                 */
+                protected mount(): void;
+                /**
+                 * Set the window size
+                 *
+                 * @private
+                 * @param {GenericObject} o format: `{ w: window_width, h: window_height }`
+                 * @returns {void}
+                 * @memberof WindowTag
+                 */
+                private setsize;
+                /**
+                 * Enable to drag window on the virtual desktop
+                 *
+                 * @private
+                 * @memberof WindowTag
+                 */
+                private enable_dragging;
+                /**
+                 * Enable window resize, this only works if the window
+                 * is resizable
+                 *
+                 * @private
+                 * @memberof WindowTag
+                 */
+                private enable_resize;
+                /**
+                 * Maximize the window or restore its previous width, height,
+                 * and position
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof WindowTag
+                 */
+                private toggle_window;
+                /**
+                 * Layout definition of the window tag
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof WindowTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * Tag event data type definition
+             */
+            type TabEventData = TagEventDataType;
+            /**
+             * a TabBar allows to control a collection of tabs
+             *
+             * @export
+             * @class TabBarTag
+             * @extends {AFXTag}
+             */
+            export class TabBarTag extends AFXTag {
+                /**
+                 * Placeholder of currently selected tab index
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof TabBarTag
+                 */
+                private _selected;
+                /**
+                 * Placeholder of tab close event handle
+                 *
+                 * @private
+                 * @memberof TabBarTag
+                 */
+                private _ontabclose;
+                /**
+                 * Placeholder of tab select event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof TabBarTag
+                 */
+                private _ontabselect;
+                /**
+                 *Creates an instance of TabBarTag.
+                 * @memberof TabBarTag
+                 */
+                constructor();
+                /**
+                 * Init the tag
+                 *
+                 * @protected
+                 * @memberof TabBarTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof TabBarTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: Enable/disable a tab to be closed
+                 *
+                 * Getter: Check whether tabs can be closed
+                 *
+                 * @memberof TabBarTag
+                 */
+                set closable(v: boolean);
+                get closable(): boolean;
+                /**
+                 * Add a tab in the end of the tab bar
+                 *
+                 * @param {GenericObject} item tab data
+                 * @memberof TabBarTag
+                 */
+                push(item: GenericObject): ListViewItemTag;
+                /**
+                 * Delete a tab
+                 *
+                 * @param {ListViewItemTag} el reference to DOM element of a tab
+                 * @memberof TabBarTag
+                 */
+                delete(el: ListViewItemTag): void;
+                /**
+                 * Add a tab to the beginning of the tab bar
+                 *
+                 * @param {GenericObject} item tab data
+                 * @memberof TabBarTag
+                 */
+                unshift(item: GenericObject): ListViewItemTag;
+                /**
+                 * Setter: Set tabs data
+                 *
+                 * Getter: Get all tabs data
+                 *
+                 * @memberof TabBarTag
+                 */
+                set items(v: GenericObject[]);
+                get items(): GenericObject[];
+                /**
+                 * Setter: Select a tab by its index
+                 *
+                 * Getter: Get the currently selected tab
+                 *
+                 * @memberof TabBarTag
+                 */
+                set selected(v: number | number[]);
+                get selected(): number | number[];
+                /**
+                 * Set the tab close event handle
+                 *
+                 * @memberof TabBarTag
+                 */
+                set ontabclose(v: (e: TagEventType) => boolean);
+                /**
+                 * Set the tab select event handle
+                 *
+                 * @memberof TabBarTag
+                 */
+                set ontabselect(v: TagEventCallback);
+                /**
+                 * Mount the tab bar and bind some basic events
+                 *
+                 * @protected
+                 * @memberof TabBarTag
+                 */
+                protected mount(): void;
+                /**
+                 * TabBar layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof TabBarTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+            export {};
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A simple number sinner tag
+             *
+             * @export
+             * @class NSpinnerTag
+             * @extends {AFXTag}
+             */
+            class NSpinnerTag extends AFXTag {
+                /**
+                 * Placeholder for value change event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof NSpinnerTag
+                 */
+                private _onchange;
+                /**
+                 * Placeholder for the spinner data
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof NSpinnerTag
+                 */
+                private _value;
+                /**
+                 * Place holder for the spinner step
+                 *
+                 * @type {number}
+                 * @memberof NSpinnerTag
+                 */
+                step: number;
+                /**
+                 *Creates an instance of NSpinnerTag.
+                 * @memberof NSpinnerTag
+                 */
+                constructor();
+                /**
+                 * Init the spinner value to `0` and step to `1`
+                 *
+                 * @protected
+                 * @memberof NSpinnerTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof NSpinnerTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Set the value change event handle
+                 *
+                 * @memberof NSpinnerTag
+                 */
+                set onvaluechange(f: TagEventCallback);
+                /**
+                 * Mount the tag and bind basic events
+                 *
+                 * @protected
+                 * @memberof NSpinnerTag
+                 */
+                protected mount(): void;
+                /**
+                 * Calibrate the layout of the spinner
+                 *
+                 * @memberof NSpinnerTag
+                 */
+                calibrate(): void;
+                /**
+                 * Setter: Set the spinner value
+                 *
+                 * Getter: Get the spinner value
+                 *
+                 * @memberof NSpinnerTag
+                 */
+                set value(v: number);
+                get value(): number;
+                /**
+                 * Spinner layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof NSpinnerTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        /**
+         *
+         * Interface for an application dock item
+         *
+         * @export
+         * @interface AppDockItemType
+         */
+        interface AppDockItemType {
+            /**
+             * Reference to the application process represented
+             * by the dock item
+             *
+             * @type {application.BaseApplication}
+             * @memberof AppDockItemType
+             */
+            app: application.BaseApplication;
+            /**
+             * Reference to the DOM element of
+             * the owner dock item
+             *
+             * @type {AFXTag}
+             * @memberof AppDockItemType
+             */
+            domel?: AFXTag;
+            [propName: string]: any;
+        }
+        namespace tag {
+            /**
+             * This class define the AntOS system application dock tag
+             *
+             * @export
+             * @class AppDockTag
+             * @extends {AFXTag}
+             */
+            class AppDockTag extends AFXTag {
+                /**
+                 * variable holds the application select event
+                 * callback handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof AppDockTag
+                 */
+                private _onappselect;
+                /**
+                 * Items data of the dock
+                 *
+                 * @private
+                 * @type {AppDockItemType[]}
+                 * @memberof AppDockTag
+                 */
+                private _items;
+                /**
+                 * Reference to the currently select application
+                 * process in the dock
+                 *
+                 * @private
+                 * @type {AppDockItemType}
+                 * @memberof AppDockTag
+                 */
+                private _selectedItem;
+                /**
+                 *Creates an instance of AppDockTag.
+                 * @memberof AppDockTag
+                 */
+                constructor();
+                /**
+                 * Implementation of the abstract function: Update the current tag.
+                 * It do nothing for this tag
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof AppDockTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Init the tag before mounting
+                 *
+                 * @protected
+                 * @memberof AppDockTag
+                 */
+                protected init(): void;
+                /**
+                 * The tag layout, it is empty on creation but elements will
+                 * be added automatically to it in operation
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof AppDockTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * getter to get the dock items
+                 *
+                 * @readonly
+                 * @type {AppDockItemType[]}
+                 * @memberof AppDockTag
+                 */
+                get items(): AppDockItemType[];
+                /**
+                 * Setter:
+                 *
+                 * set the selected application in the dock
+                 * this will trigger two event:
+                 * - `focus`: on the selected application
+                 * - `blur`: on all other applications on the dock
+                 *
+                 * Getter:
+                 *
+                 *  Get the current selected application
+                 * on the dock
+                 *
+                 * @memberof AppDockTag
+                 */
+                set selectedApp(v: application.BaseApplication);
+                get selectedApp(): application.BaseApplication;
+                /**
+                 * Get selected item of the dock
+                 *
+                 * @readonly
+                 * @type {AppDockItemType}
+                 * @memberof AppDockTag
+                 */
+                get selectedItem(): AppDockItemType;
+                /**
+                 * When a new application process is created, this function
+                 * will be called to add new application entry to the dock.
+                 * The added application will becomes the current selected
+                 * application
+                 *
+                 * @param {AppDockItemType} item an application dock item entry
+                 * @memberof AppDockTag
+                 */
+                newapp(item: AppDockItemType): void;
+                /**
+                 * Delete and application entry from the dock.
+                 * This function will be called when an application
+                 * is exit
+                 *
+                 * @param {BaseApplication} a the application to be removed from the dock
+                 * @memberof AppDockTag
+                 */
+                removeapp(a: application.BaseApplication): void;
+                /**
+                 * Mount the current dock tag
+                 *
+                 * @protected
+                 * @memberof AppDockTag
+                 */
+                protected mount(): void;
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * Tag that define system calendar widget
+             *
+             * @export
+             * @class CalendarTag
+             * @extends {AFXTag}
+             */
+            class CalendarTag extends AFXTag {
+                /**
+                 * The current selected day
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof CalendarTag
+                 */
+                private _day;
+                /**
+                 * The current selected month
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof CalendarTag
+                 */
+                private _month;
+                /**
+                 * The current selected year
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof CalendarTag
+                 */
+                private _year;
+                /**
+                 * The current selected date object
+                 *
+                 * @private
+                 * @type {Date}
+                 * @memberof CalendarTag
+                 */
+                private _selectedDate;
+                /**
+                 * placeholder for date select event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof CalendarTag
+                 */
+                private _ondateselect;
+                /**
+                 *Creates an instance of CalendarTag.
+                 * @memberof CalendarTag
+                 */
+                constructor();
+                /**
+                 * Init the tag before mounting
+                 *
+                 * @protected
+                 * @memberof CalendarTag
+                 */
+                protected init(): void;
+                /**
+                 * Update the current tag, doing nothing in this tag
+                 *
+                 * @protected
+                 * @param {*} [d] any data object
+                 * @memberof CalendarTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Get the current selected date in the widget
+                 *
+                 * @readonly
+                 * @type {Date}
+                 * @memberof CalendarTag
+                 */
+                get selectedDate(): Date;
+                /**
+                 * Set the date select event callback handle for the widget
+                 *
+                 * @memberof CalendarTag
+                 */
+                set ondateselect(v: TagEventCallback);
+                /**
+                 * Mount the current widget to the DOM tree
+                 *
+                 * @protected
+                 * @memberof CalendarTag
+                 */
+                protected mount(): void;
+                /**
+                 * This function triggers the date select event
+                 *
+                 * @private
+                 * @param {TagEventType} e AFX tag event data [[TagEventType]]
+                 * @returns {void}
+                 * @memberof CalendarTag
+                 */
+                private dateselect;
+                /**
+                 * Calibrate the layout of the tag
+                 *
+                 * @protected
+                 * @memberof CalendarTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Display the previous month of the current month
+                 *
+                 * @private
+                 * @memberof CalendarTag
+                 */
+                private prevmonth;
+                /**
+                 * Display the next month of the current month
+                 *
+                 * @private
+                 * @returns
+                 * @memberof CalendarTag
+                 */
+                private nextmonth;
+                /**
+                 * Visualize the calendar base on input date
+                 *
+                 * @private
+                 * @param {Date} date
+                 * @memberof CalendarTag
+                 */
+                private calendar;
+                /**
+                 * Layout definition of the widget
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof CalendarTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A float list is a list of items in which each
+             * item can be moved (drag and drop) freely
+             *
+             * @export
+             * @class FloatListTag
+             * @extends {ListViewTag}
+             */
+            class FloatListTag extends ListViewTag {
+                /**
+                 * Update the current tag, do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof FloatListTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Variable that hold the onready callback of
+                 * the tag. This callback will be called after
+                 * the tag is mounted
+                 *
+                 * @private
+                 * @memberof FloatListTag
+                 */
+                private _onready;
+                /**
+                 *Creates an instance of FloatListTag.
+                 * @memberof FloatListTag
+                 */
+                constructor();
+                /**
+                 * set the onready callback function to the tag.
+                 * This callback will be called after
+                 * the tag is mounted
+                 *
+                 * @memberof FloatListTag
+                 */
+                set onready(v: (e: FloatListTag) => void);
+                /**
+                 * Setter:
+                 *
+                 * Set the direction of the list item layout.
+                 * Two directions are available:
+                 * - `vertical`
+                 * - `horizontal`
+                 *
+                 * This setter acts as a DOM attribute
+                 *
+                 * Getter:
+                 *
+                 * Get the currently set direction of list
+                 * item layout
+                 *
+                 * @memberof FloatListTag
+                 */
+                set dir(v: string);
+                get dir(): string;
+                /**
+                 * Disable the dropdown option in this list
+                 *
+                 * @memberof FloatListTag
+                 */
+                set dropdown(v: boolean);
+                /**
+                 * Disable the list buttons configuration in this
+                 * list
+                 *
+                 * @memberof FloatListTag
+                 */
+                set buttons(v: GenericObject[]);
+                /**
+                 * Disable the `showlist` behavior in this list
+                 *
+                 * @protected
+                 * @param {*} e
+                 * @memberof FloatListTag
+                 */
+                protected showlist(e: any): void;
+                /**
+                 * Disable the `dropoff` behavior in this list
+                 *
+                 * @protected
+                 * @param {*} e
+                 * @memberof FloatListTag
+                 */
+                protected dropoff(e: any): void;
+                /**
+                 * Function called when the data of the list
+                 * is changed
+                 *
+                 * @protected
+                 * @memberof FloatListTag
+                 */
+                protected ondatachange(): void;
+                /**
+                 * Mount the list to the DOM tree
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof FloatListTag
+                 */
+                protected mount(): void;
+                /**
+                 * Push an element to the list
+                 *
+                 * @param {GenericObject} v an element data
+                 * @returns
+                 * @memberof FloatListTag
+                 */
+                push(v: GenericObject): ListViewItemTag;
+                /**
+                 * Enable drag and drop on the list
+                 *
+                 * @private
+                 * @param {ListViewItemTag} el the list item DOM element
+                 * @memberof FloatListTag
+                 */
+                private enable_drag;
+                /**
+                 * Calibrate the view of the list
+                 *
+                 * @memberof FloatListTag
+                 */
+                calibrate(): void;
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        /**
+         * Color type used by AFX API
+         *
+         * @export
+         * @interface ColorType
+         */
+        interface ColorType {
+            /**
+             * Red chanel
+             *
+             * @type {number}
+             * @memberof ColorType
+             */
+            r: number;
+            /**
+             * Green chanel
+             *
+             * @type {number}
+             * @memberof ColorType
+             */
+            g: number;
+            /**
+             * Blue chanel
+             *
+             * @type {number}
+             * @memberof ColorType
+             */
+            b: number;
+            /**
+             * Alpha chanel
+             *
+             * @type {number}
+             * @memberof ColorType
+             */
+            a?: number;
+            /**
+             * color text in CSS format
+             *
+             * @type {string}
+             * @memberof ColorType
+             */
+            text?: string;
+            /**
+             * Color in hex format
+             *
+             * @type {string}
+             * @memberof ColorType
+             */
+            hex?: string;
+        }
+        namespace tag {
+            /**
+             * Class definition of Color picker widget
+             *
+             * @export
+             * @class ColorPickerTag
+             * @extends {AFXTag}
+             */
+            class ColorPickerTag extends AFXTag {
+                /**
+                 * The current selected color object
+                 *
+                 * @private
+                 * @type {ColorType}
+                 * @memberof ColorPickerTag
+                 */
+                private _selectedColor;
+                /**
+                 * placeholder for the color select event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ColorPickerTag
+                 */
+                private _oncolorselect;
+                /**
+                 * Creates an instance of ColorPickerTag.
+                 * @memberof ColorPickerTag
+                 */
+                constructor();
+                /**
+                 * Init tag before mounting, do nothing
+                 *
+                 * @protected
+                 * @memberof ColorPickerTag
+                 */
+                protected init(): void;
+                /**
+                 * Reload tag, do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof ColorPickerTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Get selected color value
+                 *
+                 * @readonly
+                 * @type {ColorType}
+                 * @memberof ColorPickerTag
+                 */
+                get selectedColor(): ColorType;
+                /**
+                 * Set the color select event handle
+                 *
+                 * @memberof ColorPickerTag
+                 */
+                set oncolorselect(v: TagEventCallback);
+                /**
+                 * Mount the widget to DOM tree
+                 *
+                 * @protected
+                 * @memberof ColorPickerTag
+                 */
+                protected mount(): void;
+                /**
+                 * Build the color palette
+                 *
+                 * @private
+                 * @memberof ColorPickerTag
+                 */
+                private build_palette;
+                /**
+                 * layout definition of the widget
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof ColorPickerTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+/// 
+/**
+ *
+ * Extend the HTMLElement interface with some utility function need
+ * by AFX API
+ *
+ * @interface HTMLElement
+ */
+interface HTMLElement {
+    /**
+     * Recursively update a tag and all its children
+     *
+     * @param {*} [d] data to send to all element in the DOM subtree
+     * @memberof HTMLElement
+     */
+    update(d?: any): void;
+    /**
+     *
+     * AFX will automatically bind the context menu on an HTMLElement
+     * if this function is defined on that element. The function should
+     * define the content of the context menu and its action
+     *
+     * Once the context menu is bound to the element, all context menu handle
+     * defined on any child of this element will be ignored.
+     *
+     * @param {JQuery.MouseEventBase} e a mouse event
+     * @param {OS.GUI.tag.MenuTag} m The context menu element [[MenuTag]]
+     * @memberof HTMLElement
+     */
+    contextmenuHandle(e: JQuery.MouseEventBase, m: OS.GUI.tag.MenuTag): void;
+    /**
+     * Mount the element and all the children on its DOM subtree. This action
+     * is performed in a top-down manner
+     *
+     * @memberof HTMLElement
+     */
+    sync(): void;
+    /**
+     *
+     * This action allows to generated all the DOM nodes defined by all AFX tags
+     * in its hierarchy.
+     * It performs two operations, one top-down operation to generate all the
+     * necessary DOM nodes, another bottom-up operation to init all the AFX tag
+     * in the current element DOM hierarchy
+     *
+     * @param {OS.API.Announcer} o an AntOS observable object
+     * @memberof HTMLElement
+     */
+    afxml(o: OS.API.Announcer): void;
+    /**
+     * Perform DOM generation ([[afxml]]) then mount ([[sync]]) all the
+     * elements.
+     *
+     * @param {OS.API.Announcer} o an AntOS observable object
+     * @param {boolean} [flag] indicates whether this is the top-most call of the operation
+     * @memberof HTMLElement
+     */
+    uify(o: OS.API.Announcer, flag?: boolean): void;
+    /**
+     *
+     *
+     * @type {*}
+     * @memberof HTMLElement
+     */
+    mozRequestFullScreen: any;
+    /**
+     *
+     *
+     * @type {*}
+     * @memberof HTMLElement
+     */
+    webkitRequestFullscreen: any;
+    /**
+     *
+     *
+     * @type {*}
+     * @memberof HTMLElement
+     */
+    msRequestFullscreen: any;
+}
+/**
+ *
+ *
+ * @interface Document
+ */
+interface Document {
+    mozCancelFullScreen: any;
+    webkitExitFullscreen: any;
+    cancelFullScreen: any;
+}
+declare namespace OS {
+    namespace GUI {
+        /**
+         * [[TagLayoutType]] interface using by AFX tags to defined
+         * its internal DOM hierarchy
+         *
+         * @export
+         * @interface TagLayoutType
+         */
+        interface TagLayoutType {
+            /**
+             * Element tag name
+             *
+             * @type {string}
+             * @memberof TagLayoutType
+             */
+            el: string;
+            /**
+             * Children layout of the current element
+             *
+             * @type {TagLayoutType[]}
+             * @memberof TagLayoutType
+             */
+            children?: TagLayoutType[];
+            /**
+             * Reference name of the element used by AFX Tag
+             *
+             * @type {string}
+             * @memberof TagLayoutType
+             */
+            ref?: string;
+            /**
+             * CSS class of the element
+             *
+             * @type {string}
+             * @memberof TagLayoutType
+             */
+            class?: string;
+            /**
+             * this is the `data-id` attribute of the element,
+             * can be query by the [[aid]] Tag API function.
+             * Not to be confused with the DOM `id` attribute
+             *
+             * @type {(string | number)}
+             * @memberof TagLayoutType
+             */
+            id?: string | number;
+            /**
+             * Tooltip text of the element
+             *
+             * @type {(string | FormattedString)}
+             * @memberof TagLayoutType
+             */
+            tooltip?: string | FormattedString;
+            /**
+             * `data-width` of the element, not to be confused with
+             * the `width` attribute of the DOM element
+             *
+             * @type {number|string}
+             * @memberof TagLayoutType
+             */
+            width?: number | string;
+            /**
+             ** `data-height` of the element, not to be confused with
+             * the `height` attribute of the DOM element
+             *
+             * @type {number|string}
+             * @memberof TagLayoutType
+             */
+            height?: number | string;
+        }
+        /**
+         * Data type for event issued by AFX tags
+         *
+         * @export
+         * @interface TagEventDataType
+         * @template T item template
+         */
+        interface TagEventDataType {
+            /**
+             * Reference to the item involved in the event
+             *
+             * @type {T}
+             * @memberof TagEventDataType
+             */
+            item?: T;
+            [propName: string]: any;
+        }
+        /**
+         * Format of the event issued by AFX tags
+         *
+         * @export
+         * @interface TagEventType
+         * @template T data type
+         */
+        interface TagEventType {
+            /**
+             * `data-id` of the tag that trigger the
+             * event
+             *
+             * @type {(number | string)}
+             * @memberof TagEventType
+             */
+            id: number | string;
+            /**
+             * Data object of the event
+             *
+             * @type {T}
+             * @memberof TagEventType
+             */
+            data: T;
+        }
+        /**
+         * Drag and Drop data type sent between mouse events
+         *
+         * @export
+         * @interface DnDEventDataType
+         * @template T
+         */
+        interface DnDEventDataType {
+            /**
+             * Reference to the source DOM element
+             *
+             * @type {T}
+             * @memberof DnDEventDataType
+             */
+            from: T;
+            /**
+             * Reference to the target DOM element
+             *
+             * @type {T}
+             * @memberof DnDEventDataType
+             */
+            to: T;
+        }
+        /**
+         * Tag event callback type
+         */
+        type TagEventCallback = (e: TagEventType) => void;
+        /**
+         * Top most element z index value, start by 10
+         */
+        var zindex: number;
+        /**
+         * Base abstract class for tag implementation, any AFX tag should be
+         * subclass of this class
+         *
+         * @export
+         * @abstract
+         * @class AFXTag
+         * @extends {HTMLElement}
+         */
+        abstract class AFXTag extends HTMLElement {
+            /**
+             * The announcer object of the tag
+             *
+             * @type {API.Announcer}
+             * @memberof AFXTag
+             */
+            observable: API.Announcer;
+            /**
+             * Reference to some of the tag's children
+             * element. This reference object is built
+             * based on the `ref` property found in the
+             * tag layout [[TagLayoutType]]
+             *
+             * @protected
+             * @type {GenericObject}
+             * @memberof AFXTag
+             */
+            protected refs: GenericObject;
+            /**
+             * boolean value indicated whether the tag
+             * is already mounted in the DOM tree
+             *
+             * @protected
+             * @type {boolean}
+             * @memberof AFXTag
+             */
+            protected _mounted: boolean;
+            /**
+             *Creates an instance of AFXTag.
+             * @memberof AFXTag
+             */
+            constructor();
+            /**
+             * This function verifies if a property name of the input object
+             * corresponds to a setter of the current tag. If this is the
+             * case, it sets the value of that property to the setter
+             *
+             * @param {GenericObject} v input object
+             * @memberof AFXTag
+             */
+            set(v: GenericObject): void;
+            /**
+             * Setter to set the tooltip text to the current tag.
+             * The text should be in the following format:
+             * ```text
+             * cr|cl|ct|cb: tooltip text
+             * ```
+             *
+             * @memberof AFXTag
+             */
+            set tooltip(v: string);
+            /**
+             *
+             * This function looking for a property name of the tag
+             * in its prototype chain. The descriptor of the property
+             * will be returned if it exists
+             *
+             * @private
+             * @param {string} k the property name to be queried
+             * @returns {PropertyDescriptor} the property descriptor or undefined
+             * @memberof AFXTag
+             */
+            private descriptor_of;
+            /**
+             * Setter: set the id of the tag in string or number
+             *
+             * Getter: get the id of the current tag
+             *
+             * @memberof AFXTag
+             */
+            set aid(v: string | number);
+            get aid(): string | number;
+            /**
+             * Implementation from HTMLElement interface,
+             * this function mount the current tag hierarchy
+             *
+             * @returns {void}
+             * @memberof AFXTag
+             */
+            sync(): void;
+            /**
+             * Generate the DOM hierarchy of the current tag
+             *
+             * @param {API.Announcer} o observable object
+             * @memberof AFXTag
+             */
+            afxml(o: API.Announcer): void;
+            /**
+             * Update the current tag hierarchy
+             *
+             * @param {*} d any data object
+             * @memberof AFXTag
+             */
+            update(d: any): void;
+            /**
+             * Init the current tag, this function
+             * is called before the [[mount]] function
+             *
+             * @protected
+             * @abstract
+             * @memberof AFXTag
+             */
+            protected abstract init(): void;
+            /**
+             * Mount only the current tag
+             *
+             * @protected
+             * @abstract
+             * @memberof AFXTag
+             */
+            protected abstract mount(): void;
+            /**
+             * Layout definition of a tag
+             *
+             * @protected
+             * @abstract
+             * @returns {TagLayoutType[]} tag layout object
+             * @memberof AFXTag
+             */
+            protected abstract layout(): TagLayoutType[];
+            /**
+             * Update only the current tag, this function is
+             * called by [[update]] before chaining the
+             * update process to its children
+             *
+             * @protected
+             * @abstract
+             * @param {*} [d]
+             * @memberof AFXTag
+             */
+            protected abstract reload(d?: any): void;
+            /**
+             * This function is used to re-render the current
+             * tag
+             *
+             * @protected
+             * @memberof AFXTag
+             */
+            protected calibrate(): void;
+            /**
+             * This function parses the input layout object
+             * and generates all the elements defined by
+             * the tag
+             *
+             * @private
+             * @param {TagLayoutType} tag tag layout object
+             * @returns {Element} the DOM element specified by the tag layout
+             * @memberof AFXTag
+             */
+            private mkui;
+            /**
+             * This function inserts or removes an attribute name
+             * to/from the target element based on the input `flag`.
+             *
+             * @protected
+             * @param {boolean} flag indicates whether the attribute name should be inserted o removed
+             * @param {string} v the attribute name
+             * @param {HTMLElement} [el] the target element
+             * @memberof AFXTag
+             */
+            protected attsw(flag: boolean, v: string, el?: HTMLElement): void;
+            /**
+             * Insert the attribute name to the target element
+             *
+             * @protected
+             * @param {string} v the attribute name
+             * @param {HTMLElement} [el] the target element
+             * @memberof AFXTag
+             */
+            protected atton(v: string, el?: HTMLElement): void;
+            /**
+             * Remove the attribute name from the target element
+             *
+             * @protected
+             * @param {string} v attribute name
+             * @param {HTMLElement} [el] the target element
+             * @memberof AFXTag
+             */
+            protected attoff(v: string, el?: HTMLElement): void;
+            /**
+             * Verify if the target element has an attribute name
+             *
+             * @protected
+             * @param {string} v attribute name
+             * @param {HTMLElement} [el] target element
+             * @returns {boolean}
+             * @memberof AFXTag
+             */
+            protected hasattr(v: string, el?: HTMLElement): boolean;
+        }
+        /**
+         * All the AFX tags are defined in this namespace,
+         * these tags are defined as custom DOM elements and will be
+         * stored in the `customElements` registry of the browser
+         */
+        namespace tag {
+            /**
+             * Define an AFX tag as a custom element and add it to the
+             * global `customElements` registry. If the tag is redefined, i.e.
+             * the tag already exists, its behavior will be updated with the
+             * new definition
+             *
+             * @export
+             * @template T all classes that extends [[AFXTag]]
+             * @param {string} name name of the tag
+             * @param {{ new (): T }} cls the class that defines the tag
+             * @returns {void}
+             */
+            function define(name: string, cls: {
+                new (): T;
+            }): void;
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A switch tag is basically used to visualize an boolean data value.
+             *
+             * @export
+             * @class SwitchTag
+             * @extends {AFXTag}
+             */
+            class SwitchTag extends AFXTag {
+                /**
+                 * Placeholder for the onchange event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof SwitchTag
+                 */
+                private _onchange;
+                /**
+                 * Setter: Turn on/off the switch
+                 *
+                 * Getter: Check whether the switch is turned on
+                 *
+                 * @memberof SwitchTag
+                 */
+                set swon(v: boolean);
+                get swon(): boolean;
+                /**
+                 * Setter: Enable the switch
+                 *
+                 * Getter: Check whether the switch is enabled
+                 *
+                 * @memberof SwitchTag
+                 */
+                set enable(v: boolean);
+                get enable(): boolean;
+                /**
+                 * Set the onchange event handle
+                 *
+                 * @memberof SwitchTag
+                 */
+                set onswchange(v: TagEventCallback);
+                /**
+                 * Mount the tag and bind the click event to the switch
+                 *
+                 * @protected
+                 * @memberof SwitchTag
+                 */
+                protected mount(): void;
+                /**
+                 * This function will turn the switch (on/off)
+                 * and trigger the onchange event
+                 *
+                 * @private
+                 * @param {JQuery.ClickEvent} e
+                 * @returns
+                 * @memberof SwitchTag
+                 */
+                private makechange;
+                /**
+                 * Tag layout definition
+                 *
+                 * @protected
+                 * @returns
+                 * @memberof SwitchTag
+                 */
+                protected layout(): {
+                    el: string;
+                    ref: string;
+                }[];
+                /**
+                 * Init the tag:
+                 * - switch is turn off
+                 * - switch is enabled
+                 *
+                 * @protected
+                 * @memberof SwitchTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof SwitchTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof SwitchTag
+                 */
+                protected reload(d?: any): void;
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * List item event data type
+             */
+            type ListItemEventData = TagEventDataType;
+            /**
+             * A list item represent the individual view of an item in the [[ListView]].
+             * This class is an abstract prototype class, implementation of any
+             * list view item should extend it
+             *
+             *
+             * @export
+             * @abstract
+             * @class ListViewItemTag
+             * @extends {AFXTag}
+             */
+            abstract class ListViewItemTag extends AFXTag {
+                /**
+                 * Data placeholder for the list item
+                 *
+                 * @private
+                 * @type {GenericObject}
+                 * @memberof ListViewItemTag
+                 */
+                private _data;
+                /**
+                 * placeholder for the item select event callback
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewItemTag
+                 */
+                private _onselect;
+                /**
+                 * Context menu event callback handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewItemTag
+                 */
+                private _onctxmenu;
+                /**
+                 * Click event callback placeholder
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewItemTag
+                 */
+                private _onclick;
+                /**
+                 * Double click event callback handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewItemTag
+                 */
+                private _ondbclick;
+                /**
+                 * Item close event callback placeholder
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewItemTag
+                 */
+                private _onclose;
+                /**
+                 *Creates an instance of ListViewItemTag.
+                 * @memberof ListViewItemTag
+                 */
+                constructor();
+                /**
+                 * Setter: Turn on/off the `closable` feature of the list item
+                 *
+                 * Getter: Check whether the item is closable
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set closable(v: boolean);
+                get closable(): boolean;
+                /**
+                 * Set item select event handle
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set onitemselect(v: TagEventCallback);
+                /**
+                 * Setter: select/unselect the current item
+                 *
+                 * Getter: Check whether the current item is selected
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set selected(v: boolean);
+                get selected(): boolean;
+                /**
+                 * Set the context menu event handle
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set onctxmenu(v: TagEventCallback);
+                /**
+                 * Set the item click event handle
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set onitemclick(v: TagEventCallback);
+                /**
+                 * Set the item double click event handle
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set onitemdbclick(v: TagEventCallback);
+                /**
+                 * set the item close event handle
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set onitemclose(v: TagEventCallback);
+                /**
+                 * Mount the tag and bind some events
+                 *
+                 * @protected
+                 * @memberof ListViewItemTag
+                 */
+                protected mount(): void;
+                /**
+                 * Layout definition of the item tag.
+                 * This function define the outer layout of the item.
+                 * Custom inner layout of each item implementation should
+                 * be defined in [[itemlayout]]
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof ListViewItemTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * Setter:
+                 *
+                 * Set the data of the list item. This will
+                 * trigger the [[ondatachange]] function
+                 *
+                 * Getter:
+                 *
+                 * Get the data of the current list item
+                 *
+                 * @memberof ListViewItemTag
+                 */
+                set data(v: GenericObject);
+                get data(): GenericObject;
+                /**
+                 * Any subclass of this class should implement this
+                 * function to provide its custom item layout
+                 *
+                 * @protected
+                 * @abstract
+                 * @returns {TagLayoutType}
+                 * @memberof ListViewItemTag
+                 */
+                protected abstract itemlayout(): TagLayoutType;
+                /**
+                 * This function is called when the item data is changed.
+                 * It should be implemented in all subclass of this class
+                 *
+                 * @protected
+                 * @abstract
+                 * @memberof ListViewItemTag
+                 */
+                protected abstract ondatachange(): void;
+            }
+            /**
+             * The layout of a simple list item contains only a
+             * AFX label
+             *
+             * @export
+             * @class SimpleListItemTag
+             * @extends {ListViewItemTag}
+             */
+            class SimpleListItemTag extends ListViewItemTag {
+                /**
+                 *Creates an instance of SimpleListItemTag.
+                 * @memberof SimpleListItemTag
+                 */
+                constructor();
+                /**
+                 * Reset some property to default
+                 *
+                 * @protected
+                 * @memberof SimpleListItemTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof SimpleListItemTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Refresh the inner label when the item data
+                 * is changed
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof SimpleListItemTag
+                 */
+                protected ondatachange(): void;
+                /**
+                 * Re-render the list item
+                 *
+                 * @protected
+                 * @memberof SimpleListItemTag
+                 */
+                protected reload(): void;
+                /**
+                 * List item custom layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType}
+                 * @memberof SimpleListItemTag
+                 */
+                protected itemlayout(): TagLayoutType;
+            }
+            /**
+             * This tag defines a traditional or a dropdown list widget.
+             * It contains a collection of list items in which layout
+             * of each item may be variable
+             *
+             * @export
+             * @class ListViewTag
+             * @extends {AFXTag}
+             */
+            class ListViewTag extends AFXTag {
+                /**
+                 * placeholder of list select event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewTag
+                 */
+                private _onlistselect;
+                /**
+                 * placeholder of list double click event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof ListViewTag
+                 */
+                private _onlistdbclick;
+                /**
+                 * placeholder of list drag and drop event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback>}
+                 * @memberof ListViewTag
+                 */
+                private _ondragndrop;
+                /**
+                 * placeholder of list item close event handle
+                 *
+                 * @private
+                 * @memberof ListViewTag
+                 */
+                private _onitemclose;
+                /**
+                 * placeholder of drag and drop mouse down event handle
+                 *
+                 * @private
+                 * @memberof ListViewTag
+                 */
+                private _onmousedown;
+                /**
+                 * placeholder of drag and drop mouse up event handle
+                 *
+                 * @private
+                 * @memberof ListViewTag
+                 */
+                private _onmouseup;
+                /**
+                 * placeholder of drag and drop mouse move event handle
+                 *
+                 * @private
+                 * @memberof ListViewTag
+                 */
+                private _onmousemove;
+                /**
+                 * Reference to the latest selected DOM item
+                 *
+                 * @private
+                 * @type {ListViewItemTag}
+                 * @memberof ListViewTag
+                 */
+                private _selectedItem;
+                /**
+                 * A collection of selected items in the list.
+                 * The maximum size of this collection is 1 if
+                 * the [[multiselect]] feature is disabled
+                 *
+                 * @private
+                 * @type {ListViewItemTag[]}
+                 * @memberof ListViewTag
+                 */
+                private _selectedItems;
+                /**
+                 * Data placeholder of the list
+                 *
+                 * @private
+                 * @type {GenericObject[]}
+                 * @memberof ListViewTag
+                 */
+                private _data;
+                /**
+                 * Event data passing between mouse event when performing
+                 * drag and drop on the list
+                 *
+                 * @private
+                 * @type {{ from: ListViewItemTag; to: ListViewItemTag }}
+                 * @memberof ListViewTag
+                 */
+                private _dnd;
+                /**
+                 *Creates an instance of ListViewTag.
+                 * @memberof ListViewTag
+                 */
+                constructor();
+                /**
+                 * Reset the tag's properties to the default values
+                 *
+                 * @protected
+                 * @memberof ListViewTag
+                 */
+                protected init(): void;
+                /**
+                 * This function does nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof ListViewTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter: toggle between dropdown and traditional list
+                 *
+                 * Getter: Check whether the list is dropdown or traditional list
+                 *
+                 * @memberof ListViewTag
+                 */
+                set dropdown(v: boolean);
+                /**
+                 * Set drag and drop event handle
+                 *
+                 * @memberof ListViewTag
+                 */
+                set ondragndrop(v: TagEventCallback>);
+                /**
+                 * Set list select event handle
+                 *
+                 * @memberof ListViewTag
+                 */
+                set onlistselect(v: TagEventCallback);
+                /**
+                 * Set double click event handle
+                 *
+                 * @memberof ListViewTag
+                 */
+                set onlistdbclick(v: TagEventCallback);
+                /**
+                 * Set item close event handle
+                 *
+                 * @memberof ListViewTag
+                 */
+                set onitemclose(v: (e: TagEventType) => boolean);
+                get dropdown(): boolean;
+                /**
+                 * Setter:
+                 *
+                 * Set the default tag name of list's items.
+                 * If the tag name is not specified in the
+                 * data of a list item, this tag will be used
+                 *
+                 * Getter:
+                 *
+                 * Get the default tag name of list item
+                 *
+                 * @memberof ListViewTag
+                 */
+                set itemtag(v: string);
+                get itemtag(): string;
+                /**
+                 * Setter:
+                 *
+                 * Turn on/off of the `multiselect` feature
+                 *
+                 * Getter:
+                 *
+                 * Check whether multi-select is allowed
+                 * in this list
+                 *
+                 * @memberof ListViewTag
+                 */
+                set multiselect(v: boolean);
+                get multiselect(): boolean;
+                /**
+                 * Setter: Enable/disable drag and drop event in the list
+                 *
+                 * Getter: Check whether the drag and drop event is enabled
+                 *
+                 * @memberof ListViewTag
+                 */
+                set dragndrop(v: boolean);
+                get dragndrop(): boolean;
+                /**
+                 * Set the buttons layout of the list.
+                 * Button layout allows to add some custom
+                 * behaviors to the list.
+                 *
+                 * Each button data should define the [[onbtclick]]
+                 * event handle to specify the custom behavior
+                 *
+                 * When the list is configured as dropdown. The buttons
+                 * layout will be disabled
+                 *
+                 * Example of a button data:
+                 *
+                 * ```
+                 * {
+                 *      text: "Button text",
+                 *      icon: "home://path/to/icon.png",
+                 *      iconclass: "icon-class-name",
+                 *      onbtclick: (e) => console.log(e)
+                 * }
+                 * ```
+                 *
+                 * @memberof ListViewTag
+                 */
+                set buttons(v: GenericObject[]);
+                /**
+                 * Getter: Get data of the list
+                 *
+                 * Setter: Set data to the list
+                 *
+                 * @type {GenericObject[]}
+                 * @memberof ListViewTag
+                 */
+                get data(): GenericObject[];
+                set data(data: GenericObject[]);
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof ListViewTag
+                 */
+                protected ondatachange(): void;
+                /**
+                 * Setter: Select list item(s) by their indexes
+                 *
+                 * Getter: Get the indexes of all selected items
+                 *
+                 * @memberof ListViewTag
+                 */
+                set selected(idx: number | number[]);
+                /**
+                 * Get the latest selected item
+                 *
+                 * @readonly
+                 * @type {ListViewItemTag}
+                 * @memberof ListViewTag
+                 */
+                get selectedItem(): ListViewItemTag;
+                /**
+                 * Get all the selected items
+                 *
+                 * @readonly
+                 * @type {ListViewItemTag[]}
+                 * @memberof ListViewTag
+                 */
+                get selectedItems(): ListViewItemTag[];
+                get selected(): number | number[];
+                /**
+                 * Add an item to the beginning of the list
+                 *
+                 * @param {GenericObject} item
+                 * @returns {ListViewItemTag} the added list item element
+                 * @memberof ListViewTag
+                 */
+                unshift(item: GenericObject): ListViewItemTag;
+                /**
+                 * check whether the list has data
+                 *
+                 * @private
+                 * @param {GenericObject} v
+                 * @returns
+                 * @memberof ListViewTag
+                 */
+                private has_data;
+                /**
+                 * Add an item to the beginning or end of the list
+                 *
+                 * @param {GenericObject} item list item data
+                 * @param {boolean} [flag] indicates whether to add the item in the beginning of the list
+                 * @returns {ListViewItemTag} the added list item element
+                 * @memberof ListViewTag
+                 */
+                push(item: GenericObject, flag?: boolean): ListViewItemTag;
+                /**
+                 * Delete an item
+                 *
+                 * @param {ListViewItemTag} item item DOM element
+                 * @memberof ListViewTag
+                 */
+                delete(item: ListViewItemTag): void;
+                /**
+                 * Select item next to the currently selected item.
+                 * If there is no item selected, the first item will
+                 * be selected
+                 *
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                selectNext(): void;
+                /**
+                 * Select the previous item in the list.
+                 *
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                selectPrev(): void;
+                /**
+                 * Unselect all the selected items in the list
+                 *
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                unselect(): void;
+                /**
+                 * This function triggers the click event on an item
+                 *
+                 * @private
+                 * @param {TagEventType} e tag event object
+                 * @param {boolean} flag indicates whether this is a double click event
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                private iclick;
+                /**
+                 * This function triggers the double click event on an item
+                 *
+                 * @private
+                 * @param {TagEventType} e tag event object
+                 * @returns
+                 * @memberof ListViewTag
+                 */
+                private idbclick;
+                /**
+                 * This function triggers the list item select event
+                 *
+                 * @private
+                 * @param {TagEventType} e tag event object
+                 * @returns
+                 * @memberof ListViewTag
+                 */
+                private iselect;
+                /**
+                 * Mount the tag and bind some basic event
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                protected mount(): void;
+                /**
+                 * This function triggers the item close event
+                 *
+                 * @private
+                 * @param {TagEventType} e tag event object
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                private iclose;
+                /**
+                 * Show the dropdown list.
+                 * This function is called only when the list is a dropdown
+                 * list
+                 *
+                 * @protected
+                 * @param {*} e
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                protected showlist(e: any): void;
+                /**
+                 * Hide the dropdown list.
+                 * This function is called only when the list is a dropdown
+                 * list
+                 *
+                 * @protected
+                 * @param {*} e
+                 * @memberof ListViewTag
+                 */
+                protected dropoff(e: any): void;
+                /**
+                 * calibrate the list layout
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof ListViewTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * List view layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof ListViewTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * This class defines basic AFX label tag.
+             * A label contains a text and an icon (optional)
+             *
+             * @export
+             * @class LabelTag
+             * @extends {AFXTag}
+             */
+            class LabelTag extends AFXTag {
+                /**
+                 * placeholder of the text to be displayed
+                 *
+                 * @private
+                 * @type {(string | FormattedString)}
+                 * @memberof LabelTag
+                 */
+                private _text;
+                /**
+                 *Creates an instance of LabelTag.
+                 * @memberof LabelTag
+                 */
+                constructor();
+                /**
+                 * this implementation does nothing in this tag
+                 *
+                 * @protected
+                 * @memberof LabelTag
+                 */
+                protected mount(): void;
+                /**
+                 * Refresh the text in the label
+                 *
+                 * @protected
+                 * @param {*} d
+                 * @memberof LabelTag
+                 */
+                protected reload(d: any): void;
+                /**
+                 * Reset to default some property value
+                 *
+                 * @protected
+                 * @memberof LabelTag
+                 */
+                protected init(): void;
+                /**
+                 * This implementation of the function does nothing
+                 *
+                 * @protected
+                 * @memberof LabelTag
+                 */
+                protected calibrate(): void;
+                /**
+                 * Set the VFS path of the label icon
+                 *
+                 * @memberof LabelTag
+                 */
+                set icon(v: string);
+                /**
+                 * Set the CSS class of the label icon
+                 *
+                 * @memberof LabelTag
+                 */
+                set iconclass(v: string);
+                /**
+                 * Setter: Set the text of the label
+                 *
+                 * Getter: Get the text displayed on the label
+                 *
+                 * @memberof LabelTag
+                 */
+                set text(v: string | FormattedString);
+                get text(): string | FormattedString;
+                /**
+                 * Lqbel layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof LabelTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * An overlay tag is a layout tag that alway stay on top of
+             * the virtual desktop environment. Tile layout elements ([[VBoxTag]], [[HboxTag]])
+             * can be used inside this tag to compose elements
+             *
+             * @export
+             * @class OverlayTag
+             * @extends {AFXTag}
+             */
+            class OverlayTag extends AFXTag {
+                /**
+                 * Tag width placeholder
+                 *
+                 * @private
+                 * @type {string}
+                 * @memberof OverlayTag
+                 */
+                private _width;
+                /**
+                 * Tag height place holder
+                 *
+                 * @private
+                 * @type {string}
+                 * @memberof OverlayTag
+                 */
+                private _height;
+                /**
+                 *Creates an instance of OverlayTag.
+                 * @memberof OverlayTag
+                 */
+                constructor();
+                /**
+                 * Put the tag on top of the virtual desktop environment
+                 *
+                 * @protected
+                 * @memberof OverlayTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof OverlayTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Setter:
+                 *
+                 * Set the width of the tag, the tag width should be in form of:
+                 * `100px` of `80%`
+                 *
+                 * Getter:
+                 *
+                 * Get the tag width
+                 *
+                 * @memberof OverlayTag
+                 */
+                set width(v: string);
+                get width(): string;
+                /**
+                 * Setter:
+                 *
+                 * Set the tag height, the tag height should be in form of:
+                 * `100px` of `80%`
+                 *
+                 * Getter:
+                 *
+                 * Get the tag height
+                 *
+                 * @memberof OverlayTag
+                 */
+                set height(v: string);
+                get height(): string;
+                /**
+                 * Calibrate the element when mounting
+                 *
+                 * @protected
+                 * @returns {void}
+                 * @memberof OverlayTag
+                 */
+                protected mount(): void;
+                /**
+                 * Calibrate the width and height of the tag
+                 *
+                 * @returns {void}
+                 * @memberof OverlayTag
+                 */
+                calibrate(): void;
+                /**
+                 * Layout definition of the tag
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof OverlayTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A slider or track bar is a graphical control element with which
+             * a user may set a value by moving an indicator, usually horizontally
+             *
+             * @class SliderTag
+             * @extends {AFXTag}
+             */
+            class SliderTag extends AFXTag {
+                /**
+                 * Slider max value placeholder
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof SliderTag
+                 */
+                private _max;
+                /**
+                 * Current slider value placeholder
+                 *
+                 * @private
+                 * @type {number}
+                 * @memberof SliderTag
+                 */
+                private _value;
+                /**
+                 * Placeholder of the on change event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof SliderTag
+                 */
+                private _onchange;
+                /**
+                 * Placeholder of the on changing event handle
+                 *
+                 * @private
+                 * @type {TagEventCallback}
+                 * @memberof SliderTag
+                 */
+                private _onchanging;
+                /**
+                 * Creates an instance of SliderTag.
+                 * @memberof SliderTag
+                 */
+                constructor();
+                /**
+                 *  Init the default value of the slider:
+                 * - `max`: 100
+                 * - `value`: 0
+                 *
+                 * @protected
+                 * @memberof SliderTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof SliderTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Set value change event handle.
+                 * This handle will be triggered when the
+                 * slider indicator is released
+                 *
+                 * @memberof SliderTag
+                 */
+                set onvaluechange(f: TagEventCallback);
+                /**
+                 * Set value changing event handle.
+                 * This handle is triggered when moving the
+                 * slider indicator
+                 *
+                 * @memberof SliderTag
+                 */
+                set onvaluechanging(f: TagEventCallback);
+                /**
+                 * Setter: Enable/disable the slider
+                 *
+                 * Getter: Check whether the slider is enabled
+                 *
+                 * @memberof SliderTag
+                 */
+                set enable(v: boolean);
+                get enable(): boolean;
+                /**
+                 * Setter: Set the slider value
+                 *
+                 * Getter: Get the current slider value
+                 *
+                 * @memberof SliderTag
+                 */
+                set value(v: number);
+                get value(): number;
+                /**
+                 * Setter: Set the maximum value of the slider
+                 *
+                 * Getter: Get the maximum value of the slider
+                 *
+                 * @memberof SliderTag
+                 */
+                set max(v: number);
+                get max(): number;
+                /**
+                 * Mount the tag and bind some basic events
+                 *
+                 * @protected
+                 * @memberof SliderTag
+                 */
+                protected mount(): void;
+                /**
+                 * Calibrate the slide based on its value and max value
+                 *
+                 * @memberof SliderTag
+                 */
+                calibrate(): void;
+                /**
+                 * enable dragging on the slider indicator
+                 *
+                 * @private
+                 * @memberof SliderTag
+                 */
+                private enable_dragging;
+                /**
+                 * Layout definition
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof SliderTag
+                 */
+                protected layout(): TagLayoutType[];
+            }
+        }
+    }
+}
+declare namespace OS {
+    namespace GUI {
+        namespace tag {
+            /**
+             * A system panel contains the following elements:
+             * - Spotlight to access to applications menu
+             * - Current focused application menu
+             * - System tray for all running services running in background
+             *
+             * @export
+             * @class SystemPanelTag
+             * @extends {AFXTag}
+             */
+            class SystemPanelTag extends AFXTag {
+                /**
+                 * Reference to spotlight data
+                 *
+                 * @private
+                 * @type {(GenericObject)}
+                 * @memberof SystemPanelTag
+                 */
+                private _osmenu;
+                /**
+                 * Placeholder indicates whether the spotlight is currently shown
+                 *
+                 * @private
+                 * @type {boolean}
+                 * @memberof SystemPanelTag
+                 */
+                private _view;
+                /**
+                 * Store pending loading task
+                 *
+                 * @private
+                 * @type {number[]}
+                 * @memberof SystemPanelTag
+                 */
+                private _pending_task;
+                /**
+                 * Loading animation check timeout
+                 *
+                 * @memberof SystemPanelTag
+                 */
+                private _loading_toh;
+                /**
+                 * Place holder for a private callback function
+                 *
+                 * @private
+                 * @memberof SystemPanelTag
+                 */
+                private _cb;
+                /**
+                 * Place holder for system app list
+                 *
+                 * @private
+                 * @type {GenericObject[]}
+                 * @memberof SystemPanelTag
+                 */
+                private app_list;
+                /**
+                 *Creates an instance of SystemPanelTag.
+                 * @memberof SystemPanelTag
+                 */
+                constructor();
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @memberof SystemPanelTag
+                 */
+                protected init(): void;
+                /**
+                 * Do nothing
+                 *
+                 * @protected
+                 * @param {*} [d]
+                 * @memberof SystemPanelTag
+                 */
+                protected reload(d?: any): void;
+                /**
+                 * Attach a service to the system tray on the pannel,
+                 * this operation is performed when a service is started
+                 *
+                 * @param {BaseService} s
+                 * @returns
+                 * @memberof SystemPanelTag
+                 */
+                attachservice(s: application.BaseService): void;
+                /**
+                 * Launch the selected application from the spotlight
+                 * applications list
+                 *
+                 * @private
+                 * @returns {void}
+                 * @memberof SystemPanelTag
+                 */
+                private open;
+                /**
+                 * Perform spotlight search operation on keyboard event
+                 *
+                 * @private
+                 * @param {JQuery.KeyboardEventBase} e
+                 * @returns {void}
+                 * @memberof SystemPanelTag
+                 */
+                private search;
+                /**
+                 * detach a service from the system tray of the panel.
+                 * This function is called when the corresponding running
+                 * service is killed
+                 *
+                 * @param {BaseService} s
+                 * @memberof SystemPanelTag
+                 */
+                detachservice(s: application.BaseService): void;
+                /**
+                 * Layout definition of the panel
+                 *
+                 * @protected
+                 * @returns {TagLayoutType[]}
+                 * @memberof SystemPanelTag
+                 */
+                protected layout(): TagLayoutType[];
+                /**
+                 * Refresh applications list on the spotlight widget
+                 * from system packages meta-data
+                 *
+                 * @private
+                 * @memberof SystemPanelTag
+                 */
+                private refreshAppList;
+                /**
+                 * Show/hide the spotlight
+                 *
+                 * @private
+                 * @param {boolean} flag
+                 * @memberof SystemPanelTag
+                 */
+                private toggle;
+                /**
+                 * Calibrate the spotlight widget
+                 *
+                 * @memberof SystemPanelTag
+                 */
+                calibrate(): void;
+                /**
+                 * Refresh the pinned applications menu
+                 *
+                 * @private
+                 * @memberof SystemPanelTag
+                 */
+                private RefreshPinnedApp;
+                /**
+                 * Check if the loading tasks ended,
+                 * if it the case, stop the animation
+                 *
+                 * @private
+                 * @memberof SystemPanelTag
+                 */
+                private animation_check;
+                /**
+                 * Mount the tag bind some basic event
+                 *
+                 * @protected
+                 * @memberof SystemPanelTag
+                 */
+                protected mount(): void;
+            }
+        }
+    }
+}
diff --git a/libantosdk/build/debug/core/ts/core.d.ts b/libantosdk/build/debug/core/ts/core.d.ts
new file mode 100644
index 0000000..0b18dda
--- /dev/null
+++ b/libantosdk/build/debug/core/ts/core.d.ts
@@ -0,0 +1,27299 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+
+
+/// 
+
+
+/////////////////////////////
+/// DOM APIs
+/////////////////////////////
+
+interface Account {
+    displayName: string;
+    id: string;
+    imageURL?: string;
+    name?: string;
+    rpDisplayName: string;
+}
+
+interface AddEventListenerOptions extends EventListenerOptions {
+    once?: boolean;
+    passive?: boolean;
+}
+
+interface AesCbcParams extends Algorithm {
+    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+}
+
+interface AesCtrParams extends Algorithm {
+    counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+    length: number;
+}
+
+interface AesDerivedKeyParams extends Algorithm {
+    length: number;
+}
+
+interface AesGcmParams extends Algorithm {
+    additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+    tagLength?: number;
+}
+
+interface AesKeyAlgorithm extends KeyAlgorithm {
+    length: number;
+}
+
+interface AesKeyGenParams extends Algorithm {
+    length: number;
+}
+
+interface Algorithm {
+    name: string;
+}
+
+interface AnalyserOptions extends AudioNodeOptions {
+    fftSize?: number;
+    maxDecibels?: number;
+    minDecibels?: number;
+    smoothingTimeConstant?: number;
+}
+
+interface AnimationEventInit extends EventInit {
+    animationName?: string;
+    elapsedTime?: number;
+    pseudoElement?: string;
+}
+
+interface AnimationPlaybackEventInit extends EventInit {
+    currentTime?: number | null;
+    timelineTime?: number | null;
+}
+
+interface AssertionOptions {
+    allowList?: ScopedCredentialDescriptor[];
+    extensions?: WebAuthnExtensions;
+    rpId?: string;
+    timeoutSeconds?: number;
+}
+
+interface AssignedNodesOptions {
+    flatten?: boolean;
+}
+
+interface AudioBufferOptions {
+    length: number;
+    numberOfChannels?: number;
+    sampleRate: number;
+}
+
+interface AudioBufferSourceOptions {
+    buffer?: AudioBuffer | null;
+    detune?: number;
+    loop?: boolean;
+    loopEnd?: number;
+    loopStart?: number;
+    playbackRate?: number;
+}
+
+interface AudioContextInfo {
+    currentTime?: number;
+    sampleRate?: number;
+}
+
+interface AudioContextOptions {
+    latencyHint?: AudioContextLatencyCategory | number;
+    sampleRate?: number;
+}
+
+interface AudioNodeOptions {
+    channelCount?: number;
+    channelCountMode?: ChannelCountMode;
+    channelInterpretation?: ChannelInterpretation;
+}
+
+interface AudioParamDescriptor {
+    automationRate?: AutomationRate;
+    defaultValue?: number;
+    maxValue?: number;
+    minValue?: number;
+    name: string;
+}
+
+interface AudioProcessingEventInit extends EventInit {
+    inputBuffer: AudioBuffer;
+    outputBuffer: AudioBuffer;
+    playbackTime: number;
+}
+
+interface AudioTimestamp {
+    contextTime?: number;
+    performanceTime?: number;
+}
+
+interface AudioWorkletNodeOptions extends AudioNodeOptions {
+    numberOfInputs?: number;
+    numberOfOutputs?: number;
+    outputChannelCount?: number[];
+    parameterData?: Record;
+    processorOptions?: any;
+}
+
+interface AuthenticationExtensionsClientInputs {
+    appid?: string;
+    appidExclude?: string;
+    credProps?: boolean;
+    uvm?: boolean;
+}
+
+interface AuthenticationExtensionsClientOutputs {
+    appid?: boolean;
+    credProps?: CredentialPropertiesOutput;
+    uvm?: UvmEntries;
+}
+
+interface AuthenticatorSelectionCriteria {
+    authenticatorAttachment?: AuthenticatorAttachment;
+    requireResidentKey?: boolean;
+    residentKey?: ResidentKeyRequirement;
+    userVerification?: UserVerificationRequirement;
+}
+
+interface BiquadFilterOptions extends AudioNodeOptions {
+    Q?: number;
+    detune?: number;
+    frequency?: number;
+    gain?: number;
+    type?: BiquadFilterType;
+}
+
+interface BlobPropertyBag {
+    endings?: EndingType;
+    type?: string;
+}
+
+interface ByteLengthChunk {
+    byteLength?: number;
+}
+
+interface CacheQueryOptions {
+    ignoreMethod?: boolean;
+    ignoreSearch?: boolean;
+    ignoreVary?: boolean;
+}
+
+interface CanvasRenderingContext2DSettings {
+    alpha?: boolean;
+    desynchronized?: boolean;
+}
+
+interface ChannelMergerOptions extends AudioNodeOptions {
+    numberOfInputs?: number;
+}
+
+interface ChannelSplitterOptions extends AudioNodeOptions {
+    numberOfOutputs?: number;
+}
+
+interface ClientData {
+    challenge: string;
+    extensions?: WebAuthnExtensions;
+    hashAlg: string | Algorithm;
+    origin: string;
+    rpId: string;
+    tokenBinding?: string;
+}
+
+interface ClientQueryOptions {
+    includeUncontrolled?: boolean;
+    type?: ClientTypes;
+}
+
+interface ClipboardEventInit extends EventInit {
+    clipboardData?: DataTransfer | null;
+}
+
+interface CloseEventInit extends EventInit {
+    code?: number;
+    reason?: string;
+    wasClean?: boolean;
+}
+
+interface CompositionEventInit extends UIEventInit {
+    data?: string;
+}
+
+interface ComputedEffectTiming extends EffectTiming {
+    activeDuration?: number;
+    currentIteration?: number | null;
+    endTime?: number;
+    localTime?: number | null;
+    progress?: number | null;
+}
+
+interface ComputedKeyframe {
+    composite: CompositeOperationOrAuto;
+    computedOffset: number;
+    easing: string;
+    offset: number | null;
+    [property: string]: string | number | null | undefined;
+}
+
+interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface ConstantSourceOptions {
+    offset?: number;
+}
+
+interface ConstrainBooleanParameters {
+    exact?: boolean;
+    ideal?: boolean;
+}
+
+interface ConstrainDOMStringParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface ConstrainDoubleRange extends DoubleRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainULongRange extends ULongRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainVideoFacingModeParameters {
+    exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
+    ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
+}
+
+interface ConvolverOptions extends AudioNodeOptions {
+    buffer?: AudioBuffer | null;
+    disableNormalization?: boolean;
+}
+
+interface CredentialCreationOptions {
+    publicKey?: PublicKeyCredentialCreationOptions;
+    signal?: AbortSignal;
+}
+
+interface CredentialPropertiesOutput {
+    rk?: boolean;
+}
+
+interface CredentialRequestOptions {
+    mediation?: CredentialMediationRequirement;
+    publicKey?: PublicKeyCredentialRequestOptions;
+    signal?: AbortSignal;
+}
+
+interface CustomEventInit extends EventInit {
+    detail?: T;
+}
+
+interface DOMMatrix2DInit {
+    a?: number;
+    b?: number;
+    c?: number;
+    d?: number;
+    e?: number;
+    f?: number;
+    m11?: number;
+    m12?: number;
+    m21?: number;
+    m22?: number;
+    m41?: number;
+    m42?: number;
+}
+
+interface DOMMatrixInit extends DOMMatrix2DInit {
+    is2D?: boolean;
+    m13?: number;
+    m14?: number;
+    m23?: number;
+    m24?: number;
+    m31?: number;
+    m32?: number;
+    m33?: number;
+    m34?: number;
+    m43?: number;
+    m44?: number;
+}
+
+interface DOMPointInit {
+    w?: number;
+    x?: number;
+    y?: number;
+    z?: number;
+}
+
+interface DOMQuadInit {
+    p1?: DOMPointInit;
+    p2?: DOMPointInit;
+    p3?: DOMPointInit;
+    p4?: DOMPointInit;
+}
+
+interface DOMRectInit {
+    height?: number;
+    width?: number;
+    x?: number;
+    y?: number;
+}
+
+interface DelayOptions extends AudioNodeOptions {
+    delayTime?: number;
+    maxDelayTime?: number;
+}
+
+interface DeviceLightEventInit extends EventInit {
+    value?: number;
+}
+
+interface DeviceMotionEventAccelerationInit {
+    x?: number | null;
+    y?: number | null;
+    z?: number | null;
+}
+
+interface DeviceMotionEventInit extends EventInit {
+    acceleration?: DeviceMotionEventAccelerationInit;
+    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
+    interval?: number;
+    rotationRate?: DeviceMotionEventRotationRateInit;
+}
+
+interface DeviceMotionEventRotationRateInit {
+    alpha?: number | null;
+    beta?: number | null;
+    gamma?: number | null;
+}
+
+interface DeviceOrientationEventInit extends EventInit {
+    absolute?: boolean;
+    alpha?: number | null;
+    beta?: number | null;
+    gamma?: number | null;
+}
+
+interface DevicePermissionDescriptor extends PermissionDescriptor {
+    deviceId?: string;
+    name: "camera" | "microphone" | "speaker";
+}
+
+interface DocumentTimelineOptions {
+    originTime?: number;
+}
+
+interface DoubleRange {
+    max?: number;
+    min?: number;
+}
+
+interface DragEventInit extends MouseEventInit {
+    dataTransfer?: DataTransfer | null;
+}
+
+interface DynamicsCompressorOptions extends AudioNodeOptions {
+    attack?: number;
+    knee?: number;
+    ratio?: number;
+    release?: number;
+    threshold?: number;
+}
+
+interface EcKeyAlgorithm extends KeyAlgorithm {
+    namedCurve: NamedCurve;
+}
+
+interface EcKeyGenParams extends Algorithm {
+    namedCurve: NamedCurve;
+}
+
+interface EcKeyImportParams extends Algorithm {
+    namedCurve: NamedCurve;
+}
+
+interface EcdhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface EcdsaParams extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+}
+
+interface EffectTiming {
+    delay?: number;
+    direction?: PlaybackDirection;
+    duration?: number | string;
+    easing?: string;
+    endDelay?: number;
+    fill?: FillMode;
+    iterationStart?: number;
+    iterations?: number;
+}
+
+interface ElementCreationOptions {
+    is?: string;
+}
+
+interface ElementDefinitionOptions {
+    extends?: string;
+}
+
+interface ErrorEventInit extends EventInit {
+    colno?: number;
+    error?: any;
+    filename?: string;
+    lineno?: number;
+    message?: string;
+}
+
+interface EventInit {
+    bubbles?: boolean;
+    cancelable?: boolean;
+    composed?: boolean;
+}
+
+interface EventListenerOptions {
+    capture?: boolean;
+}
+
+interface EventModifierInit extends UIEventInit {
+    altKey?: boolean;
+    ctrlKey?: boolean;
+    metaKey?: boolean;
+    modifierAltGraph?: boolean;
+    modifierCapsLock?: boolean;
+    modifierFn?: boolean;
+    modifierFnLock?: boolean;
+    modifierHyper?: boolean;
+    modifierNumLock?: boolean;
+    modifierScrollLock?: boolean;
+    modifierSuper?: boolean;
+    modifierSymbol?: boolean;
+    modifierSymbolLock?: boolean;
+    shiftKey?: boolean;
+}
+
+interface EventSourceInit {
+    withCredentials?: boolean;
+}
+
+interface ExceptionInformation {
+    domain?: string | null;
+}
+
+interface FilePropertyBag extends BlobPropertyBag {
+    lastModified?: number;
+}
+
+interface FocusEventInit extends UIEventInit {
+    relatedTarget?: EventTarget | null;
+}
+
+interface FocusNavigationEventInit extends EventInit {
+    navigationReason?: string | null;
+    originHeight?: number;
+    originLeft?: number;
+    originTop?: number;
+    originWidth?: number;
+}
+
+interface FocusNavigationOrigin {
+    originHeight?: number;
+    originLeft?: number;
+    originTop?: number;
+    originWidth?: number;
+}
+
+interface FocusOptions {
+    preventScroll?: boolean;
+}
+
+interface FullscreenOptions {
+    navigationUI?: FullscreenNavigationUI;
+}
+
+interface GainOptions extends AudioNodeOptions {
+    gain?: number;
+}
+
+interface GamepadEventInit extends EventInit {
+    gamepad: Gamepad;
+}
+
+interface GetNotificationOptions {
+    tag?: string;
+}
+
+interface GetRootNodeOptions {
+    composed?: boolean;
+}
+
+interface HashChangeEventInit extends EventInit {
+    newURL?: string;
+    oldURL?: string;
+}
+
+interface HkdfParams extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+    info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+    salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+}
+
+interface HmacImportParams extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+    length?: number;
+}
+
+interface HmacKeyAlgorithm extends KeyAlgorithm {
+    hash: KeyAlgorithm;
+    length: number;
+}
+
+interface HmacKeyGenParams extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+    length?: number;
+}
+
+interface IDBIndexParameters {
+    multiEntry?: boolean;
+    unique?: boolean;
+}
+
+interface IDBObjectStoreParameters {
+    autoIncrement?: boolean;
+    keyPath?: string | string[] | null;
+}
+
+interface IDBVersionChangeEventInit extends EventInit {
+    newVersion?: number | null;
+    oldVersion?: number;
+}
+
+interface IIRFilterOptions extends AudioNodeOptions {
+    feedback: number[];
+    feedforward: number[];
+}
+
+interface ImageBitmapOptions {
+    colorSpaceConversion?: ColorSpaceConversion;
+    imageOrientation?: ImageOrientation;
+    premultiplyAlpha?: PremultiplyAlpha;
+    resizeHeight?: number;
+    resizeQuality?: ResizeQuality;
+    resizeWidth?: number;
+}
+
+interface ImageBitmapRenderingContextSettings {
+    alpha?: boolean;
+}
+
+interface ImageEncodeOptions {
+    quality?: number;
+    type?: string;
+}
+
+interface ImportMeta {
+    url: string;
+}
+
+interface InputEventInit extends UIEventInit {
+    data?: string | null;
+    inputType?: string;
+    isComposing?: boolean;
+}
+
+interface IntersectionObserverEntryInit {
+    boundingClientRect: DOMRectInit;
+    intersectionRatio: number;
+    intersectionRect: DOMRectInit;
+    isIntersecting: boolean;
+    rootBounds: DOMRectInit | null;
+    target: Element;
+    time: number;
+}
+
+interface IntersectionObserverInit {
+    root?: Element | Document | null;
+    rootMargin?: string;
+    threshold?: number | number[];
+}
+
+interface JsonWebKey {
+    alg?: string;
+    crv?: string;
+    d?: string;
+    dp?: string;
+    dq?: string;
+    e?: string;
+    ext?: boolean;
+    k?: string;
+    key_ops?: string[];
+    kty?: string;
+    n?: string;
+    oth?: RsaOtherPrimesInfo[];
+    p?: string;
+    q?: string;
+    qi?: string;
+    use?: string;
+    x?: string;
+    y?: string;
+}
+
+interface KeyAlgorithm {
+    name: string;
+}
+
+interface KeyboardEventInit extends EventModifierInit {
+    /** @deprecated */
+    charCode?: number;
+    code?: string;
+    isComposing?: boolean;
+    key?: string;
+    /** @deprecated */
+    keyCode?: number;
+    location?: number;
+    repeat?: boolean;
+}
+
+interface Keyframe {
+    composite?: CompositeOperationOrAuto;
+    easing?: string;
+    offset?: number | null;
+    [property: string]: string | number | null | undefined;
+}
+
+interface KeyframeAnimationOptions extends KeyframeEffectOptions {
+    id?: string;
+}
+
+interface KeyframeEffectOptions extends EffectTiming {
+    composite?: CompositeOperation;
+    iterationComposite?: IterationCompositeOperation;
+}
+
+interface MediaElementAudioSourceOptions {
+    mediaElement: HTMLMediaElement;
+}
+
+interface MediaEncryptedEventInit extends EventInit {
+    initData?: ArrayBuffer | null;
+    initDataType?: string;
+}
+
+interface MediaKeyMessageEventInit extends EventInit {
+    message: ArrayBuffer;
+    messageType: MediaKeyMessageType;
+}
+
+interface MediaKeySystemConfiguration {
+    audioCapabilities?: MediaKeySystemMediaCapability[];
+    distinctiveIdentifier?: MediaKeysRequirement;
+    initDataTypes?: string[];
+    label?: string;
+    persistentState?: MediaKeysRequirement;
+    sessionTypes?: string[];
+    videoCapabilities?: MediaKeySystemMediaCapability[];
+}
+
+interface MediaKeySystemMediaCapability {
+    contentType?: string;
+    robustness?: string;
+}
+
+interface MediaQueryListEventInit extends EventInit {
+    matches?: boolean;
+    media?: string;
+}
+
+interface MediaStreamAudioSourceOptions {
+    mediaStream: MediaStream;
+}
+
+interface MediaStreamConstraints {
+    audio?: boolean | MediaTrackConstraints;
+    peerIdentity?: string;
+    video?: boolean | MediaTrackConstraints;
+}
+
+interface MediaStreamErrorEventInit extends EventInit {
+    error?: MediaStreamError | null;
+}
+
+interface MediaStreamEventInit extends EventInit {
+    stream?: MediaStream;
+}
+
+interface MediaStreamTrackAudioSourceOptions {
+    mediaStreamTrack: MediaStreamTrack;
+}
+
+interface MediaStreamTrackEventInit extends EventInit {
+    track: MediaStreamTrack;
+}
+
+interface MediaTrackCapabilities {
+    aspectRatio?: DoubleRange;
+    autoGainControl?: boolean[];
+    channelCount?: ULongRange;
+    deviceId?: string;
+    echoCancellation?: boolean[];
+    facingMode?: string[];
+    frameRate?: DoubleRange;
+    groupId?: string;
+    height?: ULongRange;
+    latency?: DoubleRange;
+    noiseSuppression?: boolean[];
+    resizeMode?: string[];
+    sampleRate?: ULongRange;
+    sampleSize?: ULongRange;
+    width?: ULongRange;
+}
+
+interface MediaTrackConstraintSet {
+    aspectRatio?: ConstrainDouble;
+    autoGainControl?: ConstrainBoolean;
+    channelCount?: ConstrainULong;
+    deviceId?: ConstrainDOMString;
+    echoCancellation?: ConstrainBoolean;
+    facingMode?: ConstrainDOMString;
+    frameRate?: ConstrainDouble;
+    groupId?: ConstrainDOMString;
+    height?: ConstrainULong;
+    latency?: ConstrainDouble;
+    noiseSuppression?: ConstrainBoolean;
+    resizeMode?: ConstrainDOMString;
+    sampleRate?: ConstrainULong;
+    sampleSize?: ConstrainULong;
+    width?: ConstrainULong;
+}
+
+interface MediaTrackConstraints extends MediaTrackConstraintSet {
+    advanced?: MediaTrackConstraintSet[];
+}
+
+interface MediaTrackSettings {
+    aspectRatio?: number;
+    autoGainControl?: boolean;
+    channelCount?: number;
+    deviceId?: string;
+    echoCancellation?: boolean;
+    facingMode?: string;
+    frameRate?: number;
+    groupId?: string;
+    height?: number;
+    latency?: number;
+    noiseSuppression?: boolean;
+    resizeMode?: string;
+    sampleRate?: number;
+    sampleSize?: number;
+    width?: number;
+}
+
+interface MediaTrackSupportedConstraints {
+    aspectRatio?: boolean;
+    autoGainControl?: boolean;
+    channelCount?: boolean;
+    deviceId?: boolean;
+    echoCancellation?: boolean;
+    facingMode?: boolean;
+    frameRate?: boolean;
+    groupId?: boolean;
+    height?: boolean;
+    latency?: boolean;
+    noiseSuppression?: boolean;
+    resizeMode?: boolean;
+    sampleRate?: boolean;
+    sampleSize?: boolean;
+    width?: boolean;
+}
+
+interface MessageEventInit extends EventInit {
+    data?: T;
+    lastEventId?: string;
+    origin?: string;
+    ports?: MessagePort[];
+    source?: MessageEventSource | null;
+}
+
+interface MidiPermissionDescriptor extends PermissionDescriptor {
+    name: "midi";
+    sysex?: boolean;
+}
+
+interface MouseEventInit extends EventModifierInit {
+    button?: number;
+    buttons?: number;
+    clientX?: number;
+    clientY?: number;
+    movementX?: number;
+    movementY?: number;
+    relatedTarget?: EventTarget | null;
+    screenX?: number;
+    screenY?: number;
+}
+
+interface MultiCacheQueryOptions extends CacheQueryOptions {
+    cacheName?: string;
+}
+
+interface MutationObserverInit {
+    /**
+     * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.
+     */
+    attributeFilter?: string[];
+    /**
+     * Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded.
+     */
+    attributeOldValue?: boolean;
+    /**
+     * Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.
+     */
+    attributes?: boolean;
+    /**
+     * Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified.
+     */
+    characterData?: boolean;
+    /**
+     * Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded.
+     */
+    characterDataOldValue?: boolean;
+    /**
+     * Set to true if mutations to target's children are to be observed.
+     */
+    childList?: boolean;
+    /**
+     * Set to true if mutations to not just target, but also target's descendants are to be observed.
+     */
+    subtree?: boolean;
+}
+
+interface NavigationPreloadState {
+    enabled?: boolean;
+    headerValue?: string;
+}
+
+interface NotificationAction {
+    action: string;
+    icon?: string;
+    title: string;
+}
+
+interface NotificationOptions {
+    actions?: NotificationAction[];
+    badge?: string;
+    body?: string;
+    data?: any;
+    dir?: NotificationDirection;
+    icon?: string;
+    image?: string;
+    lang?: string;
+    renotify?: boolean;
+    requireInteraction?: boolean;
+    silent?: boolean;
+    tag?: string;
+    timestamp?: number;
+    vibrate?: VibratePattern;
+}
+
+interface OfflineAudioCompletionEventInit extends EventInit {
+    renderedBuffer: AudioBuffer;
+}
+
+interface OfflineAudioContextOptions {
+    length: number;
+    numberOfChannels?: number;
+    sampleRate: number;
+}
+
+interface OptionalEffectTiming {
+    delay?: number;
+    direction?: PlaybackDirection;
+    duration?: number | string;
+    easing?: string;
+    endDelay?: number;
+    fill?: FillMode;
+    iterationStart?: number;
+    iterations?: number;
+}
+
+interface OscillatorOptions extends AudioNodeOptions {
+    detune?: number;
+    frequency?: number;
+    periodicWave?: PeriodicWave;
+    type?: OscillatorType;
+}
+
+interface PageTransitionEventInit extends EventInit {
+    persisted?: boolean;
+}
+
+interface PannerOptions extends AudioNodeOptions {
+    coneInnerAngle?: number;
+    coneOuterAngle?: number;
+    coneOuterGain?: number;
+    distanceModel?: DistanceModelType;
+    maxDistance?: number;
+    orientationX?: number;
+    orientationY?: number;
+    orientationZ?: number;
+    panningModel?: PanningModelType;
+    positionX?: number;
+    positionY?: number;
+    positionZ?: number;
+    refDistance?: number;
+    rolloffFactor?: number;
+}
+
+interface PaymentCurrencyAmount {
+    currency: string;
+    currencySystem?: string;
+    value: string;
+}
+
+interface PaymentDetailsBase {
+    displayItems?: PaymentItem[];
+    modifiers?: PaymentDetailsModifier[];
+    shippingOptions?: PaymentShippingOption[];
+}
+
+interface PaymentDetailsInit extends PaymentDetailsBase {
+    id?: string;
+    total: PaymentItem;
+}
+
+interface PaymentDetailsModifier {
+    additionalDisplayItems?: PaymentItem[];
+    data?: any;
+    supportedMethods: string | string[];
+    total?: PaymentItem;
+}
+
+interface PaymentDetailsUpdate extends PaymentDetailsBase {
+    error?: string;
+    total?: PaymentItem;
+}
+
+interface PaymentItem {
+    amount: PaymentCurrencyAmount;
+    label: string;
+    pending?: boolean;
+}
+
+interface PaymentMethodData {
+    data?: any;
+    supportedMethods: string | string[];
+}
+
+interface PaymentOptions {
+    requestPayerEmail?: boolean;
+    requestPayerName?: boolean;
+    requestPayerPhone?: boolean;
+    requestShipping?: boolean;
+    shippingType?: string;
+}
+
+interface PaymentRequestUpdateEventInit extends EventInit {
+}
+
+interface PaymentShippingOption {
+    amount: PaymentCurrencyAmount;
+    id: string;
+    label: string;
+    selected?: boolean;
+}
+
+interface Pbkdf2Params extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+    iterations: number;
+    salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+}
+
+interface PerformanceObserverInit {
+    buffered?: boolean;
+    entryTypes?: string[];
+    type?: string;
+}
+
+interface PeriodicWaveConstraints {
+    disableNormalization?: boolean;
+}
+
+interface PeriodicWaveOptions extends PeriodicWaveConstraints {
+    imag?: number[] | Float32Array;
+    real?: number[] | Float32Array;
+}
+
+interface PermissionDescriptor {
+    name: PermissionName;
+}
+
+interface PointerEventInit extends MouseEventInit {
+    coalescedEvents?: PointerEvent[];
+    height?: number;
+    isPrimary?: boolean;
+    pointerId?: number;
+    pointerType?: string;
+    predictedEvents?: PointerEvent[];
+    pressure?: number;
+    tangentialPressure?: number;
+    tiltX?: number;
+    tiltY?: number;
+    twist?: number;
+    width?: number;
+}
+
+interface PopStateEventInit extends EventInit {
+    state?: any;
+}
+
+interface PositionOptions {
+    enableHighAccuracy?: boolean;
+    maximumAge?: number;
+    timeout?: number;
+}
+
+interface PostMessageOptions {
+    transfer?: any[];
+}
+
+interface ProgressEventInit extends EventInit {
+    lengthComputable?: boolean;
+    loaded?: number;
+    total?: number;
+}
+
+interface PromiseRejectionEventInit extends EventInit {
+    promise: Promise;
+    reason?: any;
+}
+
+interface PropertyIndexedKeyframes {
+    composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
+    easing?: string | string[];
+    offset?: number | (number | null)[];
+    [property: string]: string | string[] | number | null | (number | null)[] | undefined;
+}
+
+interface PublicKeyCredentialCreationOptions {
+    attestation?: AttestationConveyancePreference;
+    authenticatorSelection?: AuthenticatorSelectionCriteria;
+    challenge: BufferSource;
+    excludeCredentials?: PublicKeyCredentialDescriptor[];
+    extensions?: AuthenticationExtensionsClientInputs;
+    pubKeyCredParams: PublicKeyCredentialParameters[];
+    rp: PublicKeyCredentialRpEntity;
+    timeout?: number;
+    user: PublicKeyCredentialUserEntity;
+}
+
+interface PublicKeyCredentialDescriptor {
+    id: BufferSource;
+    transports?: AuthenticatorTransport[];
+    type: PublicKeyCredentialType;
+}
+
+interface PublicKeyCredentialEntity {
+    name: string;
+}
+
+interface PublicKeyCredentialParameters {
+    alg: COSEAlgorithmIdentifier;
+    type: PublicKeyCredentialType;
+}
+
+interface PublicKeyCredentialRequestOptions {
+    allowCredentials?: PublicKeyCredentialDescriptor[];
+    challenge: BufferSource;
+    extensions?: AuthenticationExtensionsClientInputs;
+    rpId?: string;
+    timeout?: number;
+    userVerification?: UserVerificationRequirement;
+}
+
+interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
+    id?: string;
+}
+
+interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
+    displayName: string;
+    id: BufferSource;
+}
+
+interface PushPermissionDescriptor extends PermissionDescriptor {
+    name: "push";
+    userVisibleOnly?: boolean;
+}
+
+interface PushSubscriptionJSON {
+    endpoint?: string;
+    expirationTime?: number | null;
+    keys?: Record;
+}
+
+interface PushSubscriptionOptionsInit {
+    applicationServerKey?: BufferSource | string | null;
+    userVisibleOnly?: boolean;
+}
+
+interface QueuingStrategy {
+    highWaterMark?: number;
+    size?: QueuingStrategySize;
+}
+
+interface QueuingStrategyInit {
+    /**
+     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
+     * 
+     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
+     */
+    highWaterMark: number;
+}
+
+interface RTCAnswerOptions extends RTCOfferAnswerOptions {
+}
+
+interface RTCCertificateExpiration {
+    expires?: number;
+}
+
+interface RTCConfiguration {
+    bundlePolicy?: RTCBundlePolicy;
+    certificates?: RTCCertificate[];
+    iceCandidatePoolSize?: number;
+    iceServers?: RTCIceServer[];
+    iceTransportPolicy?: RTCIceTransportPolicy;
+    peerIdentity?: string;
+    rtcpMuxPolicy?: RTCRtcpMuxPolicy;
+}
+
+interface RTCDTMFToneChangeEventInit extends EventInit {
+    tone: string;
+}
+
+interface RTCDataChannelEventInit extends EventInit {
+    channel: RTCDataChannel;
+}
+
+interface RTCDataChannelInit {
+    id?: number;
+    maxPacketLifeTime?: number;
+    maxRetransmits?: number;
+    negotiated?: boolean;
+    ordered?: boolean;
+    priority?: RTCPriorityType;
+    protocol?: string;
+}
+
+interface RTCDtlsFingerprint {
+    algorithm?: string;
+    value?: string;
+}
+
+interface RTCDtlsParameters {
+    fingerprints?: RTCDtlsFingerprint[];
+    role?: RTCDtlsRole;
+}
+
+interface RTCErrorEventInit extends EventInit {
+    error: RTCError;
+}
+
+interface RTCErrorInit {
+    errorDetail: RTCErrorDetailType;
+    httpRequestStatusCode?: number;
+    receivedAlert?: number;
+    sctpCauseCode?: number;
+    sdpLineNumber?: number;
+    sentAlert?: number;
+}
+
+interface RTCIceCandidateAttributes extends RTCStats {
+    addressSourceUrl?: string;
+    candidateType?: RTCStatsIceCandidateType;
+    ipAddress?: string;
+    portNumber?: number;
+    priority?: number;
+    transport?: string;
+}
+
+interface RTCIceCandidateComplete {
+}
+
+interface RTCIceCandidateDictionary {
+    foundation?: string;
+    ip?: string;
+    msMTurnSessionId?: string;
+    port?: number;
+    priority?: number;
+    protocol?: RTCIceProtocol;
+    relatedAddress?: string;
+    relatedPort?: number;
+    tcpType?: RTCIceTcpCandidateType;
+    type?: RTCIceCandidateType;
+}
+
+interface RTCIceCandidateInit {
+    candidate?: string;
+    sdpMLineIndex?: number | null;
+    sdpMid?: string | null;
+    usernameFragment?: string | null;
+}
+
+interface RTCIceCandidatePair {
+    local?: RTCIceCandidate;
+    remote?: RTCIceCandidate;
+}
+
+interface RTCIceCandidatePairStats extends RTCStats {
+    availableIncomingBitrate?: number;
+    availableOutgoingBitrate?: number;
+    bytesDiscardedOnSend?: number;
+    bytesReceived?: number;
+    bytesSent?: number;
+    circuitBreakerTriggerCount?: number;
+    consentExpiredTimestamp?: number;
+    consentRequestsSent?: number;
+    currentRoundTripTime?: number;
+    currentRtt?: number;
+    firstRequestTimestamp?: number;
+    lastPacketReceivedTimestamp?: number;
+    lastPacketSentTimestamp?: number;
+    lastRequestTimestamp?: number;
+    lastResponseTimestamp?: number;
+    localCandidateId?: string;
+    nominated?: boolean;
+    packetsDiscardedOnSend?: number;
+    packetsReceived?: number;
+    packetsSent?: number;
+    priority?: number;
+    remoteCandidateId?: string;
+    requestsReceived?: number;
+    requestsSent?: number;
+    responsesReceived?: number;
+    responsesSent?: number;
+    retransmissionsReceived?: number;
+    retransmissionsSent?: number;
+    state?: RTCStatsIceCandidatePairState;
+    totalRoundTripTime?: number;
+    totalRtt?: number;
+    transportId?: string;
+}
+
+interface RTCIceGatherOptions {
+    gatherPolicy?: RTCIceGatherPolicy;
+    iceservers?: RTCIceServer[];
+}
+
+interface RTCIceParameters {
+    password?: string;
+    usernameFragment?: string;
+}
+
+interface RTCIceServer {
+    credential?: string | RTCOAuthCredential;
+    credentialType?: RTCIceCredentialType;
+    urls: string | string[];
+    username?: string;
+}
+
+interface RTCIdentityProviderOptions {
+    peerIdentity?: string;
+    protocol?: string;
+    usernameHint?: string;
+}
+
+interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
+    bytesReceived?: number;
+    fractionLost?: number;
+    jitter?: number;
+    packetsLost?: number;
+    packetsReceived?: number;
+}
+
+interface RTCMediaStreamTrackStats extends RTCStats {
+    audioLevel?: number;
+    echoReturnLoss?: number;
+    echoReturnLossEnhancement?: number;
+    frameHeight?: number;
+    frameWidth?: number;
+    framesCorrupted?: number;
+    framesDecoded?: number;
+    framesDropped?: number;
+    framesPerSecond?: number;
+    framesReceived?: number;
+    framesSent?: number;
+    remoteSource?: boolean;
+    ssrcIds?: string[];
+    trackIdentifier?: string;
+}
+
+interface RTCOAuthCredential {
+    accessToken: string;
+    macKey: string;
+}
+
+interface RTCOfferAnswerOptions {
+    voiceActivityDetection?: boolean;
+}
+
+interface RTCOfferOptions extends RTCOfferAnswerOptions {
+    iceRestart?: boolean;
+    offerToReceiveAudio?: boolean;
+    offerToReceiveVideo?: boolean;
+}
+
+interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
+    bytesSent?: number;
+    packetsSent?: number;
+    roundTripTime?: number;
+    targetBitrate?: number;
+}
+
+interface RTCPeerConnectionIceErrorEventInit extends EventInit {
+    errorCode: number;
+    hostCandidate?: string;
+    statusText?: string;
+    url?: string;
+}
+
+interface RTCPeerConnectionIceEventInit extends EventInit {
+    candidate?: RTCIceCandidate | null;
+    url?: string | null;
+}
+
+interface RTCRTPStreamStats extends RTCStats {
+    associateStatsId?: string;
+    codecId?: string;
+    firCount?: number;
+    isRemote?: boolean;
+    mediaTrackId?: string;
+    mediaType?: string;
+    nackCount?: number;
+    pliCount?: number;
+    sliCount?: number;
+    ssrc?: string;
+    transportId?: string;
+}
+
+interface RTCRtcpFeedback {
+    parameter?: string;
+    type?: string;
+}
+
+interface RTCRtcpParameters {
+    cname?: string;
+    reducedSize?: boolean;
+}
+
+interface RTCRtpCapabilities {
+    codecs: RTCRtpCodecCapability[];
+    headerExtensions: RTCRtpHeaderExtensionCapability[];
+}
+
+interface RTCRtpCodecCapability {
+    channels?: number;
+    clockRate: number;
+    mimeType: string;
+    sdpFmtpLine?: string;
+}
+
+interface RTCRtpCodecParameters {
+    channels?: number;
+    clockRate: number;
+    mimeType: string;
+    payloadType: number;
+    sdpFmtpLine?: string;
+}
+
+interface RTCRtpCodingParameters {
+    rid?: string;
+}
+
+interface RTCRtpContributingSource {
+    audioLevel?: number;
+    rtpTimestamp: number;
+    source: number;
+    timestamp: number;
+}
+
+interface RTCRtpDecodingParameters extends RTCRtpCodingParameters {
+}
+
+interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
+    active?: boolean;
+    codecPayloadType?: number;
+    dtx?: RTCDtxStatus;
+    maxBitrate?: number;
+    maxFramerate?: number;
+    ptime?: number;
+    scaleResolutionDownBy?: number;
+}
+
+interface RTCRtpFecParameters {
+    mechanism?: string;
+    ssrc?: number;
+}
+
+interface RTCRtpHeaderExtension {
+    kind?: string;
+    preferredEncrypt?: boolean;
+    preferredId?: number;
+    uri?: string;
+}
+
+interface RTCRtpHeaderExtensionCapability {
+    uri?: string;
+}
+
+interface RTCRtpHeaderExtensionParameters {
+    encrypted?: boolean;
+    id: number;
+    uri: string;
+}
+
+interface RTCRtpParameters {
+    codecs: RTCRtpCodecParameters[];
+    headerExtensions: RTCRtpHeaderExtensionParameters[];
+    rtcp: RTCRtcpParameters;
+}
+
+interface RTCRtpReceiveParameters extends RTCRtpParameters {
+    encodings: RTCRtpDecodingParameters[];
+}
+
+interface RTCRtpRtxParameters {
+    ssrc?: number;
+}
+
+interface RTCRtpSendParameters extends RTCRtpParameters {
+    degradationPreference?: RTCDegradationPreference;
+    encodings: RTCRtpEncodingParameters[];
+    priority?: RTCPriorityType;
+    transactionId: string;
+}
+
+interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
+    voiceActivityFlag?: boolean;
+}
+
+interface RTCRtpTransceiverInit {
+    direction?: RTCRtpTransceiverDirection;
+    sendEncodings?: RTCRtpEncodingParameters[];
+    streams?: MediaStream[];
+}
+
+interface RTCRtpUnhandled {
+    muxId?: string;
+    payloadType?: number;
+    ssrc?: number;
+}
+
+interface RTCSessionDescriptionInit {
+    sdp?: string;
+    type?: RTCSdpType;
+}
+
+interface RTCSrtpKeyParam {
+    keyMethod?: string;
+    keySalt?: string;
+    lifetime?: string;
+    mkiLength?: number;
+    mkiValue?: number;
+}
+
+interface RTCSrtpSdesParameters {
+    cryptoSuite?: string;
+    keyParams?: RTCSrtpKeyParam[];
+    sessionParams?: string[];
+    tag?: number;
+}
+
+interface RTCSsrcRange {
+    max?: number;
+    min?: number;
+}
+
+interface RTCStats {
+    id?: string;
+    timestamp?: number;
+    type?: RTCStatsType;
+}
+
+interface RTCStatsEventInit extends EventInit {
+    report: RTCStatsReport;
+}
+
+interface RTCStatsReport {
+}
+
+interface RTCTrackEventInit extends EventInit {
+    receiver: RTCRtpReceiver;
+    streams?: MediaStream[];
+    track: MediaStreamTrack;
+    transceiver: RTCRtpTransceiver;
+}
+
+interface RTCTransportStats extends RTCStats {
+    bytesReceived?: number;
+    bytesSent?: number;
+    dtlsCipher?: string;
+    dtlsState?: RTCDtlsTransportState;
+    iceRole?: RTCIceRole;
+    localCertificateId?: string;
+    packetsReceived?: number;
+    packetsSent?: number;
+    remoteCertificateId?: string;
+    rtcpTransportStatsId?: string;
+    selectedCandidatePairChanges?: number;
+    selectedCandidatePairId?: string;
+    srtpCipher?: string;
+    tlsGroup?: string;
+    tlsVersion?: string;
+}
+
+interface ReadableStreamDefaultReadDoneResult {
+    done: true;
+    value?: undefined;
+}
+
+interface ReadableStreamDefaultReadValueResult {
+    done: false;
+    value: T;
+}
+
+interface ReadableWritablePair {
+    readable: ReadableStream;
+    /**
+     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
+     * 
+     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
+     */
+    writable: WritableStream;
+}
+
+interface RegistrationOptions {
+    scope?: string;
+    type?: WorkerType;
+    updateViaCache?: ServiceWorkerUpdateViaCache;
+}
+
+interface RequestInit {
+    /**
+     * A BodyInit object or null to set request's body.
+     */
+    body?: BodyInit | null;
+    /**
+     * A string indicating how the request will interact with the browser's cache to set request's cache.
+     */
+    cache?: RequestCache;
+    /**
+     * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
+     */
+    credentials?: RequestCredentials;
+    /**
+     * A Headers object, an object literal, or an array of two-item arrays to set request's headers.
+     */
+    headers?: HeadersInit;
+    /**
+     * A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
+     */
+    integrity?: string;
+    /**
+     * A boolean to set request's keepalive.
+     */
+    keepalive?: boolean;
+    /**
+     * A string to set request's method.
+     */
+    method?: string;
+    /**
+     * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
+     */
+    mode?: RequestMode;
+    /**
+     * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
+     */
+    redirect?: RequestRedirect;
+    /**
+     * A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
+     */
+    referrer?: string;
+    /**
+     * A referrer policy to set request's referrerPolicy.
+     */
+    referrerPolicy?: ReferrerPolicy;
+    /**
+     * An AbortSignal to set request's signal.
+     */
+    signal?: AbortSignal | null;
+    /**
+     * Can only be null. Used to disassociate request from any Window.
+     */
+    window?: any;
+}
+
+interface ResizeObserverOptions {
+    box?: ResizeObserverBoxOptions;
+}
+
+interface ResponseInit {
+    headers?: HeadersInit;
+    status?: number;
+    statusText?: string;
+}
+
+interface RsaHashedImportParams extends Algorithm {
+    hash: HashAlgorithmIdentifier;
+}
+
+interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
+    hash: KeyAlgorithm;
+}
+
+interface RsaHashedKeyGenParams extends RsaKeyGenParams {
+    hash: HashAlgorithmIdentifier;
+}
+
+interface RsaKeyAlgorithm extends KeyAlgorithm {
+    modulusLength: number;
+    publicExponent: BigInteger;
+}
+
+interface RsaKeyGenParams extends Algorithm {
+    modulusLength: number;
+    publicExponent: BigInteger;
+}
+
+interface RsaOaepParams extends Algorithm {
+    label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+}
+
+interface RsaOtherPrimesInfo {
+    d?: string;
+    r?: string;
+    t?: string;
+}
+
+interface RsaPssParams extends Algorithm {
+    saltLength: number;
+}
+
+interface SVGBoundingBoxOptions {
+    clipped?: boolean;
+    fill?: boolean;
+    markers?: boolean;
+    stroke?: boolean;
+}
+
+interface ScopedCredentialDescriptor {
+    id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
+    transports?: Transport[];
+    type: ScopedCredentialType;
+}
+
+interface ScopedCredentialOptions {
+    excludeList?: ScopedCredentialDescriptor[];
+    extensions?: WebAuthnExtensions;
+    rpId?: string;
+    timeoutSeconds?: number;
+}
+
+interface ScopedCredentialParameters {
+    algorithm: string | Algorithm;
+    type: ScopedCredentialType;
+}
+
+interface ScrollIntoViewOptions extends ScrollOptions {
+    block?: ScrollLogicalPosition;
+    inline?: ScrollLogicalPosition;
+}
+
+interface ScrollOptions {
+    behavior?: ScrollBehavior;
+}
+
+interface ScrollToOptions extends ScrollOptions {
+    left?: number;
+    top?: number;
+}
+
+interface SecurityPolicyViolationEventInit extends EventInit {
+    blockedURI?: string;
+    columnNumber?: number;
+    documentURI?: string;
+    effectiveDirective?: string;
+    lineNumber?: number;
+    originalPolicy?: string;
+    referrer?: string;
+    sourceFile?: string;
+    statusCode?: number;
+    violatedDirective?: string;
+}
+
+interface ServiceWorkerMessageEventInit extends EventInit {
+    data?: any;
+    lastEventId?: string;
+    origin?: string;
+    ports?: MessagePort[] | null;
+    source?: ServiceWorker | MessagePort | null;
+}
+
+interface ShadowRootInit {
+    delegatesFocus?: boolean;
+    mode: ShadowRootMode;
+}
+
+interface ShareData {
+    text?: string;
+    title?: string;
+    url?: string;
+}
+
+interface SpeechRecognitionErrorEventInit extends EventInit {
+    error: SpeechRecognitionErrorCode;
+    message?: string;
+}
+
+interface SpeechRecognitionEventInit extends EventInit {
+    resultIndex?: number;
+    results: SpeechRecognitionResultList;
+}
+
+interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
+    error: SpeechSynthesisErrorCode;
+}
+
+interface SpeechSynthesisEventInit extends EventInit {
+    charIndex?: number;
+    charLength?: number;
+    elapsedTime?: number;
+    name?: string;
+    utterance: SpeechSynthesisUtterance;
+}
+
+interface StaticRangeInit {
+    endContainer: Node;
+    endOffset: number;
+    startContainer: Node;
+    startOffset: number;
+}
+
+interface StereoPannerOptions extends AudioNodeOptions {
+    pan?: number;
+}
+
+interface StorageEstimate {
+    quota?: number;
+    usage?: number;
+}
+
+interface StorageEventInit extends EventInit {
+    key?: string | null;
+    newValue?: string | null;
+    oldValue?: string | null;
+    storageArea?: Storage | null;
+    url?: string;
+}
+
+interface StoreExceptionsInformation extends ExceptionInformation {
+    detailURI?: string | null;
+    explanationString?: string | null;
+    siteName?: string | null;
+}
+
+interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface StreamPipeOptions {
+    preventAbort?: boolean;
+    preventCancel?: boolean;
+    /**
+     * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
+     * 
+     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
+     * 
+     * Errors and closures of the source and destination streams propagate as follows:
+     * 
+     * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
+     * 
+     * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
+     * 
+     * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
+     * 
+     * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
+     * 
+     * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
+     */
+    preventClose?: boolean;
+    signal?: AbortSignal;
+}
+
+interface TextDecodeOptions {
+    stream?: boolean;
+}
+
+interface TextDecoderOptions {
+    fatal?: boolean;
+    ignoreBOM?: boolean;
+}
+
+interface TextEncoderEncodeIntoResult {
+    read?: number;
+    written?: number;
+}
+
+interface TouchEventInit extends EventModifierInit {
+    changedTouches?: Touch[];
+    targetTouches?: Touch[];
+    touches?: Touch[];
+}
+
+interface TouchInit {
+    altitudeAngle?: number;
+    azimuthAngle?: number;
+    clientX?: number;
+    clientY?: number;
+    force?: number;
+    identifier: number;
+    pageX?: number;
+    pageY?: number;
+    radiusX?: number;
+    radiusY?: number;
+    rotationAngle?: number;
+    screenX?: number;
+    screenY?: number;
+    target: EventTarget;
+    touchType?: TouchType;
+}
+
+interface TrackEventInit extends EventInit {
+    track?: TextTrack | null;
+}
+
+interface Transformer {
+    flush?: TransformerFlushCallback;
+    readableType?: undefined;
+    start?: TransformerStartCallback;
+    transform?: TransformerTransformCallback;
+    writableType?: undefined;
+}
+
+interface TransitionEventInit extends EventInit {
+    elapsedTime?: number;
+    propertyName?: string;
+    pseudoElement?: string;
+}
+
+interface UIEventInit extends EventInit {
+    detail?: number;
+    view?: Window | null;
+}
+
+interface ULongRange {
+    max?: number;
+    min?: number;
+}
+
+interface UnderlyingSink {
+    abort?: UnderlyingSinkAbortCallback;
+    close?: UnderlyingSinkCloseCallback;
+    start?: UnderlyingSinkStartCallback;
+    type?: undefined;
+    write?: UnderlyingSinkWriteCallback;
+}
+
+interface UnderlyingSource {
+    cancel?: UnderlyingSourceCancelCallback;
+    pull?: UnderlyingSourcePullCallback;
+    start?: UnderlyingSourceStartCallback;
+    type?: undefined;
+}
+
+interface VRDisplayEventInit extends EventInit {
+    display: VRDisplay;
+    reason?: VRDisplayEventReason;
+}
+
+interface VRLayer {
+    leftBounds?: number[] | Float32Array | null;
+    rightBounds?: number[] | Float32Array | null;
+    source?: HTMLCanvasElement | null;
+}
+
+interface VRStageParameters {
+    sittingToStandingTransform?: Float32Array;
+    sizeX?: number;
+    sizeY?: number;
+}
+
+interface WaveShaperOptions extends AudioNodeOptions {
+    curve?: number[] | Float32Array;
+    oversample?: OverSampleType;
+}
+
+interface WebAuthnExtensions {
+}
+
+interface WebGLContextAttributes {
+    alpha?: boolean;
+    antialias?: boolean;
+    depth?: boolean;
+    desynchronized?: boolean;
+    failIfMajorPerformanceCaveat?: boolean;
+    powerPreference?: WebGLPowerPreference;
+    premultipliedAlpha?: boolean;
+    preserveDrawingBuffer?: boolean;
+    stencil?: boolean;
+}
+
+interface WebGLContextEventInit extends EventInit {
+    statusMessage?: string;
+}
+
+interface WheelEventInit extends MouseEventInit {
+    deltaMode?: number;
+    deltaX?: number;
+    deltaY?: number;
+    deltaZ?: number;
+}
+
+interface WorkerOptions {
+    credentials?: RequestCredentials;
+    name?: string;
+    type?: WorkerType;
+}
+
+interface WorkletOptions {
+    credentials?: RequestCredentials;
+}
+
+interface EventListener {
+    (evt: Event): void;
+}
+
+type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
+
+/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
+interface ANGLE_instanced_arrays {
+    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
+    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
+    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
+}
+
+/** A controller object that allows you to abort one or more DOM requests as and when desired. */
+interface AbortController {
+    /**
+     * Returns the AbortSignal object associated with this object.
+     */
+    readonly signal: AbortSignal;
+    /**
+     * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
+     */
+    abort(): void;
+}
+
+declare var AbortController: {
+    prototype: AbortController;
+    new(): AbortController;
+};
+
+interface AbortSignalEventMap {
+    "abort": Event;
+}
+
+/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
+interface AbortSignal extends EventTarget {
+    /**
+     * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
+     */
+    readonly aborted: boolean;
+    onabort: ((this: AbortSignal, ev: Event) => any) | null;
+    addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var AbortSignal: {
+    prototype: AbortSignal;
+    new(): AbortSignal;
+};
+
+interface AbstractRange {
+    /**
+     * Returns true if range is collapsed, and false otherwise.
+     */
+    readonly collapsed: boolean;
+    /**
+     * Returns range's end node.
+     */
+    readonly endContainer: Node;
+    /**
+     * Returns range's end offset.
+     */
+    readonly endOffset: number;
+    /**
+     * Returns range's start node.
+     */
+    readonly startContainer: Node;
+    /**
+     * Returns range's start offset.
+     */
+    readonly startOffset: number;
+}
+
+declare var AbstractRange: {
+    prototype: AbstractRange;
+    new(): AbstractRange;
+};
+
+interface AbstractWorkerEventMap {
+    "error": ErrorEvent;
+}
+
+interface AbstractWorker {
+    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
+    addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+interface AesCfbParams extends Algorithm {
+    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+}
+
+interface AesCmacParams extends Algorithm {
+    length: number;
+}
+
+/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
+interface AnalyserNode extends AudioNode {
+    fftSize: number;
+    readonly frequencyBinCount: number;
+    maxDecibels: number;
+    minDecibels: number;
+    smoothingTimeConstant: number;
+    getByteFrequencyData(array: Uint8Array): void;
+    getByteTimeDomainData(array: Uint8Array): void;
+    getFloatFrequencyData(array: Float32Array): void;
+    getFloatTimeDomainData(array: Float32Array): void;
+}
+
+declare var AnalyserNode: {
+    prototype: AnalyserNode;
+    new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
+};
+
+interface Animatable {
+    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
+    getAnimations(): Animation[];
+}
+
+interface AnimationEventMap {
+    "cancel": AnimationPlaybackEvent;
+    "finish": AnimationPlaybackEvent;
+}
+
+interface Animation extends EventTarget {
+    currentTime: number | null;
+    effect: AnimationEffect | null;
+    readonly finished: Promise;
+    id: string;
+    oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
+    onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
+    readonly pending: boolean;
+    readonly playState: AnimationPlayState;
+    playbackRate: number;
+    readonly ready: Promise;
+    startTime: number | null;
+    timeline: AnimationTimeline | null;
+    cancel(): void;
+    finish(): void;
+    pause(): void;
+    play(): void;
+    reverse(): void;
+    updatePlaybackRate(playbackRate: number): void;
+    addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var Animation: {
+    prototype: Animation;
+    new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
+};
+
+interface AnimationEffect {
+    getComputedTiming(): ComputedEffectTiming;
+    getTiming(): EffectTiming;
+    updateTiming(timing?: OptionalEffectTiming): void;
+}
+
+declare var AnimationEffect: {
+    prototype: AnimationEffect;
+    new(): AnimationEffect;
+};
+
+/** Events providing information related to animations. */
+interface AnimationEvent extends Event {
+    readonly animationName: string;
+    readonly elapsedTime: number;
+    readonly pseudoElement: string;
+}
+
+declare var AnimationEvent: {
+    prototype: AnimationEvent;
+    new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
+};
+
+interface AnimationFrameProvider {
+    cancelAnimationFrame(handle: number): void;
+    requestAnimationFrame(callback: FrameRequestCallback): number;
+}
+
+interface AnimationPlaybackEvent extends Event {
+    readonly currentTime: number | null;
+    readonly timelineTime: number | null;
+}
+
+declare var AnimationPlaybackEvent: {
+    prototype: AnimationPlaybackEvent;
+    new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
+};
+
+interface AnimationTimeline {
+    readonly currentTime: number | null;
+}
+
+declare var AnimationTimeline: {
+    prototype: AnimationTimeline;
+    new(): AnimationTimeline;
+};
+
+interface ApplicationCacheEventMap {
+    "cached": Event;
+    "checking": Event;
+    "downloading": Event;
+    "error": Event;
+    "noupdate": Event;
+    "obsolete": Event;
+    "progress": ProgressEvent;
+    "updateready": Event;
+}
+
+interface ApplicationCache extends EventTarget {
+    /** @deprecated */
+    oncached: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    onchecking: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    onerror: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;
+    /** @deprecated */
+    onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;
+    /** @deprecated */
+    readonly status: number;
+    /** @deprecated */
+    abort(): void;
+    /** @deprecated */
+    swapCache(): void;
+    /** @deprecated */
+    update(): void;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+    addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var ApplicationCache: {
+    prototype: ApplicationCache;
+    new(): ApplicationCache;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+};
+
+/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
+interface Attr extends Node {
+    readonly localName: string;
+    readonly name: string;
+    readonly namespaceURI: string | null;
+    readonly ownerDocument: Document;
+    readonly ownerElement: Element | null;
+    readonly prefix: string | null;
+    readonly specified: boolean;
+    value: string;
+}
+
+declare var Attr: {
+    prototype: Attr;
+    new(): Attr;
+};
+
+/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
+interface AudioBuffer {
+    readonly duration: number;
+    readonly length: number;
+    readonly numberOfChannels: number;
+    readonly sampleRate: number;
+    copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
+    copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
+    getChannelData(channel: number): Float32Array;
+}
+
+declare var AudioBuffer: {
+    prototype: AudioBuffer;
+    new(options: AudioBufferOptions): AudioBuffer;
+};
+
+/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
+interface AudioBufferSourceNode extends AudioScheduledSourceNode {
+    buffer: AudioBuffer | null;
+    readonly detune: AudioParam;
+    loop: boolean;
+    loopEnd: number;
+    loopStart: number;
+    readonly playbackRate: AudioParam;
+    start(when?: number, offset?: number, duration?: number): void;
+    addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var AudioBufferSourceNode: {
+    prototype: AudioBufferSourceNode;
+    new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
+};
+
+/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
+interface AudioContext extends BaseAudioContext {
+    readonly baseLatency: number;
+    readonly outputLatency: number;
+    close(): Promise;
+    createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
+    createMediaStreamDestination(): MediaStreamAudioDestinationNode;
+    createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
+    createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;
+    getOutputTimestamp(): AudioTimestamp;
+    resume(): Promise;
+    suspend(): Promise;
+    addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var AudioContext: {
+    prototype: AudioContext;
+    new(contextOptions?: AudioContextOptions): AudioContext;
+};
+
+/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
+interface AudioDestinationNode extends AudioNode {
+    readonly maxChannelCount: number;
+}
+
+declare var AudioDestinationNode: {
+    prototype: AudioDestinationNode;
+    new(): AudioDestinationNode;
+};
+
+/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
+interface AudioListener {
+    readonly forwardX: AudioParam;
+    readonly forwardY: AudioParam;
+    readonly forwardZ: AudioParam;
+    readonly positionX: AudioParam;
+    readonly positionY: AudioParam;
+    readonly positionZ: AudioParam;
+    readonly upX: AudioParam;
+    readonly upY: AudioParam;
+    readonly upZ: AudioParam;
+    /** @deprecated */
+    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
+    /** @deprecated */
+    setPosition(x: number, y: number, z: number): void;
+}
+
+declare var AudioListener: {
+    prototype: AudioListener;
+    new(): AudioListener;
+};
+
+/** A generic interface for representing an audio processing module. Examples include: */
+interface AudioNode extends EventTarget {
+    channelCount: number;
+    channelCountMode: ChannelCountMode;
+    channelInterpretation: ChannelInterpretation;
+    readonly context: BaseAudioContext;
+    readonly numberOfInputs: number;
+    readonly numberOfOutputs: number;
+    connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
+    connect(destinationParam: AudioParam, output?: number): void;
+    disconnect(): void;
+    disconnect(output: number): void;
+    disconnect(destinationNode: AudioNode): void;
+    disconnect(destinationNode: AudioNode, output: number): void;
+    disconnect(destinationNode: AudioNode, output: number, input: number): void;
+    disconnect(destinationParam: AudioParam): void;
+    disconnect(destinationParam: AudioParam, output: number): void;
+}
+
+declare var AudioNode: {
+    prototype: AudioNode;
+    new(): AudioNode;
+};
+
+/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
+interface AudioParam {
+    automationRate: AutomationRate;
+    readonly defaultValue: number;
+    readonly maxValue: number;
+    readonly minValue: number;
+    value: number;
+    cancelAndHoldAtTime(cancelTime: number): AudioParam;
+    cancelScheduledValues(cancelTime: number): AudioParam;
+    exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
+    linearRampToValueAtTime(value: number, endTime: number): AudioParam;
+    setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
+    setValueAtTime(value: number, startTime: number): AudioParam;
+    setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
+}
+
+declare var AudioParam: {
+    prototype: AudioParam;
+    new(): AudioParam;
+};
+
+interface AudioParamMap {
+    forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
+}
+
+declare var AudioParamMap: {
+    prototype: AudioParamMap;
+    new(): AudioParamMap;
+};
+
+/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
+ * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
+ */
+interface AudioProcessingEvent extends Event {
+    readonly inputBuffer: AudioBuffer;
+    readonly outputBuffer: AudioBuffer;
+    readonly playbackTime: number;
+}
+
+declare var AudioProcessingEvent: {
+    prototype: AudioProcessingEvent;
+    new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
+};
+
+interface AudioScheduledSourceNodeEventMap {
+    "ended": Event;
+}
+
+interface AudioScheduledSourceNode extends AudioNode {
+    onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
+    start(when?: number): void;
+    stop(when?: number): void;
+    addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var AudioScheduledSourceNode: {
+    prototype: AudioScheduledSourceNode;
+    new(): AudioScheduledSourceNode;
+};
+
+interface AudioWorklet extends Worklet {
+}
+
+declare var AudioWorklet: {
+    prototype: AudioWorklet;
+    new(): AudioWorklet;
+};
+
+interface AudioWorkletNodeEventMap {
+    "processorerror": Event;
+}
+
+interface AudioWorkletNode extends AudioNode {
+    onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
+    readonly parameters: AudioParamMap;
+    readonly port: MessagePort;
+    addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var AudioWorkletNode: {
+    prototype: AudioWorkletNode;
+    new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
+};
+
+interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
+    readonly authenticatorData: ArrayBuffer;
+    readonly signature: ArrayBuffer;
+    readonly userHandle: ArrayBuffer | null;
+}
+
+declare var AuthenticatorAssertionResponse: {
+    prototype: AuthenticatorAssertionResponse;
+    new(): AuthenticatorAssertionResponse;
+};
+
+interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
+    readonly attestationObject: ArrayBuffer;
+}
+
+declare var AuthenticatorAttestationResponse: {
+    prototype: AuthenticatorAttestationResponse;
+    new(): AuthenticatorAttestationResponse;
+};
+
+interface AuthenticatorResponse {
+    readonly clientDataJSON: ArrayBuffer;
+}
+
+declare var AuthenticatorResponse: {
+    prototype: AuthenticatorResponse;
+    new(): AuthenticatorResponse;
+};
+
+interface BarProp {
+    readonly visible: boolean;
+}
+
+declare var BarProp: {
+    prototype: BarProp;
+    new(): BarProp;
+};
+
+interface BaseAudioContextEventMap {
+    "statechange": Event;
+}
+
+interface BaseAudioContext extends EventTarget {
+    readonly audioWorklet: AudioWorklet;
+    readonly currentTime: number;
+    readonly destination: AudioDestinationNode;
+    readonly listener: AudioListener;
+    onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
+    readonly sampleRate: number;
+    readonly state: AudioContextState;
+    createAnalyser(): AnalyserNode;
+    createBiquadFilter(): BiquadFilterNode;
+    createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
+    createBufferSource(): AudioBufferSourceNode;
+    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
+    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
+    createConstantSource(): ConstantSourceNode;
+    createConvolver(): ConvolverNode;
+    createDelay(maxDelayTime?: number): DelayNode;
+    createDynamicsCompressor(): DynamicsCompressorNode;
+    createGain(): GainNode;
+    createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
+    createOscillator(): OscillatorNode;
+    createPanner(): PannerNode;
+    createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
+    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
+    createStereoPanner(): StereoPannerNode;
+    createWaveShaper(): WaveShaperNode;
+    decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise;
+    addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var BaseAudioContext: {
+    prototype: BaseAudioContext;
+    new(): BaseAudioContext;
+};
+
+/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
+interface BeforeUnloadEvent extends Event {
+    returnValue: any;
+}
+
+declare var BeforeUnloadEvent: {
+    prototype: BeforeUnloadEvent;
+    new(): BeforeUnloadEvent;
+};
+
+interface BhxBrowser {
+    readonly lastError: DOMException;
+    checkMatchesGlobExpression(pattern: string, value: string): boolean;
+    checkMatchesUriExpression(pattern: string, value: string): boolean;
+    clearLastError(): void;
+    currentWindowId(): number;
+    fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
+    genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;
+    genericSynchronousFunction(functionId: number, parameters?: string): string;
+    getExtensionId(): string;
+    getThisAddress(): any;
+    registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
+    registerGenericListenerHandler(eventHandler: Function): void;
+    setLastError(parameters: string): void;
+    webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;
+}
+
+declare var BhxBrowser: {
+    prototype: BhxBrowser;
+    new(): BhxBrowser;
+};
+
+/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
+interface BiquadFilterNode extends AudioNode {
+    readonly Q: AudioParam;
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    readonly gain: AudioParam;
+    type: BiquadFilterType;
+    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
+}
+
+declare var BiquadFilterNode: {
+    prototype: BiquadFilterNode;
+    new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
+};
+
+/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
+interface Blob {
+    readonly size: number;
+    readonly type: string;
+    arrayBuffer(): Promise;
+    slice(start?: number, end?: number, contentType?: string): Blob;
+    stream(): ReadableStream;
+    text(): Promise;
+}
+
+declare var Blob: {
+    prototype: Blob;
+    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
+};
+
+interface Body {
+    readonly body: ReadableStream | null;
+    readonly bodyUsed: boolean;
+    arrayBuffer(): Promise;
+    blob(): Promise;
+    formData(): Promise;
+    json(): Promise;
+    text(): Promise;
+}
+
+interface BroadcastChannelEventMap {
+    "message": MessageEvent;
+    "messageerror": MessageEvent;
+}
+
+interface BroadcastChannel extends EventTarget {
+    /**
+     * Returns the channel name (as passed to the constructor).
+     */
+    readonly name: string;
+    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
+    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
+    /**
+     * Closes the BroadcastChannel object, opening it up to garbage collection.
+     */
+    close(): void;
+    /**
+     * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
+     */
+    postMessage(message: any): void;
+    addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var BroadcastChannel: {
+    prototype: BroadcastChannel;
+    new(name: string): BroadcastChannel;
+};
+
+/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
+interface ByteLengthQueuingStrategy extends QueuingStrategy {
+    readonly highWaterMark: number;
+    readonly size: QueuingStrategySize;
+}
+
+declare var ByteLengthQueuingStrategy: {
+    prototype: ByteLengthQueuingStrategy;
+    new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
+};
+
+/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */
+interface CDATASection extends Text {
+}
+
+declare var CDATASection: {
+    prototype: CDATASection;
+    new(): CDATASection;
+};
+
+/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
+interface CSSConditionRule extends CSSGroupingRule {
+    conditionText: string;
+}
+
+declare var CSSConditionRule: {
+    prototype: CSSConditionRule;
+    new(): CSSConditionRule;
+};
+
+interface CSSFontFaceRule extends CSSRule {
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSFontFaceRule: {
+    prototype: CSSFontFaceRule;
+    new(): CSSFontFaceRule;
+};
+
+/** Any CSS at-rule that contains other rules nested within it. */
+interface CSSGroupingRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    deleteRule(index: number): void;
+    insertRule(rule: string, index?: number): number;
+}
+
+declare var CSSGroupingRule: {
+    prototype: CSSGroupingRule;
+    new(): CSSGroupingRule;
+};
+
+interface CSSImportRule extends CSSRule {
+    readonly href: string;
+    readonly media: MediaList;
+    readonly styleSheet: CSSStyleSheet;
+}
+
+declare var CSSImportRule: {
+    prototype: CSSImportRule;
+    new(): CSSImportRule;
+};
+
+/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
+interface CSSKeyframeRule extends CSSRule {
+    keyText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSKeyframeRule: {
+    prototype: CSSKeyframeRule;
+    new(): CSSKeyframeRule;
+};
+
+/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
+interface CSSKeyframesRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    name: string;
+    appendRule(rule: string): void;
+    deleteRule(select: string): void;
+    findRule(select: string): CSSKeyframeRule | null;
+}
+
+declare var CSSKeyframesRule: {
+    prototype: CSSKeyframesRule;
+    new(): CSSKeyframesRule;
+};
+
+/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
+interface CSSMediaRule extends CSSConditionRule {
+    readonly media: MediaList;
+}
+
+declare var CSSMediaRule: {
+    prototype: CSSMediaRule;
+    new(): CSSMediaRule;
+};
+
+/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
+interface CSSNamespaceRule extends CSSRule {
+    readonly namespaceURI: string;
+    readonly prefix: string;
+}
+
+declare var CSSNamespaceRule: {
+    prototype: CSSNamespaceRule;
+    new(): CSSNamespaceRule;
+};
+
+/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
+interface CSSPageRule extends CSSGroupingRule {
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSPageRule: {
+    prototype: CSSPageRule;
+    new(): CSSPageRule;
+};
+
+/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
+interface CSSRule {
+    cssText: string;
+    readonly parentRule: CSSRule | null;
+    readonly parentStyleSheet: CSSStyleSheet | null;
+    readonly type: number;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+}
+
+declare var CSSRule: {
+    prototype: CSSRule;
+    new(): CSSRule;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+};
+
+/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
+interface CSSRuleList {
+    readonly length: number;
+    item(index: number): CSSRule | null;
+    [index: number]: CSSRule;
+}
+
+declare var CSSRuleList: {
+    prototype: CSSRuleList;
+    new(): CSSRuleList;
+};
+
+/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
+interface CSSStyleDeclaration {
+    alignContent: string;
+    alignItems: string;
+    alignSelf: string;
+    alignmentBaseline: string;
+    all: string;
+    animation: string;
+    animationDelay: string;
+    animationDirection: string;
+    animationDuration: string;
+    animationFillMode: string;
+    animationIterationCount: string;
+    animationName: string;
+    animationPlayState: string;
+    animationTimingFunction: string;
+    backfaceVisibility: string;
+    background: string;
+    backgroundAttachment: string;
+    backgroundClip: string;
+    backgroundColor: string;
+    backgroundImage: string;
+    backgroundOrigin: string;
+    backgroundPosition: string;
+    backgroundPositionX: string;
+    backgroundPositionY: string;
+    backgroundRepeat: string;
+    backgroundSize: string;
+    baselineShift: string;
+    blockSize: string;
+    border: string;
+    borderBlockEnd: string;
+    borderBlockEndColor: string;
+    borderBlockEndStyle: string;
+    borderBlockEndWidth: string;
+    borderBlockStart: string;
+    borderBlockStartColor: string;
+    borderBlockStartStyle: string;
+    borderBlockStartWidth: string;
+    borderBottom: string;
+    borderBottomColor: string;
+    borderBottomLeftRadius: string;
+    borderBottomRightRadius: string;
+    borderBottomStyle: string;
+    borderBottomWidth: string;
+    borderCollapse: string;
+    borderColor: string;
+    borderImage: string;
+    borderImageOutset: string;
+    borderImageRepeat: string;
+    borderImageSlice: string;
+    borderImageSource: string;
+    borderImageWidth: string;
+    borderInlineEnd: string;
+    borderInlineEndColor: string;
+    borderInlineEndStyle: string;
+    borderInlineEndWidth: string;
+    borderInlineStart: string;
+    borderInlineStartColor: string;
+    borderInlineStartStyle: string;
+    borderInlineStartWidth: string;
+    borderLeft: string;
+    borderLeftColor: string;
+    borderLeftStyle: string;
+    borderLeftWidth: string;
+    borderRadius: string;
+    borderRight: string;
+    borderRightColor: string;
+    borderRightStyle: string;
+    borderRightWidth: string;
+    borderSpacing: string;
+    borderStyle: string;
+    borderTop: string;
+    borderTopColor: string;
+    borderTopLeftRadius: string;
+    borderTopRightRadius: string;
+    borderTopStyle: string;
+    borderTopWidth: string;
+    borderWidth: string;
+    bottom: string;
+    boxShadow: string;
+    boxSizing: string;
+    breakAfter: string;
+    breakBefore: string;
+    breakInside: string;
+    captionSide: string;
+    caretColor: string;
+    clear: string;
+    clip: string;
+    clipPath: string;
+    clipRule: string;
+    color: string;
+    colorInterpolation: string;
+    colorInterpolationFilters: string;
+    columnCount: string;
+    columnFill: string;
+    columnGap: string;
+    columnRule: string;
+    columnRuleColor: string;
+    columnRuleStyle: string;
+    columnRuleWidth: string;
+    columnSpan: string;
+    columnWidth: string;
+    columns: string;
+    content: string;
+    counterIncrement: string;
+    counterReset: string;
+    cssFloat: string;
+    cssText: string;
+    cursor: string;
+    direction: string;
+    display: string;
+    dominantBaseline: string;
+    emptyCells: string;
+    fill: string;
+    fillOpacity: string;
+    fillRule: string;
+    filter: string;
+    flex: string;
+    flexBasis: string;
+    flexDirection: string;
+    flexFlow: string;
+    flexGrow: string;
+    flexShrink: string;
+    flexWrap: string;
+    float: string;
+    floodColor: string;
+    floodOpacity: string;
+    font: string;
+    fontFamily: string;
+    fontFeatureSettings: string;
+    fontKerning: string;
+    fontSize: string;
+    fontSizeAdjust: string;
+    fontStretch: string;
+    fontStyle: string;
+    fontSynthesis: string;
+    fontVariant: string;
+    fontVariantCaps: string;
+    fontVariantEastAsian: string;
+    fontVariantLigatures: string;
+    fontVariantNumeric: string;
+    fontVariantPosition: string;
+    fontWeight: string;
+    gap: string;
+    glyphOrientationVertical: string;
+    grid: string;
+    gridArea: string;
+    gridAutoColumns: string;
+    gridAutoFlow: string;
+    gridAutoRows: string;
+    gridColumn: string;
+    gridColumnEnd: string;
+    gridColumnGap: string;
+    gridColumnStart: string;
+    gridGap: string;
+    gridRow: string;
+    gridRowEnd: string;
+    gridRowGap: string;
+    gridRowStart: string;
+    gridTemplate: string;
+    gridTemplateAreas: string;
+    gridTemplateColumns: string;
+    gridTemplateRows: string;
+    height: string;
+    hyphens: string;
+    imageOrientation: string;
+    imageRendering: string;
+    inlineSize: string;
+    justifyContent: string;
+    justifyItems: string;
+    justifySelf: string;
+    left: string;
+    readonly length: number;
+    letterSpacing: string;
+    lightingColor: string;
+    lineBreak: string;
+    lineHeight: string;
+    listStyle: string;
+    listStyleImage: string;
+    listStylePosition: string;
+    listStyleType: string;
+    margin: string;
+    marginBlockEnd: string;
+    marginBlockStart: string;
+    marginBottom: string;
+    marginInlineEnd: string;
+    marginInlineStart: string;
+    marginLeft: string;
+    marginRight: string;
+    marginTop: string;
+    marker: string;
+    markerEnd: string;
+    markerMid: string;
+    markerStart: string;
+    mask: string;
+    maskComposite: string;
+    maskImage: string;
+    maskPosition: string;
+    maskRepeat: string;
+    maskSize: string;
+    maskType: string;
+    maxBlockSize: string;
+    maxHeight: string;
+    maxInlineSize: string;
+    maxWidth: string;
+    minBlockSize: string;
+    minHeight: string;
+    minInlineSize: string;
+    minWidth: string;
+    objectFit: string;
+    objectPosition: string;
+    opacity: string;
+    order: string;
+    orphans: string;
+    outline: string;
+    outlineColor: string;
+    outlineOffset: string;
+    outlineStyle: string;
+    outlineWidth: string;
+    overflow: string;
+    overflowAnchor: string;
+    overflowWrap: string;
+    overflowX: string;
+    overflowY: string;
+    overscrollBehavior: string;
+    overscrollBehaviorBlock: string;
+    overscrollBehaviorInline: string;
+    overscrollBehaviorX: string;
+    overscrollBehaviorY: string;
+    padding: string;
+    paddingBlockEnd: string;
+    paddingBlockStart: string;
+    paddingBottom: string;
+    paddingInlineEnd: string;
+    paddingInlineStart: string;
+    paddingLeft: string;
+    paddingRight: string;
+    paddingTop: string;
+    pageBreakAfter: string;
+    pageBreakBefore: string;
+    pageBreakInside: string;
+    paintOrder: string;
+    readonly parentRule: CSSRule | null;
+    perspective: string;
+    perspectiveOrigin: string;
+    placeContent: string;
+    placeItems: string;
+    placeSelf: string;
+    pointerEvents: string;
+    position: string;
+    quotes: string;
+    resize: string;
+    right: string;
+    rotate: string;
+    rowGap: string;
+    rubyAlign: string;
+    rubyPosition: string;
+    scale: string;
+    scrollBehavior: string;
+    shapeRendering: string;
+    stopColor: string;
+    stopOpacity: string;
+    stroke: string;
+    strokeDasharray: string;
+    strokeDashoffset: string;
+    strokeLinecap: string;
+    strokeLinejoin: string;
+    strokeMiterlimit: string;
+    strokeOpacity: string;
+    strokeWidth: string;
+    tabSize: string;
+    tableLayout: string;
+    textAlign: string;
+    textAlignLast: string;
+    textAnchor: string;
+    textCombineUpright: string;
+    textDecoration: string;
+    textDecorationColor: string;
+    textDecorationLine: string;
+    textDecorationStyle: string;
+    textEmphasis: string;
+    textEmphasisColor: string;
+    textEmphasisPosition: string;
+    textEmphasisStyle: string;
+    textIndent: string;
+    textJustify: string;
+    textOrientation: string;
+    textOverflow: string;
+    textRendering: string;
+    textShadow: string;
+    textTransform: string;
+    textUnderlinePosition: string;
+    top: string;
+    touchAction: string;
+    transform: string;
+    transformBox: string;
+    transformOrigin: string;
+    transformStyle: string;
+    transition: string;
+    transitionDelay: string;
+    transitionDuration: string;
+    transitionProperty: string;
+    transitionTimingFunction: string;
+    translate: string;
+    unicodeBidi: string;
+    userSelect: string;
+    verticalAlign: string;
+    visibility: string;
+    /** @deprecated */
+    webkitAlignContent: string;
+    /** @deprecated */
+    webkitAlignItems: string;
+    /** @deprecated */
+    webkitAlignSelf: string;
+    /** @deprecated */
+    webkitAnimation: string;
+    /** @deprecated */
+    webkitAnimationDelay: string;
+    /** @deprecated */
+    webkitAnimationDirection: string;
+    /** @deprecated */
+    webkitAnimationDuration: string;
+    /** @deprecated */
+    webkitAnimationFillMode: string;
+    /** @deprecated */
+    webkitAnimationIterationCount: string;
+    /** @deprecated */
+    webkitAnimationName: string;
+    /** @deprecated */
+    webkitAnimationPlayState: string;
+    /** @deprecated */
+    webkitAnimationTimingFunction: string;
+    /** @deprecated */
+    webkitAppearance: string;
+    /** @deprecated */
+    webkitBackfaceVisibility: string;
+    /** @deprecated */
+    webkitBackgroundClip: string;
+    /** @deprecated */
+    webkitBackgroundOrigin: string;
+    /** @deprecated */
+    webkitBackgroundSize: string;
+    /** @deprecated */
+    webkitBorderBottomLeftRadius: string;
+    /** @deprecated */
+    webkitBorderBottomRightRadius: string;
+    /** @deprecated */
+    webkitBorderRadius: string;
+    /** @deprecated */
+    webkitBorderTopLeftRadius: string;
+    /** @deprecated */
+    webkitBorderTopRightRadius: string;
+    /** @deprecated */
+    webkitBoxAlign: string;
+    /** @deprecated */
+    webkitBoxFlex: string;
+    /** @deprecated */
+    webkitBoxOrdinalGroup: string;
+    /** @deprecated */
+    webkitBoxOrient: string;
+    /** @deprecated */
+    webkitBoxPack: string;
+    /** @deprecated */
+    webkitBoxShadow: string;
+    /** @deprecated */
+    webkitBoxSizing: string;
+    /** @deprecated */
+    webkitFilter: string;
+    /** @deprecated */
+    webkitFlex: string;
+    /** @deprecated */
+    webkitFlexBasis: string;
+    /** @deprecated */
+    webkitFlexDirection: string;
+    /** @deprecated */
+    webkitFlexFlow: string;
+    /** @deprecated */
+    webkitFlexGrow: string;
+    /** @deprecated */
+    webkitFlexShrink: string;
+    /** @deprecated */
+    webkitFlexWrap: string;
+    /** @deprecated */
+    webkitJustifyContent: string;
+    webkitLineClamp: string;
+    /** @deprecated */
+    webkitMask: string;
+    /** @deprecated */
+    webkitMaskBoxImage: string;
+    /** @deprecated */
+    webkitMaskBoxImageOutset: string;
+    /** @deprecated */
+    webkitMaskBoxImageRepeat: string;
+    /** @deprecated */
+    webkitMaskBoxImageSlice: string;
+    /** @deprecated */
+    webkitMaskBoxImageSource: string;
+    /** @deprecated */
+    webkitMaskBoxImageWidth: string;
+    /** @deprecated */
+    webkitMaskClip: string;
+    /** @deprecated */
+    webkitMaskComposite: string;
+    /** @deprecated */
+    webkitMaskImage: string;
+    /** @deprecated */
+    webkitMaskOrigin: string;
+    /** @deprecated */
+    webkitMaskPosition: string;
+    /** @deprecated */
+    webkitMaskRepeat: string;
+    /** @deprecated */
+    webkitMaskSize: string;
+    /** @deprecated */
+    webkitOrder: string;
+    /** @deprecated */
+    webkitPerspective: string;
+    /** @deprecated */
+    webkitPerspectiveOrigin: string;
+    webkitTapHighlightColor: string;
+    /** @deprecated */
+    webkitTextFillColor: string;
+    /** @deprecated */
+    webkitTextSizeAdjust: string;
+    /** @deprecated */
+    webkitTextStroke: string;
+    /** @deprecated */
+    webkitTextStrokeColor: string;
+    /** @deprecated */
+    webkitTextStrokeWidth: string;
+    /** @deprecated */
+    webkitTransform: string;
+    /** @deprecated */
+    webkitTransformOrigin: string;
+    /** @deprecated */
+    webkitTransformStyle: string;
+    /** @deprecated */
+    webkitTransition: string;
+    /** @deprecated */
+    webkitTransitionDelay: string;
+    /** @deprecated */
+    webkitTransitionDuration: string;
+    /** @deprecated */
+    webkitTransitionProperty: string;
+    /** @deprecated */
+    webkitTransitionTimingFunction: string;
+    /** @deprecated */
+    webkitUserSelect: string;
+    whiteSpace: string;
+    widows: string;
+    width: string;
+    willChange: string;
+    wordBreak: string;
+    wordSpacing: string;
+    wordWrap: string;
+    writingMode: string;
+    zIndex: string;
+    /** @deprecated */
+    zoom: string;
+    getPropertyPriority(property: string): string;
+    getPropertyValue(property: string): string;
+    item(index: number): string;
+    removeProperty(property: string): string;
+    setProperty(property: string, value: string | null, priority?: string): void;
+    [index: number]: string;
+}
+
+declare var CSSStyleDeclaration: {
+    prototype: CSSStyleDeclaration;
+    new(): CSSStyleDeclaration;
+};
+
+/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
+interface CSSStyleRule extends CSSRule {
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSStyleRule: {
+    prototype: CSSStyleRule;
+    new(): CSSStyleRule;
+};
+
+/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
+interface CSSStyleSheet extends StyleSheet {
+    readonly cssRules: CSSRuleList;
+    readonly ownerRule: CSSRule | null;
+    readonly rules: CSSRuleList;
+    addRule(selector?: string, style?: string, index?: number): number;
+    deleteRule(index: number): void;
+    insertRule(rule: string, index?: number): number;
+    removeRule(index?: number): void;
+}
+
+declare var CSSStyleSheet: {
+    prototype: CSSStyleSheet;
+    new(): CSSStyleSheet;
+};
+
+/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
+interface CSSSupportsRule extends CSSConditionRule {
+}
+
+declare var CSSSupportsRule: {
+    prototype: CSSSupportsRule;
+    new(): CSSSupportsRule;
+};
+
+/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
+interface Cache {
+    add(request: RequestInfo): Promise;
+    addAll(requests: RequestInfo[]): Promise;
+    delete(request: RequestInfo, options?: CacheQueryOptions): Promise;
+    keys(request?: RequestInfo, options?: CacheQueryOptions): Promise>;
+    match(request: RequestInfo, options?: CacheQueryOptions): Promise;
+    matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise>;
+    put(request: RequestInfo, response: Response): Promise;
+}
+
+declare var Cache: {
+    prototype: Cache;
+    new(): Cache;
+};
+
+/** The storage for Cache objects. */
+interface CacheStorage {
+    delete(cacheName: string): Promise;
+    has(cacheName: string): Promise;
+    keys(): Promise;
+    match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise;
+    open(cacheName: string): Promise;
+}
+
+declare var CacheStorage: {
+    prototype: CacheStorage;
+    new(): CacheStorage;
+};
+
+interface CanvasCompositing {
+    globalAlpha: number;
+    globalCompositeOperation: string;
+}
+
+interface CanvasDrawImage {
+    drawImage(image: CanvasImageSource, dx: number, dy: number): void;
+    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
+    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
+}
+
+interface CanvasDrawPath {
+    beginPath(): void;
+    clip(fillRule?: CanvasFillRule): void;
+    clip(path: Path2D, fillRule?: CanvasFillRule): void;
+    fill(fillRule?: CanvasFillRule): void;
+    fill(path: Path2D, fillRule?: CanvasFillRule): void;
+    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
+    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
+    isPointInStroke(x: number, y: number): boolean;
+    isPointInStroke(path: Path2D, x: number, y: number): boolean;
+    stroke(): void;
+    stroke(path: Path2D): void;
+}
+
+interface CanvasFillStrokeStyles {
+    fillStyle: string | CanvasGradient | CanvasPattern;
+    strokeStyle: string | CanvasGradient | CanvasPattern;
+    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
+    createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
+    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
+}
+
+interface CanvasFilters {
+    filter: string;
+}
+
+/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
+interface CanvasGradient {
+    /**
+     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
+     * 
+     * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
+     */
+    addColorStop(offset: number, color: string): void;
+}
+
+declare var CanvasGradient: {
+    prototype: CanvasGradient;
+    new(): CanvasGradient;
+};
+
+interface CanvasImageData {
+    createImageData(sw: number, sh: number): ImageData;
+    createImageData(imagedata: ImageData): ImageData;
+    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+    putImageData(imagedata: ImageData, dx: number, dy: number): void;
+    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
+}
+
+interface CanvasImageSmoothing {
+    imageSmoothingEnabled: boolean;
+    imageSmoothingQuality: ImageSmoothingQuality;
+}
+
+interface CanvasPath {
+    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
+    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
+    closePath(): void;
+    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+    lineTo(x: number, y: number): void;
+    moveTo(x: number, y: number): void;
+    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+    rect(x: number, y: number, w: number, h: number): void;
+}
+
+interface CanvasPathDrawingStyles {
+    lineCap: CanvasLineCap;
+    lineDashOffset: number;
+    lineJoin: CanvasLineJoin;
+    lineWidth: number;
+    miterLimit: number;
+    getLineDash(): number[];
+    setLineDash(segments: number[]): void;
+}
+
+/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
+interface CanvasPattern {
+    /**
+     * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
+     */
+    setTransform(transform?: DOMMatrix2DInit): void;
+}
+
+declare var CanvasPattern: {
+    prototype: CanvasPattern;
+    new(): CanvasPattern;
+};
+
+interface CanvasRect {
+    clearRect(x: number, y: number, w: number, h: number): void;
+    fillRect(x: number, y: number, w: number, h: number): void;
+    strokeRect(x: number, y: number, w: number, h: number): void;
+}
+
+/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a  element. It is used for drawing shapes, text, images, and other objects. */
+interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
+    readonly canvas: HTMLCanvasElement;
+}
+
+declare var CanvasRenderingContext2D: {
+    prototype: CanvasRenderingContext2D;
+    new(): CanvasRenderingContext2D;
+};
+
+interface CanvasShadowStyles {
+    shadowBlur: number;
+    shadowColor: string;
+    shadowOffsetX: number;
+    shadowOffsetY: number;
+}
+
+interface CanvasState {
+    restore(): void;
+    save(): void;
+}
+
+interface CanvasText {
+    fillText(text: string, x: number, y: number, maxWidth?: number): void;
+    measureText(text: string): TextMetrics;
+    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
+}
+
+interface CanvasTextDrawingStyles {
+    direction: CanvasDirection;
+    font: string;
+    textAlign: CanvasTextAlign;
+    textBaseline: CanvasTextBaseline;
+}
+
+interface CanvasTransform {
+    getTransform(): DOMMatrix;
+    resetTransform(): void;
+    rotate(angle: number): void;
+    scale(x: number, y: number): void;
+    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
+    setTransform(transform?: DOMMatrix2DInit): void;
+    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
+    translate(x: number, y: number): void;
+}
+
+interface CanvasUserInterface {
+    drawFocusIfNeeded(element: Element): void;
+    drawFocusIfNeeded(path: Path2D, element: Element): void;
+    scrollPathIntoView(): void;
+    scrollPathIntoView(path: Path2D): void;
+}
+
+interface CaretPosition {
+    readonly offset: number;
+    readonly offsetNode: Node;
+    getClientRect(): DOMRect | null;
+}
+
+declare var CaretPosition: {
+    prototype: CaretPosition;
+    new(): CaretPosition;
+};
+
+/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
+interface ChannelMergerNode extends AudioNode {
+}
+
+declare var ChannelMergerNode: {
+    prototype: ChannelMergerNode;
+    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
+};
+
+/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
+interface ChannelSplitterNode extends AudioNode {
+}
+
+declare var ChannelSplitterNode: {
+    prototype: ChannelSplitterNode;
+    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
+};
+
+/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
+interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
+    data: string;
+    readonly length: number;
+    readonly ownerDocument: Document;
+    appendData(data: string): void;
+    deleteData(offset: number, count: number): void;
+    insertData(offset: number, data: string): void;
+    replaceData(offset: number, count: number, data: string): void;
+    substringData(offset: number, count: number): string;
+}
+
+declare var CharacterData: {
+    prototype: CharacterData;
+    new(): CharacterData;
+};
+
+interface ChildNode extends Node {
+    /**
+     * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
+     * 
+     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+     */
+    after(...nodes: (Node | string)[]): void;
+    /**
+     * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
+     * 
+     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+     */
+    before(...nodes: (Node | string)[]): void;
+    /**
+     * Removes node.
+     */
+    remove(): void;
+    /**
+     * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
+     * 
+     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+     */
+    replaceWith(...nodes: (Node | string)[]): void;
+}
+
+interface ClientRect {
+    bottom: number;
+    readonly height: number;
+    left: number;
+    right: number;
+    top: number;
+    readonly width: number;
+}
+
+declare var ClientRect: {
+    prototype: ClientRect;
+    new(): ClientRect;
+};
+
+interface ClientRectList {
+    readonly length: number;
+    item(index: number): ClientRect;
+    [index: number]: ClientRect;
+}
+
+declare var ClientRectList: {
+    prototype: ClientRectList;
+    new(): ClientRectList;
+};
+
+interface Clipboard extends EventTarget {
+    readText(): Promise;
+    writeText(data: string): Promise;
+}
+
+declare var Clipboard: {
+    prototype: Clipboard;
+    new(): Clipboard;
+};
+
+/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
+interface ClipboardEvent extends Event {
+    readonly clipboardData: DataTransfer | null;
+}
+
+declare var ClipboardEvent: {
+    prototype: ClipboardEvent;
+    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+};
+
+/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
+interface CloseEvent extends Event {
+    /**
+     * Returns the WebSocket connection close code provided by the server.
+     */
+    readonly code: number;
+    /**
+     * Returns the WebSocket connection close reason provided by the server.
+     */
+    readonly reason: string;
+    /**
+     * Returns true if the connection closed cleanly; false otherwise.
+     */
+    readonly wasClean: boolean;
+}
+
+declare var CloseEvent: {
+    prototype: CloseEvent;
+    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
+};
+
+/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
+interface Comment extends CharacterData {
+}
+
+declare var Comment: {
+    prototype: Comment;
+    new(data?: string): Comment;
+};
+
+/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
+interface CompositionEvent extends UIEvent {
+    readonly data: string;
+}
+
+declare var CompositionEvent: {
+    prototype: CompositionEvent;
+    new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
+};
+
+interface ConcatParams extends Algorithm {
+    algorithmId: Uint8Array;
+    hash?: string | Algorithm;
+    partyUInfo: Uint8Array;
+    partyVInfo: Uint8Array;
+    privateInfo?: Uint8Array;
+    publicInfo?: Uint8Array;
+}
+
+interface ConstantSourceNode extends AudioScheduledSourceNode {
+    readonly offset: AudioParam;
+    addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var ConstantSourceNode: {
+    prototype: ConstantSourceNode;
+    new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
+};
+
+/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
+interface ConvolverNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    normalize: boolean;
+}
+
+declare var ConvolverNode: {
+    prototype: ConvolverNode;
+    new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
+};
+
+/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
+interface CountQueuingStrategy extends QueuingStrategy {
+    readonly highWaterMark: number;
+    readonly size: QueuingStrategySize;
+}
+
+declare var CountQueuingStrategy: {
+    prototype: CountQueuingStrategy;
+    new(init: QueuingStrategyInit): CountQueuingStrategy;
+};
+
+interface Credential {
+    readonly id: string;
+    readonly type: string;
+}
+
+declare var Credential: {
+    prototype: Credential;
+    new(): Credential;
+};
+
+interface CredentialsContainer {
+    create(options?: CredentialCreationOptions): Promise;
+    get(options?: CredentialRequestOptions): Promise;
+    preventSilentAccess(): Promise;
+    store(credential: Credential): Promise;
+}
+
+declare var CredentialsContainer: {
+    prototype: CredentialsContainer;
+    new(): CredentialsContainer;
+};
+
+/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
+interface Crypto {
+    readonly subtle: SubtleCrypto;
+    getRandomValues(array: T): T;
+}
+
+declare var Crypto: {
+    prototype: Crypto;
+    new(): Crypto;
+};
+
+/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
+interface CryptoKey {
+    readonly algorithm: KeyAlgorithm;
+    readonly extractable: boolean;
+    readonly type: KeyType;
+    readonly usages: KeyUsage[];
+}
+
+declare var CryptoKey: {
+    prototype: CryptoKey;
+    new(): CryptoKey;
+};
+
+/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */
+interface CryptoKeyPair {
+    privateKey: CryptoKey;
+    publicKey: CryptoKey;
+}
+
+declare var CryptoKeyPair: {
+    prototype: CryptoKeyPair;
+    new(): CryptoKeyPair;
+};
+
+interface CustomElementRegistry {
+    define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
+    get(name: string): any;
+    upgrade(root: Node): void;
+    whenDefined(name: string): Promise;
+}
+
+declare var CustomElementRegistry: {
+    prototype: CustomElementRegistry;
+    new(): CustomElementRegistry;
+};
+
+interface CustomEvent extends Event {
+    /**
+     * Returns any custom data event was created with. Typically used for synthetic events.
+     */
+    readonly detail: T;
+    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;
+}
+
+declare var CustomEvent: {
+    prototype: CustomEvent;
+    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
+};
+
+/** An error object that contains an error name. */
+interface DOMError {
+    readonly name: string;
+    toString(): string;
+}
+
+declare var DOMError: {
+    prototype: DOMError;
+    new(): DOMError;
+};
+
+/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
+interface DOMException {
+    readonly code: number;
+    readonly message: string;
+    readonly name: string;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+declare var DOMException: {
+    prototype: DOMException;
+    new(message?: string, name?: string): DOMException;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+};
+
+/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
+interface DOMImplementation {
+    createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
+    createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
+    createHTMLDocument(title?: string): Document;
+    /** @deprecated */
+    hasFeature(...args: any[]): true;
+}
+
+declare var DOMImplementation: {
+    prototype: DOMImplementation;
+    new(): DOMImplementation;
+};
+
+interface DOML2DeprecatedColorProperty {
+    color: string;
+}
+
+interface DOMMatrix extends DOMMatrixReadOnly {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    m11: number;
+    m12: number;
+    m13: number;
+    m14: number;
+    m21: number;
+    m22: number;
+    m23: number;
+    m24: number;
+    m31: number;
+    m32: number;
+    m33: number;
+    m34: number;
+    m41: number;
+    m42: number;
+    m43: number;
+    m44: number;
+    invertSelf(): DOMMatrix;
+    multiplySelf(other?: DOMMatrixInit): DOMMatrix;
+    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
+    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
+    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
+    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
+    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
+    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
+    setMatrixValue(transformList: string): DOMMatrix;
+    skewXSelf(sx?: number): DOMMatrix;
+    skewYSelf(sy?: number): DOMMatrix;
+    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
+}
+
+declare var DOMMatrix: {
+    prototype: DOMMatrix;
+    new(init?: string | number[]): DOMMatrix;
+    fromFloat32Array(array32: Float32Array): DOMMatrix;
+    fromFloat64Array(array64: Float64Array): DOMMatrix;
+    fromMatrix(other?: DOMMatrixInit): DOMMatrix;
+};
+
+type SVGMatrix = DOMMatrix;
+declare var SVGMatrix: typeof DOMMatrix;
+
+type WebKitCSSMatrix = DOMMatrix;
+declare var WebKitCSSMatrix: typeof DOMMatrix;
+
+interface DOMMatrixReadOnly {
+    readonly a: number;
+    readonly b: number;
+    readonly c: number;
+    readonly d: number;
+    readonly e: number;
+    readonly f: number;
+    readonly is2D: boolean;
+    readonly isIdentity: boolean;
+    readonly m11: number;
+    readonly m12: number;
+    readonly m13: number;
+    readonly m14: number;
+    readonly m21: number;
+    readonly m22: number;
+    readonly m23: number;
+    readonly m24: number;
+    readonly m31: number;
+    readonly m32: number;
+    readonly m33: number;
+    readonly m34: number;
+    readonly m41: number;
+    readonly m42: number;
+    readonly m43: number;
+    readonly m44: number;
+    flipX(): DOMMatrix;
+    flipY(): DOMMatrix;
+    inverse(): DOMMatrix;
+    multiply(other?: DOMMatrixInit): DOMMatrix;
+    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
+    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
+    rotateFromVector(x?: number, y?: number): DOMMatrix;
+    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
+    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
+    /** @deprecated */
+    scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
+    skewX(sx?: number): DOMMatrix;
+    skewY(sy?: number): DOMMatrix;
+    toFloat32Array(): Float32Array;
+    toFloat64Array(): Float64Array;
+    toJSON(): any;
+    transformPoint(point?: DOMPointInit): DOMPoint;
+    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
+    toString(): string;
+}
+
+declare var DOMMatrixReadOnly: {
+    prototype: DOMMatrixReadOnly;
+    new(init?: string | number[]): DOMMatrixReadOnly;
+    fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
+    fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
+    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
+    toString(): string;
+};
+
+/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
+interface DOMParser {
+    /**
+     * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
+     * 
+     * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
+     * 
+     * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
+     * 
+     * Values other than the above for type will cause a TypeError exception to be thrown.
+     */
+    parseFromString(string: string, type: DOMParserSupportedType): Document;
+}
+
+declare var DOMParser: {
+    prototype: DOMParser;
+    new(): DOMParser;
+};
+
+interface DOMPoint extends DOMPointReadOnly {
+    w: number;
+    x: number;
+    y: number;
+    z: number;
+}
+
+declare var DOMPoint: {
+    prototype: DOMPoint;
+    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
+    fromPoint(other?: DOMPointInit): DOMPoint;
+};
+
+type SVGPoint = DOMPoint;
+declare var SVGPoint: typeof DOMPoint;
+
+interface DOMPointReadOnly {
+    readonly w: number;
+    readonly x: number;
+    readonly y: number;
+    readonly z: number;
+    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
+    toJSON(): any;
+}
+
+declare var DOMPointReadOnly: {
+    prototype: DOMPointReadOnly;
+    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
+    fromPoint(other?: DOMPointInit): DOMPointReadOnly;
+};
+
+interface DOMQuad {
+    readonly p1: DOMPoint;
+    readonly p2: DOMPoint;
+    readonly p3: DOMPoint;
+    readonly p4: DOMPoint;
+    getBounds(): DOMRect;
+    toJSON(): any;
+}
+
+declare var DOMQuad: {
+    prototype: DOMQuad;
+    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
+    fromQuad(other?: DOMQuadInit): DOMQuad;
+    fromRect(other?: DOMRectInit): DOMQuad;
+};
+
+interface DOMRect extends DOMRectReadOnly {
+    height: number;
+    width: number;
+    x: number;
+    y: number;
+}
+
+declare var DOMRect: {
+    prototype: DOMRect;
+    new(x?: number, y?: number, width?: number, height?: number): DOMRect;
+    fromRect(other?: DOMRectInit): DOMRect;
+};
+
+type SVGRect = DOMRect;
+declare var SVGRect: typeof DOMRect;
+
+interface DOMRectList {
+    readonly length: number;
+    item(index: number): DOMRect | null;
+    [index: number]: DOMRect;
+}
+
+declare var DOMRectList: {
+    prototype: DOMRectList;
+    new(): DOMRectList;
+};
+
+interface DOMRectReadOnly {
+    readonly bottom: number;
+    readonly height: number;
+    readonly left: number;
+    readonly right: number;
+    readonly top: number;
+    readonly width: number;
+    readonly x: number;
+    readonly y: number;
+    toJSON(): any;
+}
+
+declare var DOMRectReadOnly: {
+    prototype: DOMRectReadOnly;
+    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
+    fromRect(other?: DOMRectInit): DOMRectReadOnly;
+};
+
+interface DOMSettableTokenList extends DOMTokenList {
+    value: string;
+}
+
+declare var DOMSettableTokenList: {
+    prototype: DOMSettableTokenList;
+    new(): DOMSettableTokenList;
+};
+
+/** A type returned by some APIs which contains a list of DOMString (strings). */
+interface DOMStringList {
+    /**
+     * Returns the number of strings in strings.
+     */
+    readonly length: number;
+    /**
+     * Returns true if strings contains string, and false otherwise.
+     */
+    contains(string: string): boolean;
+    /**
+     * Returns the string with index index from strings.
+     */
+    item(index: number): string | null;
+    [index: number]: string;
+}
+
+declare var DOMStringList: {
+    prototype: DOMStringList;
+    new(): DOMStringList;
+};
+
+/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */
+interface DOMStringMap {
+    [name: string]: string | undefined;
+}
+
+declare var DOMStringMap: {
+    prototype: DOMStringMap;
+    new(): DOMStringMap;
+};
+
+/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
+interface DOMTokenList {
+    /**
+     * Returns the number of tokens.
+     */
+    readonly length: number;
+    /**
+     * Returns the associated set as string.
+     * 
+     * Can be set, to change the associated attribute.
+     */
+    value: string;
+    toString(): string;
+    /**
+     * Adds all arguments passed, except those already present.
+     * 
+     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
+     * 
+     * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
+     */
+    add(...tokens: string[]): void;
+    /**
+     * Returns true if token is present, and false otherwise.
+     */
+    contains(token: string): boolean;
+    /**
+     * Returns the token with index index.
+     */
+    item(index: number): string | null;
+    /**
+     * Removes arguments passed, if they are present.
+     * 
+     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
+     * 
+     * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
+     */
+    remove(...tokens: string[]): void;
+    /**
+     * Replaces token with newToken.
+     * 
+     * Returns true if token was replaced with newToken, and false otherwise.
+     * 
+     * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
+     * 
+     * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
+     */
+    replace(oldToken: string, newToken: string): void;
+    /**
+     * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
+     * 
+     * Throws a TypeError if the associated attribute has no supported tokens defined.
+     */
+    supports(token: string): boolean;
+    /**
+     * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
+     * 
+     * Returns true if token is now present, and false otherwise.
+     * 
+     * Throws a "SyntaxError" DOMException if token is empty.
+     * 
+     * Throws an "InvalidCharacterError" DOMException if token contains any spaces.
+     */
+    toggle(token: string, force?: boolean): boolean;
+    forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
+    [index: number]: string;
+}
+
+declare var DOMTokenList: {
+    prototype: DOMTokenList;
+    new(): DOMTokenList;
+};
+
+interface DataCue extends TextTrackCue {
+    data: ArrayBuffer;
+    addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var DataCue: {
+    prototype: DataCue;
+    new(): DataCue;
+};
+
+/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
+interface DataTransfer {
+    /**
+     * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
+     * 
+     * Can be set, to change the selected operation.
+     * 
+     * The possible values are "none", "copy", "link", and "move".
+     */
+    dropEffect: "none" | "copy" | "link" | "move";
+    /**
+     * Returns the kinds of operations that are to be allowed.
+     * 
+     * Can be set (during the dragstart event), to change the allowed operations.
+     * 
+     * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
+     */
+    effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
+    /**
+     * Returns a FileList of the files being dragged, if any.
+     */
+    readonly files: FileList;
+    /**
+     * Returns a DataTransferItemList object, with the drag data.
+     */
+    readonly items: DataTransferItemList;
+    /**
+     * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
+     */
+    readonly types: ReadonlyArray;
+    /**
+     * Removes the data of the specified formats. Removes all data if the argument is omitted.
+     */
+    clearData(format?: string): void;
+    /**
+     * Returns the specified data. If there is no such data, returns the empty string.
+     */
+    getData(format: string): string;
+    /**
+     * Adds the specified data.
+     */
+    setData(format: string, data: string): void;
+    /**
+     * Uses the given element to update the drag feedback, replacing any previously specified feedback.
+     */
+    setDragImage(image: Element, x: number, y: number): void;
+}
+
+declare var DataTransfer: {
+    prototype: DataTransfer;
+    new(): DataTransfer;
+};
+
+/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
+interface DataTransferItem {
+    /**
+     * Returns the drag data item kind, one of: "string", "file".
+     */
+    readonly kind: string;
+    /**
+     * Returns the drag data item type string.
+     */
+    readonly type: string;
+    /**
+     * Returns a File object, if the drag data item kind is File.
+     */
+    getAsFile(): File | null;
+    /**
+     * Invokes the callback with the string data as the argument, if the drag data item kind is text.
+     */
+    getAsString(callback: FunctionStringCallback | null): void;
+    webkitGetAsEntry(): any;
+}
+
+declare var DataTransferItem: {
+    prototype: DataTransferItem;
+    new(): DataTransferItem;
+};
+
+/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
+interface DataTransferItemList {
+    /**
+     * Returns the number of items in the drag data store.
+     */
+    readonly length: number;
+    /**
+     * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
+     */
+    add(data: string, type: string): DataTransferItem | null;
+    add(data: File): DataTransferItem | null;
+    /**
+     * Removes all the entries in the drag data store.
+     */
+    clear(): void;
+    item(index: number): DataTransferItem;
+    /**
+     * Removes the indexth entry in the drag data store.
+     */
+    remove(index: number): void;
+    [name: number]: DataTransferItem;
+}
+
+declare var DataTransferItemList: {
+    prototype: DataTransferItemList;
+    new(): DataTransferItemList;
+};
+
+interface DeferredPermissionRequest {
+    readonly id: number;
+    readonly type: MSWebViewPermissionType;
+    readonly uri: string;
+    allow(): void;
+    deny(): void;
+}
+
+declare var DeferredPermissionRequest: {
+    prototype: DeferredPermissionRequest;
+    new(): DeferredPermissionRequest;
+};
+
+/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
+interface DelayNode extends AudioNode {
+    readonly delayTime: AudioParam;
+}
+
+declare var DelayNode: {
+    prototype: DelayNode;
+    new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
+};
+
+/** Provides information about the amount of acceleration the device is experiencing along all three axes. */
+interface DeviceAcceleration {
+    readonly x: number | null;
+    readonly y: number | null;
+    readonly z: number | null;
+}
+
+declare var DeviceAcceleration: {
+    prototype: DeviceAcceleration;
+    new(): DeviceAcceleration;
+};
+
+/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
+interface DeviceLightEvent extends Event {
+    readonly value: number;
+}
+
+declare var DeviceLightEvent: {
+    prototype: DeviceLightEvent;
+    new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
+};
+
+/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
+interface DeviceMotionEvent extends Event {
+    readonly acceleration: DeviceMotionEventAcceleration | null;
+    readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
+    readonly interval: number;
+    readonly rotationRate: DeviceMotionEventRotationRate | null;
+}
+
+declare var DeviceMotionEvent: {
+    prototype: DeviceMotionEvent;
+    new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
+    requestPermission(): Promise;
+};
+
+interface DeviceMotionEventAcceleration {
+    readonly x: number | null;
+    readonly y: number | null;
+    readonly z: number | null;
+}
+
+interface DeviceMotionEventRotationRate {
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */
+interface DeviceOrientationEvent extends Event {
+    readonly absolute: boolean;
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+declare var DeviceOrientationEvent: {
+    prototype: DeviceOrientationEvent;
+    new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
+    requestPermission(): Promise;
+};
+
+/** Provides information about the rate at which the device is rotating around all three axes. */
+interface DeviceRotationRate {
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+declare var DeviceRotationRate: {
+    prototype: DeviceRotationRate;
+    new(): DeviceRotationRate;
+};
+
+interface DhImportKeyParams extends Algorithm {
+    generator: Uint8Array;
+    prime: Uint8Array;
+}
+
+interface DhKeyAlgorithm extends KeyAlgorithm {
+    generator: Uint8Array;
+    prime: Uint8Array;
+}
+
+interface DhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface DhKeyGenParams extends Algorithm {
+    generator: Uint8Array;
+    prime: Uint8Array;
+}
+
+interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
+    "fullscreenchange": Event;
+    "fullscreenerror": Event;
+    "pointerlockchange": Event;
+    "pointerlockerror": Event;
+    "readystatechange": Event;
+    "visibilitychange": Event;
+}
+
+/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
+interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
+    /**
+     * Sets or gets the URL for the current document.
+     */
+    readonly URL: string;
+    /**
+     * Sets or gets the color of all active links in the document.
+     */
+    /** @deprecated */
+    alinkColor: string;
+    /**
+     * Returns a reference to the collection of elements contained by the object.
+     */
+    /** @deprecated */
+    readonly all: HTMLAllCollection;
+    /**
+     * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
+     */
+    /** @deprecated */
+    readonly anchors: HTMLCollectionOf;
+    /**
+     * Retrieves a collection of all applet objects in the document.
+     */
+    /** @deprecated */
+    readonly applets: HTMLCollectionOf;
+    /**
+     * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
+     */
+    /** @deprecated */
+    bgColor: string;
+    /**
+     * Specifies the beginning and end of the document body.
+     */
+    body: HTMLElement;
+    /**
+     * Returns document's encoding.
+     */
+    readonly characterSet: string;
+    /**
+     * Gets or sets the character set used to encode the object.
+     */
+    readonly charset: string;
+    /**
+     * Gets a value that indicates whether standards-compliant mode is switched on for the object.
+     */
+    readonly compatMode: string;
+    /**
+     * Returns document's content type.
+     */
+    readonly contentType: string;
+    /**
+     * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
+     * 
+     * Can be set, to add a new cookie to the element's set of HTTP cookies.
+     * 
+     * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
+     */
+    cookie: string;
+    /**
+     * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
+     * 
+     * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
+     */
+    readonly currentScript: HTMLOrSVGScriptElement | null;
+    readonly defaultView: (WindowProxy & typeof globalThis) | null;
+    /**
+     * Sets or gets a value that indicates whether the document can be edited.
+     */
+    designMode: string;
+    /**
+     * Sets or retrieves a value that indicates the reading order of the object.
+     */
+    dir: string;
+    /**
+     * Gets an object representing the document type declaration associated with the current document.
+     */
+    readonly doctype: DocumentType | null;
+    /**
+     * Gets a reference to the root node of the document.
+     */
+    readonly documentElement: HTMLElement;
+    /**
+     * Returns document's URL.
+     */
+    readonly documentURI: string;
+    /**
+     * Sets or gets the security domain of the document.
+     */
+    domain: string;
+    /**
+     * Retrieves a collection of all embed objects in the document.
+     */
+    readonly embeds: HTMLCollectionOf;
+    /**
+     * Sets or gets the foreground (text) color of the document.
+     */
+    /** @deprecated */
+    fgColor: string;
+    /**
+     * Retrieves a collection, in source order, of all form objects in the document.
+     */
+    readonly forms: HTMLCollectionOf;
+    /** @deprecated */
+    readonly fullscreen: boolean;
+    /**
+     * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
+     */
+    readonly fullscreenEnabled: boolean;
+    /**
+     * Returns the head element.
+     */
+    readonly head: HTMLHeadElement;
+    readonly hidden: boolean;
+    /**
+     * Retrieves a collection, in source order, of img objects in the document.
+     */
+    readonly images: HTMLCollectionOf;
+    /**
+     * Gets the implementation object of the current document.
+     */
+    readonly implementation: DOMImplementation;
+    /**
+     * Returns the character encoding used to create the webpage that is loaded into the document object.
+     */
+    readonly inputEncoding: string;
+    /**
+     * Gets the date that the page was last modified, if the page supplies one.
+     */
+    readonly lastModified: string;
+    /**
+     * Sets or gets the color of the document links.
+     */
+    /** @deprecated */
+    linkColor: string;
+    /**
+     * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
+     */
+    readonly links: HTMLCollectionOf;
+    /**
+     * Contains information about the current URL.
+     */
+    location: Location;
+    onfullscreenchange: ((this: Document, ev: Event) => any) | null;
+    onfullscreenerror: ((this: Document, ev: Event) => any) | null;
+    onpointerlockchange: ((this: Document, ev: Event) => any) | null;
+    onpointerlockerror: ((this: Document, ev: Event) => any) | null;
+    /**
+     * Fires when the state of the object has changed.
+     * @param ev The event
+     */
+    onreadystatechange: ((this: Document, ev: Event) => any) | null;
+    onvisibilitychange: ((this: Document, ev: Event) => any) | null;
+    readonly ownerDocument: null;
+    /**
+     * Return an HTMLCollection of the embed elements in the Document.
+     */
+    readonly plugins: HTMLCollectionOf;
+    /**
+     * Retrieves a value that indicates the current state of the object.
+     */
+    readonly readyState: DocumentReadyState;
+    /**
+     * Gets the URL of the location that referred the user to the current page.
+     */
+    readonly referrer: string;
+    /**
+     * Retrieves a collection of all script objects in the document.
+     */
+    readonly scripts: HTMLCollectionOf;
+    readonly scrollingElement: Element | null;
+    readonly timeline: DocumentTimeline;
+    /**
+     * Contains the title of the document.
+     */
+    title: string;
+    readonly visibilityState: VisibilityState;
+    /**
+     * Sets or gets the color of the links that the user has visited.
+     */
+    /** @deprecated */
+    vlinkColor: string;
+    /**
+     * Moves node from another document and returns it.
+     * 
+     * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
+     */
+    adoptNode(source: T): T;
+    /** @deprecated */
+    captureEvents(): void;
+    caretPositionFromPoint(x: number, y: number): CaretPosition | null;
+    /** @deprecated */
+    caretRangeFromPoint(x: number, y: number): Range;
+    /** @deprecated */
+    clear(): void;
+    /**
+     * Closes an output stream and forces the sent data to display.
+     */
+    close(): void;
+    /**
+     * Creates an attribute object with a specified name.
+     * @param name String that sets the attribute object's name.
+     */
+    createAttribute(localName: string): Attr;
+    createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
+    /**
+     * Returns a CDATASection node whose data is data.
+     */
+    createCDATASection(data: string): CDATASection;
+    /**
+     * Creates a comment object with the specified data.
+     * @param data Sets the comment object's data.
+     */
+    createComment(data: string): Comment;
+    /**
+     * Creates a new document.
+     */
+    createDocumentFragment(): DocumentFragment;
+    /**
+     * Creates an instance of the element for the specified tag.
+     * @param tagName The name of an element.
+     */
+    createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
+    /** @deprecated */
+    createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
+    createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
+    /**
+     * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
+     * 
+     * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
+     * 
+     * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
+     * 
+     * localName does not match the QName production.
+     * Namespace prefix is not null and namespace is the empty string.
+     * Namespace prefix is "xml" and namespace is not the XML namespace.
+     * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
+     * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
+     * 
+     * When supplied, options's is can be used to create a customized built-in element.
+     */
+    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
+    createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
+    createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
+    createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
+    createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
+    createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
+    createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
+    createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
+    createEvent(eventInterface: "CloseEvent"): CloseEvent;
+    createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
+    createEvent(eventInterface: "CustomEvent"): CustomEvent;
+    createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
+    createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
+    createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
+    createEvent(eventInterface: "DragEvent"): DragEvent;
+    createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
+    createEvent(eventInterface: "Event"): Event;
+    createEvent(eventInterface: "Events"): Event;
+    createEvent(eventInterface: "FocusEvent"): FocusEvent;
+    createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
+    createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
+    createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
+    createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
+    createEvent(eventInterface: "InputEvent"): InputEvent;
+    createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
+    createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
+    createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
+    createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
+    createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
+    createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
+    createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
+    createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
+    createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
+    createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
+    createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
+    createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
+    createEvent(eventInterface: "MessageEvent"): MessageEvent;
+    createEvent(eventInterface: "MouseEvent"): MouseEvent;
+    createEvent(eventInterface: "MouseEvents"): MouseEvent;
+    createEvent(eventInterface: "MutationEvent"): MutationEvent;
+    createEvent(eventInterface: "MutationEvents"): MutationEvent;
+    createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
+    createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
+    createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
+    createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
+    createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
+    createEvent(eventInterface: "PointerEvent"): PointerEvent;
+    createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
+    createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
+    createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
+    createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
+    createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
+    createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
+    createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
+    createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
+    createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
+    createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
+    createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
+    createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
+    createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
+    createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
+    createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
+    createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
+    createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
+    createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
+    createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
+    createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
+    createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
+    createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
+    createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
+    createEvent(eventInterface: "StorageEvent"): StorageEvent;
+    createEvent(eventInterface: "TextEvent"): TextEvent;
+    createEvent(eventInterface: "TouchEvent"): TouchEvent;
+    createEvent(eventInterface: "TrackEvent"): TrackEvent;
+    createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
+    createEvent(eventInterface: "UIEvent"): UIEvent;
+    createEvent(eventInterface: "UIEvents"): UIEvent;
+    createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
+    createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
+    createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
+    createEvent(eventInterface: "WheelEvent"): WheelEvent;
+    createEvent(eventInterface: string): Event;
+    /**
+     * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
+     * @param root The root element or node to start traversing on.
+     * @param whatToShow The type of nodes or elements to appear in the node list
+     * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
+     * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
+     */
+    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
+    /**
+     * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
+     */
+    createProcessingInstruction(target: string, data: string): ProcessingInstruction;
+    /**
+     *  Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
+     */
+    createRange(): Range;
+    /**
+     * Creates a text string from the specified value.
+     * @param data String that specifies the nodeValue property of the text node.
+     */
+    createTextNode(data: string): Text;
+    /**
+     * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
+     * @param root The root element or node to start traversing on.
+     * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
+     * @param filter A custom NodeFilter function to use.
+     * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
+     */
+    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
+    /** @deprecated */
+    createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker;
+    /**
+     * Returns the element for the specified x coordinate and the specified y coordinate.
+     * @param x The x-offset
+     * @param y The y-offset
+     */
+    elementFromPoint(x: number, y: number): Element | null;
+    elementsFromPoint(x: number, y: number): Element[];
+    /**
+     * Executes a command on the current document, current selection, or the given range.
+     * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
+     * @param showUI Display the user interface, defaults to false.
+     * @param value Value to assign.
+     */
+    execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
+    /**
+     * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
+     */
+    exitFullscreen(): Promise;
+    exitPointerLock(): void;
+    getAnimations(): Animation[];
+    /**
+     * Returns a reference to the first object with the specified value of the ID attribute.
+     * @param elementId String that specifies the ID value.
+     */
+    getElementById(elementId: string): HTMLElement | null;
+    /**
+     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
+     */
+    getElementsByClassName(classNames: string): HTMLCollectionOf;
+    /**
+     * Gets a collection of objects based on the value of the NAME or ID attribute.
+     * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
+     */
+    getElementsByName(elementName: string): NodeListOf;
+    /**
+     * Retrieves a collection of objects based on the specified element name.
+     * @param name Specifies the name of an element.
+     */
+    getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+    getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+    getElementsByTagName(qualifiedName: string): HTMLCollectionOf;
+    /**
+     * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
+     * 
+     * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
+     * 
+     * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
+     * 
+     * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
+     */
+    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
+    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
+    getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf;
+    /**
+     * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
+     */
+    getSelection(): Selection | null;
+    /**
+     * Gets a value indicating whether the object currently has focus.
+     */
+    hasFocus(): boolean;
+    /**
+     * Returns a copy of node. If deep is true, the copy also includes the node's descendants.
+     * 
+     * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
+     */
+    importNode(importedNode: T, deep: boolean): T;
+    /**
+     * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
+     * @param url Specifies a MIME type for the document.
+     * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
+     * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+     * @param replace Specifies whether the existing entry for the document is replaced in the history list.
+     */
+    open(url?: string, name?: string, features?: string, replace?: boolean): Document;
+    /**
+     * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
+     * @param commandId Specifies a command identifier.
+     */
+    queryCommandEnabled(commandId: string): boolean;
+    /**
+     * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
+     * @param commandId String that specifies a command identifier.
+     */
+    queryCommandIndeterm(commandId: string): boolean;
+    /**
+     * Returns a Boolean value that indicates the current state of the command.
+     * @param commandId String that specifies a command identifier.
+     */
+    queryCommandState(commandId: string): boolean;
+    /**
+     * Returns a Boolean value that indicates whether the current command is supported on the current range.
+     * @param commandId Specifies a command identifier.
+     */
+    queryCommandSupported(commandId: string): boolean;
+    /**
+     * Returns the current value of the document, range, or current selection for the given command.
+     * @param commandId String that specifies a command identifier.
+     */
+    queryCommandValue(commandId: string): string;
+    /** @deprecated */
+    releaseEvents(): void;
+    /**
+     * Writes one or more HTML expressions to a document in the specified window.
+     * @param content Specifies the text and HTML tags to write.
+     */
+    write(...text: string[]): void;
+    /**
+     * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
+     * @param content The text and HTML tags to write.
+     */
+    writeln(...text: string[]): void;
+    addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var Document: {
+    prototype: Document;
+    new(): Document;
+};
+
+interface DocumentAndElementEventHandlersEventMap {
+    "copy": ClipboardEvent;
+    "cut": ClipboardEvent;
+    "paste": ClipboardEvent;
+}
+
+interface DocumentAndElementEventHandlers {
+    oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
+    oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
+    onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
+    addEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+interface DocumentEvent {
+    createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
+    createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
+    createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
+    createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
+    createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
+    createEvent(eventInterface: "CloseEvent"): CloseEvent;
+    createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
+    createEvent(eventInterface: "CustomEvent"): CustomEvent;
+    createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
+    createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
+    createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
+    createEvent(eventInterface: "DragEvent"): DragEvent;
+    createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
+    createEvent(eventInterface: "Event"): Event;
+    createEvent(eventInterface: "Events"): Event;
+    createEvent(eventInterface: "FocusEvent"): FocusEvent;
+    createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
+    createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
+    createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
+    createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
+    createEvent(eventInterface: "InputEvent"): InputEvent;
+    createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
+    createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
+    createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
+    createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
+    createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
+    createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
+    createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
+    createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
+    createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
+    createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
+    createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
+    createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
+    createEvent(eventInterface: "MessageEvent"): MessageEvent;
+    createEvent(eventInterface: "MouseEvent"): MouseEvent;
+    createEvent(eventInterface: "MouseEvents"): MouseEvent;
+    createEvent(eventInterface: "MutationEvent"): MutationEvent;
+    createEvent(eventInterface: "MutationEvents"): MutationEvent;
+    createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
+    createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
+    createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
+    createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
+    createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
+    createEvent(eventInterface: "PointerEvent"): PointerEvent;
+    createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
+    createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
+    createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
+    createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
+    createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
+    createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
+    createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
+    createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
+    createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
+    createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
+    createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
+    createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
+    createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
+    createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
+    createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
+    createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
+    createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
+    createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
+    createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
+    createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
+    createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
+    createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
+    createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
+    createEvent(eventInterface: "StorageEvent"): StorageEvent;
+    createEvent(eventInterface: "TextEvent"): TextEvent;
+    createEvent(eventInterface: "TouchEvent"): TouchEvent;
+    createEvent(eventInterface: "TrackEvent"): TrackEvent;
+    createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
+    createEvent(eventInterface: "UIEvent"): UIEvent;
+    createEvent(eventInterface: "UIEvents"): UIEvent;
+    createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
+    createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
+    createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
+    createEvent(eventInterface: "WheelEvent"): WheelEvent;
+    createEvent(eventInterface: string): Event;
+}
+
+/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
+interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
+    readonly ownerDocument: Document;
+    getElementById(elementId: string): HTMLElement | null;
+}
+
+declare var DocumentFragment: {
+    prototype: DocumentFragment;
+    new(): DocumentFragment;
+};
+
+interface DocumentOrShadowRoot {
+    readonly activeElement: Element | null;
+    /**
+     * Returns document's fullscreen element.
+     */
+    readonly fullscreenElement: Element | null;
+    readonly pointerLockElement: Element | null;
+    /**
+     * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
+     */
+    readonly styleSheets: StyleSheetList;
+    caretPositionFromPoint(x: number, y: number): CaretPosition | null;
+    /** @deprecated */
+    caretRangeFromPoint(x: number, y: number): Range;
+    elementFromPoint(x: number, y: number): Element | null;
+    elementsFromPoint(x: number, y: number): Element[];
+    getSelection(): Selection | null;
+}
+
+interface DocumentTimeline extends AnimationTimeline {
+}
+
+declare var DocumentTimeline: {
+    prototype: DocumentTimeline;
+    new(options?: DocumentTimelineOptions): DocumentTimeline;
+};
+
+/** A Node containing a doctype. */
+interface DocumentType extends Node, ChildNode {
+    readonly name: string;
+    readonly ownerDocument: Document;
+    readonly publicId: string;
+    readonly systemId: string;
+}
+
+declare var DocumentType: {
+    prototype: DocumentType;
+    new(): DocumentType;
+};
+
+/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
+interface DragEvent extends MouseEvent {
+    /**
+     * Returns the DataTransfer object for the event.
+     */
+    readonly dataTransfer: DataTransfer | null;
+}
+
+declare var DragEvent: {
+    prototype: DragEvent;
+    new(type: string, eventInitDict?: DragEventInit): DragEvent;
+};
+
+/** Inherits properties from its parent, AudioNode. */
+interface DynamicsCompressorNode extends AudioNode {
+    readonly attack: AudioParam;
+    readonly knee: AudioParam;
+    readonly ratio: AudioParam;
+    readonly reduction: number;
+    readonly release: AudioParam;
+    readonly threshold: AudioParam;
+}
+
+declare var DynamicsCompressorNode: {
+    prototype: DynamicsCompressorNode;
+    new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
+};
+
+interface EXT_blend_minmax {
+    readonly MAX_EXT: GLenum;
+    readonly MIN_EXT: GLenum;
+}
+
+/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
+interface EXT_frag_depth {
+}
+
+interface EXT_sRGB {
+    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
+    readonly SRGB8_ALPHA8_EXT: GLenum;
+    readonly SRGB_ALPHA_EXT: GLenum;
+    readonly SRGB_EXT: GLenum;
+}
+
+interface EXT_shader_texture_lod {
+}
+
+/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
+interface EXT_texture_filter_anisotropic {
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+}
+
+interface ElementEventMap {
+    "fullscreenchange": Event;
+    "fullscreenerror": Event;
+}
+
+/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
+interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
+    readonly attributes: NamedNodeMap;
+    /**
+     * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
+     */
+    readonly classList: DOMTokenList;
+    /**
+     * Returns the value of element's class content attribute. Can be set to change it.
+     */
+    className: string;
+    readonly clientHeight: number;
+    readonly clientLeft: number;
+    readonly clientTop: number;
+    readonly clientWidth: number;
+    /**
+     * Returns the value of element's id content attribute. Can be set to change it.
+     */
+    id: string;
+    /**
+     * Returns the local name.
+     */
+    readonly localName: string;
+    /**
+     * Returns the namespace.
+     */
+    readonly namespaceURI: string | null;
+    onfullscreenchange: ((this: Element, ev: Event) => any) | null;
+    onfullscreenerror: ((this: Element, ev: Event) => any) | null;
+    outerHTML: string;
+    readonly ownerDocument: Document;
+    /**
+     * Returns the namespace prefix.
+     */
+    readonly prefix: string | null;
+    readonly scrollHeight: number;
+    scrollLeft: number;
+    scrollTop: number;
+    readonly scrollWidth: number;
+    /**
+     * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
+     */
+    readonly shadowRoot: ShadowRoot | null;
+    /**
+     * Returns the value of element's slot content attribute. Can be set to change it.
+     */
+    slot: string;
+    /**
+     * Returns the HTML-uppercased qualified name.
+     */
+    readonly tagName: string;
+    /**
+     * Creates a shadow root for element and returns it.
+     */
+    attachShadow(init: ShadowRootInit): ShadowRoot;
+    /**
+     * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
+     */
+    closest(selector: K): HTMLElementTagNameMap[K] | null;
+    closest(selector: K): SVGElementTagNameMap[K] | null;
+    closest(selector: string): E | null;
+    /**
+     * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
+     */
+    getAttribute(qualifiedName: string): string | null;
+    /**
+     * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
+     */
+    getAttributeNS(namespace: string | null, localName: string): string | null;
+    /**
+     * Returns the qualified names of all element's attributes. Can contain duplicates.
+     */
+    getAttributeNames(): string[];
+    getAttributeNode(qualifiedName: string): Attr | null;
+    getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
+    getBoundingClientRect(): DOMRect;
+    getClientRects(): DOMRectList;
+    /**
+     * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
+     */
+    getElementsByClassName(classNames: string): HTMLCollectionOf;
+    getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+    getElementsByTagName(qualifiedName: K): HTMLCollectionOf;
+    getElementsByTagName(qualifiedName: string): HTMLCollectionOf;
+    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
+    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
+    getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf;
+    /**
+     * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
+     */
+    hasAttribute(qualifiedName: string): boolean;
+    /**
+     * Returns true if element has an attribute whose namespace is namespace and local name is localName.
+     */
+    hasAttributeNS(namespace: string | null, localName: string): boolean;
+    /**
+     * Returns true if element has attributes, and false otherwise.
+     */
+    hasAttributes(): boolean;
+    hasPointerCapture(pointerId: number): boolean;
+    insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;
+    insertAdjacentHTML(where: InsertPosition, html: string): void;
+    insertAdjacentText(where: InsertPosition, text: string): void;
+    /**
+     * Returns true if matching selectors against element's root yields element, and false otherwise.
+     */
+    matches(selectors: string): boolean;
+    msGetRegionContent(): any;
+    releasePointerCapture(pointerId: number): void;
+    /**
+     * Removes element's first attribute whose qualified name is qualifiedName.
+     */
+    removeAttribute(qualifiedName: string): void;
+    /**
+     * Removes element's attribute whose namespace is namespace and local name is localName.
+     */
+    removeAttributeNS(namespace: string | null, localName: string): void;
+    removeAttributeNode(attr: Attr): Attr;
+    /**
+     * Displays element fullscreen and resolves promise when done.
+     * 
+     * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
+     */
+    requestFullscreen(options?: FullscreenOptions): Promise;
+    requestPointerLock(): void;
+    scroll(options?: ScrollToOptions): void;
+    scroll(x: number, y: number): void;
+    scrollBy(options?: ScrollToOptions): void;
+    scrollBy(x: number, y: number): void;
+    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollTo(x: number, y: number): void;
+    /**
+     * Sets the value of element's first attribute whose qualified name is qualifiedName to value.
+     */
+    setAttribute(qualifiedName: string, value: string): void;
+    /**
+     * Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
+     */
+    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
+    setAttributeNode(attr: Attr): Attr | null;
+    setAttributeNodeNS(attr: Attr): Attr | null;
+    setPointerCapture(pointerId: number): void;
+    /**
+     * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
+     * 
+     * Returns true if qualifiedName is now present, and false otherwise.
+     */
+    toggleAttribute(qualifiedName: string, force?: boolean): boolean;
+    webkitMatchesSelector(selectors: string): boolean;
+    addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var Element: {
+    prototype: Element;
+    new(): Element;
+};
+
+interface ElementCSSInlineStyle {
+    readonly style: CSSStyleDeclaration;
+}
+
+interface ElementContentEditable {
+    contentEditable: string;
+    enterKeyHint: string;
+    inputMode: string;
+    readonly isContentEditable: boolean;
+}
+
+/** Events providing information related to errors in scripts or in files. */
+interface ErrorEvent extends Event {
+    readonly colno: number;
+    readonly error: any;
+    readonly filename: string;
+    readonly lineno: number;
+    readonly message: string;
+}
+
+declare var ErrorEvent: {
+    prototype: ErrorEvent;
+    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
+};
+
+/** An event which takes place in the DOM. */
+interface Event {
+    /**
+     * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
+     */
+    readonly bubbles: boolean;
+    cancelBubble: boolean;
+    /**
+     * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
+     */
+    readonly cancelable: boolean;
+    /**
+     * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
+     */
+    readonly composed: boolean;
+    /**
+     * Returns the object whose event listener's callback is currently being invoked.
+     */
+    readonly currentTarget: EventTarget | null;
+    /**
+     * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
+     */
+    readonly defaultPrevented: boolean;
+    /**
+     * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
+     */
+    readonly eventPhase: number;
+    /**
+     * Returns true if event was dispatched by the user agent, and false otherwise.
+     */
+    readonly isTrusted: boolean;
+    returnValue: boolean;
+    /** @deprecated */
+    readonly srcElement: EventTarget | null;
+    /**
+     * Returns the object to which event is dispatched (its target).
+     */
+    readonly target: EventTarget | null;
+    /**
+     * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
+     */
+    readonly timeStamp: number;
+    /**
+     * Returns the type of event, e.g. "click", "hashchange", or "submit".
+     */
+    readonly type: string;
+    /**
+     * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
+     */
+    composedPath(): EventTarget[];
+    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
+    /**
+     * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
+     */
+    preventDefault(): void;
+    /**
+     * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
+     */
+    stopImmediatePropagation(): void;
+    /**
+     * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
+     */
+    stopPropagation(): void;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+    readonly NONE: number;
+}
+
+declare var Event: {
+    prototype: Event;
+    new(type: string, eventInitDict?: EventInit): Event;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+    readonly NONE: number;
+};
+
+interface EventListenerObject {
+    handleEvent(evt: Event): void;
+}
+
+interface EventSourceEventMap {
+    "error": Event;
+    "message": MessageEvent;
+    "open": Event;
+}
+
+interface EventSource extends EventTarget {
+    onerror: ((this: EventSource, ev: Event) => any) | null;
+    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
+    onopen: ((this: EventSource, ev: Event) => any) | null;
+    /**
+     * Returns the state of this EventSource object's connection. It can have the values described below.
+     */
+    readonly readyState: number;
+    /**
+     * Returns the URL providing the event stream.
+     */
+    readonly url: string;
+    /**
+     * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
+     */
+    readonly withCredentials: boolean;
+    /**
+     * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
+     */
+    close(): void;
+    readonly CLOSED: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+    addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var EventSource: {
+    prototype: EventSource;
+    new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
+    readonly CLOSED: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+};
+
+/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
+interface EventTarget {
+    /**
+     * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
+     * 
+     * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
+     * 
+     * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
+     * 
+     * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
+     * 
+     * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
+     * 
+     * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
+     */
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
+    /**
+     * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
+     */
+    dispatchEvent(event: Event): boolean;
+    /**
+     * Removes the event listener in target's event listener list with the same type, callback, and options.
+     */
+    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
+}
+
+declare var EventTarget: {
+    prototype: EventTarget;
+    new(): EventTarget;
+};
+
+interface ExtensionScriptApis {
+    extensionIdToShortId(extensionId: string): number;
+    fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
+    genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;
+    genericSynchronousFunction(functionId: number, parameters?: string): string;
+    genericWebRuntimeCallout(to: any, from: any, payload: string): void;
+    getExtensionId(): string;
+    registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
+    registerGenericPersistentCallbackHandler(callbackHandler: Function): void;
+    registerWebRuntimeCallbackHandler(handler: Function): any;
+}
+
+declare var ExtensionScriptApis: {
+    prototype: ExtensionScriptApis;
+    new(): ExtensionScriptApis;
+};
+
+interface External {
+    /** @deprecated */
+    AddSearchProvider(): void;
+    /** @deprecated */
+    IsSearchProviderInstalled(): void;
+}
+
+declare var External: {
+    prototype: External;
+    new(): External;
+};
+
+/** Provides information about files and allows JavaScript in a web page to access their content. */
+interface File extends Blob {
+    readonly lastModified: number;
+    readonly name: string;
+}
+
+declare var File: {
+    prototype: File;
+    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
+};
+
+/** An object of this type is returned by the files property of the HTML  element; this lets you access the list of files selected with the  element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
+interface FileList {
+    readonly length: number;
+    item(index: number): File | null;
+    [index: number]: File;
+}
+
+declare var FileList: {
+    prototype: FileList;
+    new(): FileList;
+};
+
+interface FileReaderEventMap {
+    "abort": ProgressEvent;
+    "error": ProgressEvent;
+    "load": ProgressEvent;
+    "loadend": ProgressEvent;
+    "loadstart": ProgressEvent;
+    "progress": ProgressEvent;
+}
+
+/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
+interface FileReader extends EventTarget {
+    readonly error: DOMException | null;
+    onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    onload: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;
+    readonly readyState: number;
+    readonly result: string | ArrayBuffer | null;
+    abort(): void;
+    readAsArrayBuffer(blob: Blob): void;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): void;
+    readAsText(blob: Blob, encoding?: string): void;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+    addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var FileReader: {
+    prototype: FileReader;
+    new(): FileReader;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+};
+
+/** Focus-related events like focus, blur, focusin, or focusout. */
+interface FocusEvent extends UIEvent {
+    readonly relatedTarget: EventTarget | null;
+}
+
+declare var FocusEvent: {
+    prototype: FocusEvent;
+    new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
+};
+
+interface FocusNavigationEvent extends Event {
+    readonly navigationReason: NavigationReason;
+    readonly originHeight: number;
+    readonly originLeft: number;
+    readonly originTop: number;
+    readonly originWidth: number;
+    requestFocus(): void;
+}
+
+declare var FocusNavigationEvent: {
+    prototype: FocusNavigationEvent;
+    new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;
+};
+
+/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
+interface FormData {
+    append(name: string, value: string | Blob, fileName?: string): void;
+    delete(name: string): void;
+    get(name: string): FormDataEntryValue | null;
+    getAll(name: string): FormDataEntryValue[];
+    has(name: string): boolean;
+    set(name: string, value: string | Blob, fileName?: string): void;
+    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
+}
+
+declare var FormData: {
+    prototype: FormData;
+    new(form?: HTMLFormElement): FormData;
+};
+
+/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
+interface GainNode extends AudioNode {
+    readonly gain: AudioParam;
+}
+
+declare var GainNode: {
+    prototype: GainNode;
+    new(context: BaseAudioContext, options?: GainOptions): GainNode;
+};
+
+/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */
+interface Gamepad {
+    readonly axes: ReadonlyArray;
+    readonly buttons: ReadonlyArray;
+    readonly connected: boolean;
+    readonly hand: GamepadHand;
+    readonly hapticActuators: ReadonlyArray;
+    readonly id: string;
+    readonly index: number;
+    readonly mapping: GamepadMappingType;
+    readonly pose: GamepadPose | null;
+    readonly timestamp: number;
+}
+
+declare var Gamepad: {
+    prototype: Gamepad;
+    new(): Gamepad;
+};
+
+/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */
+interface GamepadButton {
+    readonly pressed: boolean;
+    readonly touched: boolean;
+    readonly value: number;
+}
+
+declare var GamepadButton: {
+    prototype: GamepadButton;
+    new(): GamepadButton;
+};
+
+/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */
+interface GamepadEvent extends Event {
+    readonly gamepad: Gamepad;
+}
+
+declare var GamepadEvent: {
+    prototype: GamepadEvent;
+    new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
+};
+
+/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
+interface GamepadHapticActuator {
+    readonly type: GamepadHapticActuatorType;
+    pulse(value: number, duration: number): Promise;
+}
+
+declare var GamepadHapticActuator: {
+    prototype: GamepadHapticActuator;
+    new(): GamepadHapticActuator;
+};
+
+/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
+interface GamepadPose {
+    readonly angularAcceleration: Float32Array | null;
+    readonly angularVelocity: Float32Array | null;
+    readonly hasOrientation: boolean;
+    readonly hasPosition: boolean;
+    readonly linearAcceleration: Float32Array | null;
+    readonly linearVelocity: Float32Array | null;
+    readonly orientation: Float32Array | null;
+    readonly position: Float32Array | null;
+}
+
+declare var GamepadPose: {
+    prototype: GamepadPose;
+    new(): GamepadPose;
+};
+
+interface GenericTransformStream {
+    readonly readable: ReadableStream;
+    readonly writable: WritableStream;
+}
+
+/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
+interface Geolocation {
+    clearWatch(watchId: number): void;
+    getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
+    watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
+}
+
+declare var Geolocation: {
+    prototype: Geolocation;
+    new(): Geolocation;
+};
+
+interface GeolocationCoordinates {
+    readonly accuracy: number;
+    readonly altitude: number | null;
+    readonly altitudeAccuracy: number | null;
+    readonly heading: number | null;
+    readonly latitude: number;
+    readonly longitude: number;
+    readonly speed: number | null;
+}
+
+declare var GeolocationCoordinates: {
+    prototype: GeolocationCoordinates;
+    new(): GeolocationCoordinates;
+};
+
+interface GeolocationPosition {
+    readonly coords: GeolocationCoordinates;
+    readonly timestamp: number;
+}
+
+declare var GeolocationPosition: {
+    prototype: GeolocationPosition;
+    new(): GeolocationPosition;
+};
+
+interface GeolocationPositionError {
+    readonly code: number;
+    readonly message: string;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+declare var GeolocationPositionError: {
+    prototype: GeolocationPositionError;
+    new(): GeolocationPositionError;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+};
+
+interface GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "animationcancel": AnimationEvent;
+    "animationend": AnimationEvent;
+    "animationiteration": AnimationEvent;
+    "animationstart": AnimationEvent;
+    "auxclick": MouseEvent;
+    "beforeinput": InputEvent;
+    "blur": FocusEvent;
+    "cancel": Event;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "close": Event;
+    "compositionend": CompositionEvent;
+    "compositionstart": CompositionEvent;
+    "compositionupdate": CompositionEvent;
+    "contextmenu": MouseEvent;
+    "cuechange": Event;
+    "dblclick": MouseEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragexit": Event;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": Event;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "focusin": FocusEvent;
+    "focusout": FocusEvent;
+    "gotpointercapture": PointerEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "lostpointercapture": PointerEvent;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "pointercancel": PointerEvent;
+    "pointerdown": PointerEvent;
+    "pointerenter": PointerEvent;
+    "pointerleave": PointerEvent;
+    "pointermove": PointerEvent;
+    "pointerout": PointerEvent;
+    "pointerover": PointerEvent;
+    "pointerup": PointerEvent;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "reset": Event;
+    "resize": UIEvent;
+    "scroll": Event;
+    "securitypolicyviolation": SecurityPolicyViolationEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": Event;
+    "selectionchange": Event;
+    "selectstart": Event;
+    "stalled": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "toggle": Event;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "transitioncancel": TransitionEvent;
+    "transitionend": TransitionEvent;
+    "transitionrun": TransitionEvent;
+    "transitionstart": TransitionEvent;
+    "volumechange": Event;
+    "waiting": Event;
+    "wheel": WheelEvent;
+}
+
+interface GlobalEventHandlers {
+    /**
+     * Fires when the user aborts the download.
+     * @param ev The event.
+     */
+    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
+    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
+    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
+    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
+    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
+    onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires when the object loses the input focus.
+     * @param ev The focus event.
+     */
+    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
+    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when playback is possible, but would require further buffering.
+     * @param ev The event.
+     */
+    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the contents of the object or selection have changed.
+     * @param ev The event.
+     */
+    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the user clicks the left mouse button on the object
+     * @param ev The mouse event.
+     */
+    onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the user clicks the right mouse button in the client area, opening the context menu.
+     * @param ev The mouse event.
+     */
+    oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the user double-clicks the object.
+     * @param ev The mouse event.
+     */
+    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires on the source object continuously during a drag operation.
+     * @param ev The event.
+     */
+    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    /**
+     * Fires on the source object when the user releases the mouse at the close of a drag operation.
+     * @param ev The event.
+     */
+    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    /**
+     * Fires on the target element when the user drags the object to a valid drop target.
+     * @param ev The drag event.
+     */
+    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+     * @param ev The drag event.
+     */
+    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    /**
+     * Fires on the target element continuously while the user drags the object over a valid drop target.
+     * @param ev The event.
+     */
+    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    /**
+     * Fires on the source object when the user starts to drag a text selection or selected object.
+     * @param ev The event.
+     */
+    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
+    /**
+     * Occurs when the duration attribute is updated.
+     * @param ev The event.
+     */
+    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the media element is reset to its initial state.
+     * @param ev The event.
+     */
+    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the end of playback is reached.
+     * @param ev The event
+     */
+    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when an error occurs during object loading.
+     * @param ev The event.
+     */
+    onerror: OnErrorEventHandler;
+    /**
+     * Fires when the object receives focus.
+     * @param ev The event.
+     */
+    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
+    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the user presses a key.
+     * @param ev The keyboard event
+     */
+    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
+    /**
+     * Fires when the user presses an alphanumeric key.
+     * @param ev The event.
+     */
+    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
+    /**
+     * Fires when the user releases a key.
+     * @param ev The keyboard event
+     */
+    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
+    /**
+     * Fires immediately after the browser loads the object.
+     * @param ev The event.
+     */
+    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when media data is loaded at the current playback position.
+     * @param ev The event.
+     */
+    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the duration and dimensions of the media have been determined.
+     * @param ev The event.
+     */
+    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when Internet Explorer begins looking for media data.
+     * @param ev The event.
+     */
+    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    /**
+     * Fires when the user clicks the object with either mouse button.
+     * @param ev The mouse event.
+     */
+    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires when the user moves the mouse over the object.
+     * @param ev The mouse event.
+     */
+    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires when the user moves the mouse pointer outside the boundaries of the object.
+     * @param ev The mouse event.
+     */
+    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires when the user moves the mouse pointer into the object.
+     * @param ev The mouse event.
+     */
+    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Fires when the user releases a mouse button while the mouse is over the object.
+     * @param ev The mouse event.
+     */
+    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+    /**
+     * Occurs when playback is paused.
+     * @param ev The event.
+     */
+    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the play method is requested.
+     * @param ev The event.
+     */
+    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the audio or video has started playing.
+     * @param ev The event.
+     */
+    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
+    /**
+     * Occurs to indicate progress while downloading media data.
+     * @param ev The event.
+     */
+    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
+    /**
+     * Occurs when the playback rate is increased or decreased.
+     * @param ev The event.
+     */
+    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the user resets a form.
+     * @param ev The event.
+     */
+    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
+    /**
+     * Fires when the user repositions the scroll box in the scroll bar on the object.
+     * @param ev The event.
+     */
+    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
+    /**
+     * Occurs when the seek operation ends.
+     * @param ev The event.
+     */
+    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the current playback position is moved.
+     * @param ev The event.
+     */
+    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Fires when the current selection changes.
+     * @param ev The event.
+     */
+    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when the download has stopped.
+     * @param ev The event.
+     */
+    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs if the load operation has been intentionally halted.
+     * @param ev The event.
+     */
+    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs to indicate the current playback position.
+     * @param ev The event.
+     */
+    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
+    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
+    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
+    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
+    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
+    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
+    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
+    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
+    /**
+     * Occurs when the volume is changed, or playback is muted or unmuted.
+     * @param ev The event.
+     */
+    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    /**
+     * Occurs when playback stops because the next frame of a video resource is not available.
+     * @param ev The event.
+     */
+    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
+    addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+interface HTMLAllCollection {
+    /**
+     * Returns the number of elements in the collection.
+     */
+    readonly length: number;
+    /**
+     * Returns the item with index index from the collection (determined by tree order).
+     */
+    item(nameOrIndex?: string): HTMLCollection | Element | null;
+    /**
+     * Returns the item with ID or name name from the collection.
+     * 
+     * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
+     * 
+     * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
+     */
+    namedItem(name: string): HTMLCollection | Element | null;
+    [index: number]: Element;
+}
+
+declare var HTMLAllCollection: {
+    prototype: HTMLAllCollection;
+    new(): HTMLAllCollection;
+};
+
+/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
+interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
+    /**
+     * Sets or retrieves the character set used to encode the object.
+     */
+    /** @deprecated */
+    charset: string;
+    /**
+     * Sets or retrieves the coordinates of the object.
+     */
+    /** @deprecated */
+    coords: string;
+    download: string;
+    /**
+     * Sets or retrieves the language code of the object.
+     */
+    hreflang: string;
+    /**
+     * Sets or retrieves the shape of the object.
+     */
+    /** @deprecated */
+    name: string;
+    ping: string;
+    referrerPolicy: string;
+    /**
+     * Sets or retrieves the relationship between the object and the destination of the link.
+     */
+    rel: string;
+    readonly relList: DOMTokenList;
+    /**
+     * Sets or retrieves the relationship between the object and the destination of the link.
+     */
+    /** @deprecated */
+    rev: string;
+    /**
+     * Sets or retrieves the shape of the object.
+     */
+    /** @deprecated */
+    shape: string;
+    /**
+     * Sets or retrieves the window or frame at which to target content.
+     */
+    target: string;
+    /**
+     * Retrieves or sets the text of the object as a string.
+     */
+    text: string;
+    type: string;
+    addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var HTMLAnchorElement: {
+    prototype: HTMLAnchorElement;
+    new(): HTMLAnchorElement;
+};
+
+interface HTMLAppletElement extends HTMLElement {
+    /** @deprecated */
+    align: string;
+    /**
+     * Sets or retrieves a text alternative to the graphic.
+     */
+    /** @deprecated */
+    alt: string;
+    /**
+     * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
+     */
+    /** @deprecated */
+    archive: string;
+    /** @deprecated */
+    code: string;
+    /**
+     * Sets or retrieves the URL of the component.
+     */
+    /** @deprecated */
+    codeBase: string;
+    readonly form: HTMLFormElement | null;
+    /**
+     * Sets or retrieves the height of the object.
+     */
+    /** @deprecated */
+    height: string;
+    /** @deprecated */
+    hspace: number;
+    /**
+     * Sets or retrieves the shape of the object.
+     */
+    /** @deprecated */
+    name: string;
+    /** @deprecated */
+    object: string;
+    /** @deprecated */
+    vspace: number;
+    /** @deprecated */
+    width: string;
+    addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var HTMLAppletElement: {
+    prototype: HTMLAppletElement;
+    new(): HTMLAppletElement;
+};
+
+/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of  elements. */
+interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
+    /**
+     * Sets or retrieves a text alternative to the graphic.
+     */
+    alt: string;
+    /**
+     * Sets or retrieves the coordinates of the object.
+     */
+    coords: string;
+    download: string;
+    /**
+     * Sets or gets whether clicks in this region cause action.
+     */
+    /** @deprecated */
+    noHref: boolean;
+    ping: string;
+    referrerPolicy: string;
+    rel: string;
+    readonly relList: DOMTokenList;
+    /**
+     * Sets or retrieves the shape of the object.
+     */
+    shape: string;
+    /**
+     * Sets or retrieves the window or frame at which to target content.
+     */
+    target: string;
+    addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+    removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var HTMLAreaElement: {
+    prototype: HTMLAreaElement;
+    new(): HTMLAreaElement;
+};
+
+/** Provides access to the properties of