From b9c62b5ac26ea509a46139d87eed457afdedb370 Mon Sep 17 00:00:00 2001 From: Mnickii Date: Fri, 20 Dec 2024 13:42:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20microsof?= =?UTF-8?q?tgraph/microsoft-graph-toolkit@c7da7efc57ba17ca50b5099ba739f31a?= =?UTF-8?q?56f40836=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next/pr/3343/214.5d276b1e.iframe.bundle.js | 1 + next/pr/3343/294.ec17e527.iframe.bundle.js | 1 + next/pr/3343/425.114b43b0.iframe.bundle.js | 1 + next/pr/3343/499.7afa3868.iframe.bundle.js | 143 + .../499.7afa3868.iframe.bundle.js.LICENSE.txt | 633 ++ .../pr/3343/499.7afa3868.iframe.bundle.js.map | 1 + next/pr/3343/535.cc445885.iframe.bundle.js | 1 + next/pr/3343/54.c0a66567.iframe.bundle.js | 1 + next/pr/3343/550.1f9ae2eb.iframe.bundle.js | 1 + next/pr/3343/647.87f86c6a.iframe.bundle.js | 1 + next/pr/3343/658.67db16b8.iframe.bundle.js | 1 + next/pr/3343/71.1055ec5c.iframe.bundle.js | 44 + next/pr/3343/71.1055ec5c.iframe.bundle.js.map | 1 + next/pr/3343/830.d2903593.iframe.bundle.js | 1 + next/pr/3343/857.fcb05e1a.iframe.bundle.js | 1 + next/pr/3343/895.a09e6a91.iframe.bundle.js | 1 + next/pr/3343/958.46c85517.iframe.bundle.js | 1 + next/pr/3343/CNAME | 1 + next/pr/3343/auth.js | 7 + next/pr/3343/blank.html | 6 + next/pr/3343/css.worker.js | 1 + next/pr/3343/editor.worker.js | 1 + next/pr/3343/favicon.ico | Bin 0 -> 2563 bytes next/pr/3343/favicon.png | Bin 0 -> 2564 bytes next/pr/3343/favicon.svg | 7 + next/pr/3343/graff.png | Bin 0 -> 143727 bytes next/pr/3343/html.worker.js | 1 + next/pr/3343/icons/100x100-icon.png | Bin 0 -> 6483 bytes next/pr/3343/icons/1024x1024-icon.png | Bin 0 -> 62022 bytes next/pr/3343/icons/107x107-icon.png | Bin 0 -> 6916 bytes next/pr/3343/icons/114x114-icon.png | Bin 0 -> 7221 bytes next/pr/3343/icons/120x120-icon.png | Bin 0 -> 7764 bytes next/pr/3343/icons/1240x1240-icon.png | Bin 0 -> 78673 bytes next/pr/3343/icons/1240x600-icon.png | Bin 0 -> 36803 bytes next/pr/3343/icons/128x128-icon.png | Bin 0 -> 8066 bytes next/pr/3343/icons/142x142-icon.png | Bin 0 -> 8855 bytes next/pr/3343/icons/144x144-icon.png | Bin 0 -> 8972 bytes next/pr/3343/icons/150x150-icon.png | Bin 0 -> 9548 bytes next/pr/3343/icons/152x152-icon.png | Bin 0 -> 9374 bytes next/pr/3343/icons/167x167-icon.png | Bin 0 -> 10215 bytes next/pr/3343/icons/16x16-icon.png | Bin 0 -> 754 bytes next/pr/3343/icons/176x176-icon.png | Bin 0 -> 10549 bytes next/pr/3343/icons/180x180-icon.png | Bin 0 -> 10919 bytes next/pr/3343/icons/188x188-icon.png | Bin 0 -> 11320 bytes next/pr/3343/icons/192x192-icon.png | Bin 0 -> 11528 bytes next/pr/3343/icons/200x200-icon.png | Bin 0 -> 11965 bytes next/pr/3343/icons/20x20-icon.png | Bin 0 -> 977 bytes next/pr/3343/icons/225x225-icon.png | Bin 0 -> 13214 bytes next/pr/3343/icons/2480x1200-icon.png | Bin 0 -> 85035 bytes next/pr/3343/icons/24x24-icon.png | Bin 0 -> 1210 bytes next/pr/3343/icons/256x256-icon.png | Bin 0 -> 14580 bytes next/pr/3343/icons/284x284-icon.png | Bin 0 -> 16035 bytes next/pr/3343/icons/29x29-icon.png | Bin 0 -> 1521 bytes next/pr/3343/icons/300x300-icon.png | Bin 0 -> 17008 bytes next/pr/3343/icons/30x30-icon.png | Bin 0 -> 1564 bytes next/pr/3343/icons/310x150-icon.png | Bin 0 -> 10369 bytes next/pr/3343/icons/310x310-icon.png | Bin 0 -> 17488 bytes next/pr/3343/icons/32x32-icon.png | Bin 0 -> 1707 bytes next/pr/3343/icons/36x36-icon.png | Bin 0 -> 1930 bytes next/pr/3343/icons/388x188-icon.png | Bin 0 -> 12424 bytes next/pr/3343/icons/388x388-icon.png | Bin 0 -> 21347 bytes next/pr/3343/icons/40x40-icon.png | Bin 0 -> 2227 bytes next/pr/3343/icons/44x44-icon.png | Bin 0 -> 2429 bytes next/pr/3343/icons/465x225-icon.png | Bin 0 -> 14438 bytes next/pr/3343/icons/465x465-icon.png | Bin 0 -> 25459 bytes next/pr/3343/icons/48x48-icon.png | Bin 0 -> 2763 bytes next/pr/3343/icons/50x50-icon.png | Bin 0 -> 2843 bytes next/pr/3343/icons/512x512-icon.png | Bin 0 -> 28074 bytes next/pr/3343/icons/55x55-icon.png | Bin 0 -> 3165 bytes next/pr/3343/icons/57x57-icon.png | Bin 0 -> 3378 bytes next/pr/3343/icons/58x58-icon.png | Bin 0 -> 3402 bytes next/pr/3343/icons/600x600-icon.png | Bin 0 -> 32651 bytes next/pr/3343/icons/60x60-icon.png | Bin 0 -> 3605 bytes next/pr/3343/icons/620x300-icon.png | Bin 0 -> 18751 bytes next/pr/3343/icons/620x620-icon.png | Bin 0 -> 34488 bytes next/pr/3343/icons/63x63-icon.png | Bin 0 -> 3773 bytes next/pr/3343/icons/64x64-icon.png | Bin 0 -> 3965 bytes next/pr/3343/icons/66x66-icon.png | Bin 0 -> 4136 bytes next/pr/3343/icons/71x71-icon.png | Bin 0 -> 4461 bytes next/pr/3343/icons/72x72-icon.png | Bin 0 -> 4522 bytes next/pr/3343/icons/75x75-icon.png | Bin 0 -> 4892 bytes next/pr/3343/icons/76x76-icon.png | Bin 0 -> 5047 bytes next/pr/3343/icons/775x375-icon.png | Bin 0 -> 23128 bytes next/pr/3343/icons/80x80-icon.png | Bin 0 -> 5331 bytes next/pr/3343/icons/87x87-icon.png | Bin 0 -> 5806 bytes next/pr/3343/icons/88x88-icon.png | Bin 0 -> 5587 bytes next/pr/3343/icons/89x89-icon.png | Bin 0 -> 5749 bytes next/pr/3343/icons/930x450-icon.png | Bin 0 -> 27743 bytes next/pr/3343/icons/96x96-icon.png | Bin 0 -> 6196 bytes next/pr/3343/iframe.html | 355 + next/pr/3343/index.html | 123 + next/pr/3343/index.json | 1 + next/pr/3343/main.2e330572.iframe.bundle.js | 4456 ++++++++++ ...main.2e330572.iframe.bundle.js.LICENSE.txt | 1 + .../3343/main.2e330572.iframe.bundle.js.map | 1 + next/pr/3343/manifest.json | 686 ++ next/pr/3343/mgt.png | Bin 0 -> 139995 bytes next/pr/3343/mgt.storybook.js | 5954 +++++++++++++ next/pr/3343/project.json | 1 + .../runtime~main.9afa598b.iframe.bundle.js | 1 + .../sb-addons/storybook-1/manager-bundle.css | 1 + .../storybook-1/manager-bundle.css.LEGAL.txt | 0 .../sb-addons/storybook-1/manager-bundle.js | 7499 +++++++++++++++++ .../storybook-1/manager-bundle.js.LEGAL.txt | 590 ++ .../register-bundle.js | 17 + .../register-bundle.js.LEGAL.txt | 0 next/pr/3343/sb-common-assets/fonts.css | 31 + .../nunito-sans-bold-italic.woff2 | Bin 0 -> 49460 bytes .../sb-common-assets/nunito-sans-bold.woff2 | Bin 0 -> 47144 bytes .../sb-common-assets/nunito-sans-italic.woff2 | Bin 0 -> 49620 bytes .../nunito-sans-regular.woff2 | Bin 0 -> 47072 bytes .../WithTooltip-V3YHNWJZ-TRLNWEGW.js | 1 + next/pr/3343/sb-manager/chunk-4IYAVH3S.js | 348 + next/pr/3343/sb-manager/chunk-CXYKRFSY.js | 9 + next/pr/3343/sb-manager/chunk-LVLAH4SI.js | 7 + next/pr/3343/sb-manager/chunk-VFHDXWEA.js | 406 + next/pr/3343/sb-manager/chunk-ZEU7PDD3.js | 1 + .../sb-manager/formatter-SWP5E3XI-7BGIK6BL.js | 156 + .../pr/3343/sb-manager/globals-module-info.js | 1 + next/pr/3343/sb-manager/globals.js | 1 + next/pr/3343/sb-manager/index.js | 1 + next/pr/3343/sb-manager/runtime.js | 1 + .../syntaxhighlighter-B5GMVT5T-EA5ASEYD.js | 1 + next/pr/3343/sb-preview/globals.js | 1 + next/pr/3343/sb-preview/runtime.js | 112 + next/pr/3343/stackblitz/html/app.js | 4 + next/pr/3343/stackblitz/html/index.html | 20 + next/pr/3343/stackblitz/html/main.css | 13 + next/pr/3343/stackblitz/html/main.js | 0 next/pr/3343/stackblitz/html/package.json | 17 + next/pr/3343/stackblitz/html/style.css | 0 next/pr/3343/stackblitz/react/index.html | 13 + next/pr/3343/stackblitz/react/package.json | 30 + next/pr/3343/stackblitz/react/src/main.css | 13 + next/pr/3343/stackblitz/react/src/main.tsx | 17 + .../3343/stackblitz/react/src/vite-env.d.ts | 1 + next/pr/3343/stackblitz/react/tsconfig.json | 25 + .../3343/stackblitz/react/tsconfig.node.json | 10 + next/pr/3343/stackblitz/react/vite.config.ts | 7 + .../pr/3343/static/media/codicon.59002d8c.ttf | Bin 0 -> 68156 bytes next/pr/3343/stories.json | 1 + next/pr/3343/sw.js | 104 + next/pr/3343/ts.worker.js | 2 + next/pr/3343/ts.worker.js.LICENSE.txt | 14 + next/pr/3343/workbox-dae083bf.js | 2 + 145 files changed, 21914 insertions(+) create mode 100644 next/pr/3343/214.5d276b1e.iframe.bundle.js create mode 100644 next/pr/3343/294.ec17e527.iframe.bundle.js create mode 100644 next/pr/3343/425.114b43b0.iframe.bundle.js create mode 100644 next/pr/3343/499.7afa3868.iframe.bundle.js create mode 100644 next/pr/3343/499.7afa3868.iframe.bundle.js.LICENSE.txt create mode 100644 next/pr/3343/499.7afa3868.iframe.bundle.js.map create mode 100644 next/pr/3343/535.cc445885.iframe.bundle.js create mode 100644 next/pr/3343/54.c0a66567.iframe.bundle.js create mode 100644 next/pr/3343/550.1f9ae2eb.iframe.bundle.js create mode 100644 next/pr/3343/647.87f86c6a.iframe.bundle.js create mode 100644 next/pr/3343/658.67db16b8.iframe.bundle.js create mode 100644 next/pr/3343/71.1055ec5c.iframe.bundle.js create mode 100644 next/pr/3343/71.1055ec5c.iframe.bundle.js.map create mode 100644 next/pr/3343/830.d2903593.iframe.bundle.js create mode 100644 next/pr/3343/857.fcb05e1a.iframe.bundle.js create mode 100644 next/pr/3343/895.a09e6a91.iframe.bundle.js create mode 100644 next/pr/3343/958.46c85517.iframe.bundle.js create mode 100644 next/pr/3343/CNAME create mode 100644 next/pr/3343/auth.js create mode 100644 next/pr/3343/blank.html create mode 100644 next/pr/3343/css.worker.js create mode 100644 next/pr/3343/editor.worker.js create mode 100644 next/pr/3343/favicon.ico create mode 100644 next/pr/3343/favicon.png create mode 100644 next/pr/3343/favicon.svg create mode 100644 next/pr/3343/graff.png create mode 100644 next/pr/3343/html.worker.js create mode 100644 next/pr/3343/icons/100x100-icon.png create mode 100644 next/pr/3343/icons/1024x1024-icon.png create mode 100644 next/pr/3343/icons/107x107-icon.png create mode 100644 next/pr/3343/icons/114x114-icon.png create mode 100644 next/pr/3343/icons/120x120-icon.png create mode 100644 next/pr/3343/icons/1240x1240-icon.png create mode 100644 next/pr/3343/icons/1240x600-icon.png create mode 100644 next/pr/3343/icons/128x128-icon.png create mode 100644 next/pr/3343/icons/142x142-icon.png create mode 100644 next/pr/3343/icons/144x144-icon.png create mode 100644 next/pr/3343/icons/150x150-icon.png create mode 100644 next/pr/3343/icons/152x152-icon.png create mode 100644 next/pr/3343/icons/167x167-icon.png create mode 100644 next/pr/3343/icons/16x16-icon.png create mode 100644 next/pr/3343/icons/176x176-icon.png create mode 100644 next/pr/3343/icons/180x180-icon.png create mode 100644 next/pr/3343/icons/188x188-icon.png create mode 100644 next/pr/3343/icons/192x192-icon.png create mode 100644 next/pr/3343/icons/200x200-icon.png create mode 100644 next/pr/3343/icons/20x20-icon.png create mode 100644 next/pr/3343/icons/225x225-icon.png create mode 100644 next/pr/3343/icons/2480x1200-icon.png create mode 100644 next/pr/3343/icons/24x24-icon.png create mode 100644 next/pr/3343/icons/256x256-icon.png create mode 100644 next/pr/3343/icons/284x284-icon.png create mode 100644 next/pr/3343/icons/29x29-icon.png create mode 100644 next/pr/3343/icons/300x300-icon.png create mode 100644 next/pr/3343/icons/30x30-icon.png create mode 100644 next/pr/3343/icons/310x150-icon.png create mode 100644 next/pr/3343/icons/310x310-icon.png create mode 100644 next/pr/3343/icons/32x32-icon.png create mode 100644 next/pr/3343/icons/36x36-icon.png create mode 100644 next/pr/3343/icons/388x188-icon.png create mode 100644 next/pr/3343/icons/388x388-icon.png create mode 100644 next/pr/3343/icons/40x40-icon.png create mode 100644 next/pr/3343/icons/44x44-icon.png create mode 100644 next/pr/3343/icons/465x225-icon.png create mode 100644 next/pr/3343/icons/465x465-icon.png create mode 100644 next/pr/3343/icons/48x48-icon.png create mode 100644 next/pr/3343/icons/50x50-icon.png create mode 100644 next/pr/3343/icons/512x512-icon.png create mode 100644 next/pr/3343/icons/55x55-icon.png create mode 100644 next/pr/3343/icons/57x57-icon.png create mode 100644 next/pr/3343/icons/58x58-icon.png create mode 100644 next/pr/3343/icons/600x600-icon.png create mode 100644 next/pr/3343/icons/60x60-icon.png create mode 100644 next/pr/3343/icons/620x300-icon.png create mode 100644 next/pr/3343/icons/620x620-icon.png create mode 100644 next/pr/3343/icons/63x63-icon.png create mode 100644 next/pr/3343/icons/64x64-icon.png create mode 100644 next/pr/3343/icons/66x66-icon.png create mode 100644 next/pr/3343/icons/71x71-icon.png create mode 100644 next/pr/3343/icons/72x72-icon.png create mode 100644 next/pr/3343/icons/75x75-icon.png create mode 100644 next/pr/3343/icons/76x76-icon.png create mode 100644 next/pr/3343/icons/775x375-icon.png create mode 100644 next/pr/3343/icons/80x80-icon.png create mode 100644 next/pr/3343/icons/87x87-icon.png create mode 100644 next/pr/3343/icons/88x88-icon.png create mode 100644 next/pr/3343/icons/89x89-icon.png create mode 100644 next/pr/3343/icons/930x450-icon.png create mode 100644 next/pr/3343/icons/96x96-icon.png create mode 100644 next/pr/3343/iframe.html create mode 100644 next/pr/3343/index.html create mode 100644 next/pr/3343/index.json create mode 100644 next/pr/3343/main.2e330572.iframe.bundle.js create mode 100644 next/pr/3343/main.2e330572.iframe.bundle.js.LICENSE.txt create mode 100644 next/pr/3343/main.2e330572.iframe.bundle.js.map create mode 100644 next/pr/3343/manifest.json create mode 100644 next/pr/3343/mgt.png create mode 100644 next/pr/3343/mgt.storybook.js create mode 100644 next/pr/3343/project.json create mode 100644 next/pr/3343/runtime~main.9afa598b.iframe.bundle.js create mode 100644 next/pr/3343/sb-addons/storybook-1/manager-bundle.css create mode 100644 next/pr/3343/sb-addons/storybook-1/manager-bundle.css.LEGAL.txt create mode 100644 next/pr/3343/sb-addons/storybook-1/manager-bundle.js create mode 100644 next/pr/3343/sb-addons/storybook-1/manager-bundle.js.LEGAL.txt create mode 100644 next/pr/3343/sb-addons/storybook-version-esm-0/register-bundle.js create mode 100644 next/pr/3343/sb-addons/storybook-version-esm-0/register-bundle.js.LEGAL.txt create mode 100644 next/pr/3343/sb-common-assets/fonts.css create mode 100644 next/pr/3343/sb-common-assets/nunito-sans-bold-italic.woff2 create mode 100644 next/pr/3343/sb-common-assets/nunito-sans-bold.woff2 create mode 100644 next/pr/3343/sb-common-assets/nunito-sans-italic.woff2 create mode 100644 next/pr/3343/sb-common-assets/nunito-sans-regular.woff2 create mode 100644 next/pr/3343/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js create mode 100644 next/pr/3343/sb-manager/chunk-4IYAVH3S.js create mode 100644 next/pr/3343/sb-manager/chunk-CXYKRFSY.js create mode 100644 next/pr/3343/sb-manager/chunk-LVLAH4SI.js create mode 100644 next/pr/3343/sb-manager/chunk-VFHDXWEA.js create mode 100644 next/pr/3343/sb-manager/chunk-ZEU7PDD3.js create mode 100644 next/pr/3343/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js create mode 100644 next/pr/3343/sb-manager/globals-module-info.js create mode 100644 next/pr/3343/sb-manager/globals.js create mode 100644 next/pr/3343/sb-manager/index.js create mode 100644 next/pr/3343/sb-manager/runtime.js create mode 100644 next/pr/3343/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js create mode 100644 next/pr/3343/sb-preview/globals.js create mode 100644 next/pr/3343/sb-preview/runtime.js create mode 100644 next/pr/3343/stackblitz/html/app.js create mode 100644 next/pr/3343/stackblitz/html/index.html create mode 100644 next/pr/3343/stackblitz/html/main.css create mode 100644 next/pr/3343/stackblitz/html/main.js create mode 100644 next/pr/3343/stackblitz/html/package.json create mode 100644 next/pr/3343/stackblitz/html/style.css create mode 100644 next/pr/3343/stackblitz/react/index.html create mode 100644 next/pr/3343/stackblitz/react/package.json create mode 100644 next/pr/3343/stackblitz/react/src/main.css create mode 100644 next/pr/3343/stackblitz/react/src/main.tsx create mode 100644 next/pr/3343/stackblitz/react/src/vite-env.d.ts create mode 100644 next/pr/3343/stackblitz/react/tsconfig.json create mode 100644 next/pr/3343/stackblitz/react/tsconfig.node.json create mode 100644 next/pr/3343/stackblitz/react/vite.config.ts create mode 100644 next/pr/3343/static/media/codicon.59002d8c.ttf create mode 100644 next/pr/3343/stories.json create mode 100644 next/pr/3343/sw.js create mode 100644 next/pr/3343/ts.worker.js create mode 100644 next/pr/3343/ts.worker.js.LICENSE.txt create mode 100644 next/pr/3343/workbox-dae083bf.js diff --git a/next/pr/3343/214.5d276b1e.iframe.bundle.js b/next/pr/3343/214.5d276b1e.iframe.bundle.js new file mode 100644 index 0000000000..bfa308c6a9 --- /dev/null +++ b/next/pr/3343/214.5d276b1e.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkroot=self.webpackChunkroot||[]).push([[214],{"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{setupMode:()=>setupMode});var integer,uinteger,Position,Range,Location,LocationLink,Color,ColorInformation,ColorPresentation,FoldingRangeKind,FoldingRange,DiagnosticRelatedInformation,DiagnosticSeverity,DiagnosticTag,CodeDescription,Diagnostic,Command,TextEdit,ChangeAnnotation,ChangeAnnotationIdentifier,AnnotatedTextEdit,TextDocumentEdit,CreateFile,RenameFile,DeleteFile,WorkspaceEdit,monaco_editor_core=__webpack_require__("./node_modules/monaco-editor/esm/vs/language/css/fillers/monaco-editor-core.js"),WorkerManager=function(){function WorkerManager(defaults){var _this=this;this._defaults=defaults,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return _this._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return _this._stopWorker()}))}return WorkerManager.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},WorkerManager.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},WorkerManager.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},WorkerManager.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco_editor_core.EN.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},WorkerManager.prototype.getLanguageServiceWorker=function(){for(var _client,_this=this,resources=[],_i=0;_i0&&(result.arguments=args),result},Command.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.title)&&Is.string(candidate.command)}}(Command||(Command={})),function(TextEdit){TextEdit.replace=function replace(range,newText){return{range,newText}},TextEdit.insert=function insert(position,newText){return{range:{start:position,end:position},newText}},TextEdit.del=function del(range){return{range,newText:""}},TextEdit.is=function is(value){var candidate=value;return Is.objectLiteral(candidate)&&Is.string(candidate.newText)&&Range.is(candidate.range)}}(TextEdit||(TextEdit={})),function(ChangeAnnotation){ChangeAnnotation.create=function create(label,needsConfirmation,description){var result={label};return void 0!==needsConfirmation&&(result.needsConfirmation=needsConfirmation),void 0!==description&&(result.description=description),result},ChangeAnnotation.is=function is(value){var candidate=value;return void 0!==candidate&&Is.objectLiteral(candidate)&&Is.string(candidate.label)&&(Is.boolean(candidate.needsConfirmation)||void 0===candidate.needsConfirmation)&&(Is.string(candidate.description)||void 0===candidate.description)}}(ChangeAnnotation||(ChangeAnnotation={})),function(ChangeAnnotationIdentifier){ChangeAnnotationIdentifier.is=function is(value){return"string"==typeof value}}(ChangeAnnotationIdentifier||(ChangeAnnotationIdentifier={})),function(AnnotatedTextEdit){AnnotatedTextEdit.replace=function replace(range,newText,annotation){return{range,newText,annotationId:annotation}},AnnotatedTextEdit.insert=function insert(position,newText,annotation){return{range:{start:position,end:position},newText,annotationId:annotation}},AnnotatedTextEdit.del=function del(range,annotation){return{range,newText:"",annotationId:annotation}},AnnotatedTextEdit.is=function is(value){var candidate=value;return TextEdit.is(candidate)&&(ChangeAnnotation.is(candidate.annotationId)||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(AnnotatedTextEdit||(AnnotatedTextEdit={})),function(TextDocumentEdit){TextDocumentEdit.create=function create(textDocument,edits){return{textDocument,edits}},TextDocumentEdit.is=function is(value){var candidate=value;return Is.defined(candidate)&&OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument)&&Array.isArray(candidate.edits)}}(TextDocumentEdit||(TextDocumentEdit={})),function(CreateFile){CreateFile.create=function create(uri,options,annotation){var result={kind:"create",uri};return void 0===options||void 0===options.overwrite&&void 0===options.ignoreIfExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},CreateFile.is=function is(value){var candidate=value;return candidate&&"create"===candidate.kind&&Is.string(candidate.uri)&&(void 0===candidate.options||(void 0===candidate.options.overwrite||Is.boolean(candidate.options.overwrite))&&(void 0===candidate.options.ignoreIfExists||Is.boolean(candidate.options.ignoreIfExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(CreateFile||(CreateFile={})),function(RenameFile){RenameFile.create=function create(oldUri,newUri,options,annotation){var result={kind:"rename",oldUri,newUri};return void 0===options||void 0===options.overwrite&&void 0===options.ignoreIfExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},RenameFile.is=function is(value){var candidate=value;return candidate&&"rename"===candidate.kind&&Is.string(candidate.oldUri)&&Is.string(candidate.newUri)&&(void 0===candidate.options||(void 0===candidate.options.overwrite||Is.boolean(candidate.options.overwrite))&&(void 0===candidate.options.ignoreIfExists||Is.boolean(candidate.options.ignoreIfExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(RenameFile||(RenameFile={})),function(DeleteFile){DeleteFile.create=function create(uri,options,annotation){var result={kind:"delete",uri};return void 0===options||void 0===options.recursive&&void 0===options.ignoreIfNotExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},DeleteFile.is=function is(value){var candidate=value;return candidate&&"delete"===candidate.kind&&Is.string(candidate.uri)&&(void 0===candidate.options||(void 0===candidate.options.recursive||Is.boolean(candidate.options.recursive))&&(void 0===candidate.options.ignoreIfNotExists||Is.boolean(candidate.options.ignoreIfNotExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(DeleteFile||(DeleteFile={})),function(WorkspaceEdit){WorkspaceEdit.is=function is(value){var candidate=value;return candidate&&(void 0!==candidate.changes||void 0!==candidate.documentChanges)&&(void 0===candidate.documentChanges||candidate.documentChanges.every((function(change){return Is.string(change.kind)?CreateFile.is(change)||RenameFile.is(change)||DeleteFile.is(change):TextDocumentEdit.is(change)})))}}(WorkspaceEdit||(WorkspaceEdit={}));var TextDocumentIdentifier,VersionedTextDocumentIdentifier,OptionalVersionedTextDocumentIdentifier,TextDocumentItem,MarkupKind,MarkupContent,CompletionItemKind,InsertTextFormat,CompletionItemTag,InsertReplaceEdit,InsertTextMode,CompletionItem,CompletionList,MarkedString,Hover,ParameterInformation,SignatureInformation,DocumentHighlightKind,DocumentHighlight,SymbolKind,SymbolTag,SymbolInformation,DocumentSymbol,CodeActionKind,CodeActionContext,CodeAction,CodeLens,FormattingOptions,DocumentLink,SelectionRange,TextEditChangeImpl=function(){function TextEditChangeImpl(edits,changeAnnotations){this.edits=edits,this.changeAnnotations=changeAnnotations}return TextEditChangeImpl.prototype.insert=function(position,newText,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.insert(position,newText):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.insert(position,newText,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.insert(position,newText,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.replace=function(range,newText,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.replace(range,newText):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.replace(range,newText,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.replace(range,newText,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.delete=function(range,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.del(range):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.del(range,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.del(range,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.add=function(edit){this.edits.push(edit)},TextEditChangeImpl.prototype.all=function(){return this.edits},TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)},TextEditChangeImpl.prototype.assertChangeAnnotations=function(value){if(void 0===value)throw new Error("Text edit change is not configured to manage change annotations.")},TextEditChangeImpl}(),ChangeAnnotations=function(){function ChangeAnnotations(annotations){this._annotations=void 0===annotations?Object.create(null):annotations,this._counter=0,this._size=0}return ChangeAnnotations.prototype.all=function(){return this._annotations},Object.defineProperty(ChangeAnnotations.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),ChangeAnnotations.prototype.manage=function(idOrAnnotation,annotation){var id;if(ChangeAnnotationIdentifier.is(idOrAnnotation)?id=idOrAnnotation:(id=this.nextId(),annotation=idOrAnnotation),void 0!==this._annotations[id])throw new Error("Id "+id+" is already in use.");if(void 0===annotation)throw new Error("No annotation provided for id "+id);return this._annotations[id]=annotation,this._size++,id},ChangeAnnotations.prototype.nextId=function(){return this._counter++,this._counter.toString()},ChangeAnnotations}();!function(){function WorkspaceChange(workspaceEdit){var _this=this;this._textEditChanges=Object.create(null),void 0!==workspaceEdit?(this._workspaceEdit=workspaceEdit,workspaceEdit.documentChanges?(this._changeAnnotations=new ChangeAnnotations(workspaceEdit.changeAnnotations),workspaceEdit.changeAnnotations=this._changeAnnotations.all(),workspaceEdit.documentChanges.forEach((function(change){if(TextDocumentEdit.is(change)){var textEditChange=new TextEditChangeImpl(change.edits,_this._changeAnnotations);_this._textEditChanges[change.textDocument.uri]=textEditChange}}))):workspaceEdit.changes&&Object.keys(workspaceEdit.changes).forEach((function(key){var textEditChange=new TextEditChangeImpl(workspaceEdit.changes[key]);_this._textEditChanges[key]=textEditChange}))):this._workspaceEdit={}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),WorkspaceChange.prototype.getTextEditChange=function(key){if(OptionalVersionedTextDocumentIdentifier.is(key)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var textDocument={uri:key.uri,version:key.version};if(!(result=this._textEditChanges[textDocument.uri])){var textDocumentEdit={textDocument,edits:edits=[]};this._workspaceEdit.documentChanges.push(textDocumentEdit),result=new TextEditChangeImpl(edits,this._changeAnnotations),this._textEditChanges[textDocument.uri]=result}return result}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var result;if(!(result=this._textEditChanges[key])){var edits=[];this._workspaceEdit.changes[key]=edits,result=new TextEditChangeImpl(edits),this._textEditChanges[key]=result}return result},WorkspaceChange.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ChangeAnnotations,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},WorkspaceChange.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},WorkspaceChange.prototype.createFile=function(uri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=CreateFile.create(uri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=CreateFile.create(uri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id},WorkspaceChange.prototype.renameFile=function(oldUri,newUri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=RenameFile.create(oldUri,newUri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=RenameFile.create(oldUri,newUri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id},WorkspaceChange.prototype.deleteFile=function(uri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=DeleteFile.create(uri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=DeleteFile.create(uri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id}}();!function(TextDocumentIdentifier){TextDocumentIdentifier.create=function create(uri){return{uri}},TextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)}}(TextDocumentIdentifier||(TextDocumentIdentifier={})),function(VersionedTextDocumentIdentifier){VersionedTextDocumentIdentifier.create=function create(uri,version){return{uri,version}},VersionedTextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.integer(candidate.version)}}(VersionedTextDocumentIdentifier||(VersionedTextDocumentIdentifier={})),function(OptionalVersionedTextDocumentIdentifier){OptionalVersionedTextDocumentIdentifier.create=function create(uri,version){return{uri,version}},OptionalVersionedTextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&(null===candidate.version||Is.integer(candidate.version))}}(OptionalVersionedTextDocumentIdentifier||(OptionalVersionedTextDocumentIdentifier={})),function(TextDocumentItem){TextDocumentItem.create=function create(uri,languageId,version,text){return{uri,languageId,version,text}},TextDocumentItem.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.string(candidate.languageId)&&Is.integer(candidate.version)&&Is.string(candidate.text)}}(TextDocumentItem||(TextDocumentItem={})),function(MarkupKind){MarkupKind.PlainText="plaintext",MarkupKind.Markdown="markdown"}(MarkupKind||(MarkupKind={})),function(MarkupKind){MarkupKind.is=function is(value){var candidate=value;return candidate===MarkupKind.PlainText||candidate===MarkupKind.Markdown}}(MarkupKind||(MarkupKind={})),function(MarkupContent){MarkupContent.is=function is(value){var candidate=value;return Is.objectLiteral(value)&&MarkupKind.is(candidate.kind)&&Is.string(candidate.value)}}(MarkupContent||(MarkupContent={})),function(CompletionItemKind){CompletionItemKind.Text=1,CompletionItemKind.Method=2,CompletionItemKind.Function=3,CompletionItemKind.Constructor=4,CompletionItemKind.Field=5,CompletionItemKind.Variable=6,CompletionItemKind.Class=7,CompletionItemKind.Interface=8,CompletionItemKind.Module=9,CompletionItemKind.Property=10,CompletionItemKind.Unit=11,CompletionItemKind.Value=12,CompletionItemKind.Enum=13,CompletionItemKind.Keyword=14,CompletionItemKind.Snippet=15,CompletionItemKind.Color=16,CompletionItemKind.File=17,CompletionItemKind.Reference=18,CompletionItemKind.Folder=19,CompletionItemKind.EnumMember=20,CompletionItemKind.Constant=21,CompletionItemKind.Struct=22,CompletionItemKind.Event=23,CompletionItemKind.Operator=24,CompletionItemKind.TypeParameter=25}(CompletionItemKind||(CompletionItemKind={})),function(InsertTextFormat){InsertTextFormat.PlainText=1,InsertTextFormat.Snippet=2}(InsertTextFormat||(InsertTextFormat={})),function(CompletionItemTag){CompletionItemTag.Deprecated=1}(CompletionItemTag||(CompletionItemTag={})),function(InsertReplaceEdit){InsertReplaceEdit.create=function create(newText,insert,replace){return{newText,insert,replace}},InsertReplaceEdit.is=function is(value){var candidate=value;return candidate&&Is.string(candidate.newText)&&Range.is(candidate.insert)&&Range.is(candidate.replace)}}(InsertReplaceEdit||(InsertReplaceEdit={})),function(InsertTextMode){InsertTextMode.asIs=1,InsertTextMode.adjustIndentation=2}(InsertTextMode||(InsertTextMode={})),function(CompletionItem){CompletionItem.create=function create(label){return{label}}}(CompletionItem||(CompletionItem={})),function(CompletionList){CompletionList.create=function create(items,isIncomplete){return{items:items||[],isIncomplete:!!isIncomplete}}}(CompletionList||(CompletionList={})),function(MarkedString){MarkedString.fromPlainText=function fromPlainText(plainText){return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},MarkedString.is=function is(value){var candidate=value;return Is.string(candidate)||Is.objectLiteral(candidate)&&Is.string(candidate.language)&&Is.string(candidate.value)}}(MarkedString||(MarkedString={})),function(Hover){Hover.is=function is(value){var candidate=value;return!!candidate&&Is.objectLiteral(candidate)&&(MarkupContent.is(candidate.contents)||MarkedString.is(candidate.contents)||Is.typedArray(candidate.contents,MarkedString.is))&&(void 0===value.range||Range.is(value.range))}}(Hover||(Hover={})),function(ParameterInformation){ParameterInformation.create=function create(label,documentation){return documentation?{label,documentation}:{label}}}(ParameterInformation||(ParameterInformation={})),function(SignatureInformation){SignatureInformation.create=function create(label,documentation){for(var parameters=[],_i=2;_i=0;i--){var e=sortedEdits[i],startOffset=document.offsetAt(e.range.start),endOffset=document.offsetAt(e.range.end);if(!(endOffset<=lastModifiedOffset))throw new Error("Overlapping edit");text=text.substring(0,startOffset)+e.newText+text.substring(endOffset,text.length),lastModifiedOffset=startOffset}return text}}(TextDocument||(TextDocument={}));var Is,FullTextDocument=function(){function FullTextDocument(uri,languageId,version,content){this._uri=uri,this._languageId=languageId,this._version=version,this._content=content,this._lineOffsets=void 0}return Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),FullTextDocument.prototype.getText=function(range){if(range){var start=this.offsetAt(range.start),end=this.offsetAt(range.end);return this._content.substring(start,end)}return this._content},FullTextDocument.prototype.update=function(event,version){this._content=event.text,this._version=version,this._lineOffsets=void 0},FullTextDocument.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var lineOffsets=[],text=this._content,isLineStart=!0,i=0;i0&&lineOffsets.push(text.length),this._lineOffsets=lineOffsets}return this._lineOffsets},FullTextDocument.prototype.positionAt=function(offset){offset=Math.max(Math.min(offset,this._content.length),0);var lineOffsets=this.getLineOffsets(),low=0,high=lineOffsets.length;if(0===high)return Position.create(0,offset);for(;lowoffset?high=mid:low=mid+1}var line=low-1;return Position.create(line,offset-lineOffsets[line])},FullTextDocument.prototype.offsetAt=function(position){var lineOffsets=this.getLineOffsets();if(position.line>=lineOffsets.length)return this._content.length;if(position.line<0)return 0;var lineOffset=lineOffsets[position.line],nextLineOffset=position.line+1{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MDXContext:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.BN,MDXProvider:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.xA,useMDXComponents:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.RP,withMDXComponents:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.gz});var _lib_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js")}}]); \ No newline at end of file diff --git a/next/pr/3343/425.114b43b0.iframe.bundle.js b/next/pr/3343/425.114b43b0.iframe.bundle.js new file mode 100644 index 0000000000..8bbf60fdca --- /dev/null +++ b/next/pr/3343/425.114b43b0.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkroot=self.webpackChunkroot||[]).push([[425],{"./node_modules/@storybook/addon-docs/dist/DocsRenderer-NNNQARDV.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{DocsRenderer:()=>_chunk_HLWAVYOI_mjs__WEBPACK_IMPORTED_MODULE_0__.f});var _chunk_HLWAVYOI_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs")}}]); \ No newline at end of file diff --git a/next/pr/3343/499.7afa3868.iframe.bundle.js b/next/pr/3343/499.7afa3868.iframe.bundle.js new file mode 100644 index 0000000000..8bf078f179 --- /dev/null +++ b/next/pr/3343/499.7afa3868.iframe.bundle.js @@ -0,0 +1,143 @@ +/*! For license information please see 499.7afa3868.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunkroot=self.webpackChunkroot||[]).push([[499],{"./node_modules/@esm-bundle/chai/esm/chai.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var o,r=(function(n,o){n.exports=function e(n,o,r){function i(a,c){if(!o[a]){if(!n[a]){if(!c&&t)return t();if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=o[a]={exports:{}};n[a][0].call(f.exports,(function(e){return i(n[a][1][e]||e)}),f,f.exports,e,n,o,r)}return o[a].exports}for(var s=t,a=0;a1&&w===b.length)throw g;return}this.assert(d,"expected #{this} to "+h+"include "+t.inspect(e),"expected #{this} to not "+h+"include "+t.inspect(e))}function u(){var e=r(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")}function f(){var e=r(this,"object"),n=t.type(e);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function p(e,t){t&&r(this,"message",t);var n=r(this,"object");if(r(this,"deep")){var o=r(this,"lockSsfi");r(this,"lockSsfi",!0),this.eql(e),r(this,"lockSsfi",o)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function l(e,n){n&&r(this,"message",n),this.assert(t.eql(e,r(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function h(e,i){i&&r(this,"message",i);var s,a=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",p=r(this,"ssfi"),l=t.type(a).toLowerCase(),h=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==l&&"set"!==l&&new n(a,u,p,!0).to.have.property("length"),c||"date"!==l||"date"===h?"number"===h||!c&&"number"!==l?c||"date"===l||"number"===l?d=!1:s=f+"expected "+("string"===l?"'"+a+"'":a)+" to be a number or a date":s=f+"the argument to above must be a number":s=f+"the argument to above must be a date",d)throw new o(s,void 0,p);if(c){var y,b="length";"map"===l||"set"===l?(b="size",y=a.size):y=a.length,this.assert(y>e,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",e,y)}else this.assert(a>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function d(e,i){i&&r(this,"message",i);var s,a=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",p=r(this,"ssfi"),l=t.type(a).toLowerCase(),h=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==l&&"set"!==l&&new n(a,u,p,!0).to.have.property("length"),c||"date"!==l||"date"===h?"number"===h||!c&&"number"!==l?c||"date"===l||"number"===l?d=!1:s=f+"expected "+("string"===l?"'"+a+"'":a)+" to be a number or a date":s=f+"the argument to least must be a number":s=f+"the argument to least must be a date",d)throw new o(s,void 0,p);if(c){var y,b="length";"map"===l||"set"===l?(b="size",y=a.size):y=a.length,this.assert(y>=e,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",e,y)}else this.assert(a>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function y(e,i){i&&r(this,"message",i);var s,a=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",p=r(this,"ssfi"),l=t.type(a).toLowerCase(),h=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==l&&"set"!==l&&new n(a,u,p,!0).to.have.property("length"),c||"date"!==l||"date"===h?"number"===h||!c&&"number"!==l?c||"date"===l||"number"===l?d=!1:s=f+"expected "+("string"===l?"'"+a+"'":a)+" to be a number or a date":s=f+"the argument to below must be a number":s=f+"the argument to below must be a date",d)throw new o(s,void 0,p);if(c){var y,b="length";"map"===l||"set"===l?(b="size",y=a.size):y=a.length,this.assert(y1&&this.assert(l&&(h?t.eql(n,b):n===b),"expected #{this} to have "+g+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+t.inspect(e)+" of #{act}",n,b),r(this,"object",b)}function m(e,t,n){r(this,"own",!0),w.apply(this,arguments)}function v(e,n,o){"string"==typeof n&&(o=n,n=null),o&&r(this,"message",o);var i=r(this,"object"),s=Object.getOwnPropertyDescriptor(Object(i),e);s&&n?this.assert(t.eql(n,s),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to match "+t.inspect(n)+", got "+t.inspect(s),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to not match "+t.inspect(n),n,s,!0):this.assert(s,"expected #{this} to have an own property descriptor for "+t.inspect(e),"expected #{this} to not have an own property descriptor for "+t.inspect(e)),r(this,"object",s)}function x(){r(this,"doLength",!0)}function O(e,o){o&&r(this,"message",o);var i,s=r(this,"object"),a=t.type(s).toLowerCase(),c=r(this,"message"),u=r(this,"ssfi"),f="length";switch(a){case"map":case"set":f="size",i=s.size;break;default:new n(s,c,u,!0).to.have.property("length"),i=s.length}this.assert(i==e,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",e,i)}function j(e,t){t&&r(this,"message",t);var n=r(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function M(e){var n,i,s=r(this,"object"),a=t.type(s),c=t.type(e),u=r(this,"ssfi"),f=r(this,"deep"),p="",l=!0,h=r(this,"message"),d=(h=h?h+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===a||"Set"===a)p=f?"deeply ":"",i=[],s.forEach((function(e,t){i.push(t)})),"Array"!==c&&(e=Array.prototype.slice.call(arguments));else{switch(i=t.getOwnEnumerableProperties(s),c){case"Array":if(arguments.length>1)throw new o(d,void 0,u);break;case"Object":if(arguments.length>1)throw new o(d,void 0,u);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return"symbol"==typeof e?e:String(e)}))}if(!e.length)throw new o(h+"keys required",void 0,u);var y=e.length,b=r(this,"any"),g=r(this,"all"),w=e;if(b||g||(g=!0),b&&(l=w.some((function(e){return i.some((function(n){return f?t.eql(e,n):e===n}))}))),g&&(l=w.every((function(e){return i.some((function(n){return f?t.eql(e,n):e===n}))})),r(this,"contains")||(l=l&&e.length==i.length)),y>1){var m=(e=e.map((function(e){return t.inspect(e)}))).pop();g&&(n=e.join(", ")+", and "+m),b&&(n=e.join(", ")+", or "+m)}else n=t.inspect(e[0]);n=(y>1?"keys ":"key ")+n,n=(r(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+p+n,"expected #{this} to not "+p+n,w.slice(0).sort(t.compareByInspect),i.sort(t.compareByInspect),!0)}function P(e,o,i){i&&r(this,"message",i);var s,a=r(this,"object"),c=r(this,"ssfi"),u=r(this,"message"),f=r(this,"negate")||!1;new n(a,u,c,!0).is.a("function"),(e instanceof RegExp||"string"==typeof e)&&(o=e,e=null);try{a()}catch(e){s=e}var p=void 0===e&&void 0===o,l=Boolean(e&&o),h=!1,d=!1;if(p||!p&&!f){var y="an error";e instanceof Error?y="#{exp}":e&&(y=t.checkError.getConstructorName(e)),this.assert(s,"expected #{this} to throw "+y,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),s instanceof Error?s.toString():"string"==typeof s?s:s&&t.checkError.getConstructorName(s))}if(e&&s&&(e instanceof Error&&t.checkError.compatibleInstance(s,e)===f&&(l&&f?h=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!f?" but #{act} was thrown":""),e.toString(),s.toString())),t.checkError.compatibleConstructor(s,e)===f&&(l&&f?h=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),s instanceof Error?s.toString():s&&t.checkError.getConstructorName(s)))),s&&null!=o){var b="including";o instanceof RegExp&&(b="matching"),t.checkError.compatibleMessage(s,o)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",o,t.checkError.getMessage(s)))}h&&d&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),s instanceof Error?s.toString():s&&t.checkError.getConstructorName(s)),r(this,"object",s)}function N(e,n){n&&r(this,"message",n);var o=r(this,"object"),i=r(this,"itself"),s="function"!=typeof o||i?o[e]:o.prototype[e];this.assert("function"==typeof s,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function E(e,n){n&&r(this,"message",n);var o=e(r(this,"object"));this.assert(o,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!r(this,"negate"),o)}function S(e,t,i){i&&r(this,"message",i);var s=r(this,"object"),a=r(this,"message"),c=r(this,"ssfi");if(new n(s,a,c,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new o((a=a?a+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===t?", and a delta is required":""),void 0,c);this.assert(Math.abs(s-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function D(e,t,o){o&&r(this,"message",o);var i,s=r(this,"object"),a=r(this,"message"),c=r(this,"ssfi");new n(s,a,c,!0).is.a("function"),t?(new n(e,a,c,!0).to.have.property(t),i=e[t]):(new n(e,a,c,!0).is.a("function"),i=e()),s();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","change"),r(this,"realDelta",u!==i),this.assert(i!==u,"expected "+f+" to change","expected "+f+" to not change")}function T(e,t,o){o&&r(this,"message",o);var i,s=r(this,"object"),a=r(this,"message"),c=r(this,"ssfi");new n(s,a,c,!0).is.a("function"),t?(new n(e,a,c,!0).to.have.property(t),i=e[t]):(new n(e,a,c,!0).is.a("function"),i=e()),new n(i,a,c,!0).is.a("number"),s();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","increase"),r(this,"realDelta",u-i),this.assert(u-i>0,"expected "+f+" to increase","expected "+f+" to not increase")}function C(e,t,o){o&&r(this,"message",o);var i,s=r(this,"object"),a=r(this,"message"),c=r(this,"ssfi");new n(s,a,c,!0).is.a("function"),t?(new n(e,a,c,!0).to.have.property(t),i=e[t]):(new n(e,a,c,!0).is.a("function"),i=e()),new n(i,a,c,!0).is.a("number"),s();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","decrease"),r(this,"realDelta",i-u),this.assert(u-i<0,"expected "+f+" to decrease","expected "+f+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(e){n.addProperty(e)})),n.addProperty("not",(function(){r(this,"negate",!0)})),n.addProperty("deep",(function(){r(this,"deep",!0)})),n.addProperty("nested",(function(){r(this,"nested",!0)})),n.addProperty("own",(function(){r(this,"own",!0)})),n.addProperty("ordered",(function(){r(this,"ordered",!0)})),n.addProperty("any",(function(){r(this,"any",!0),r(this,"all",!1)})),n.addProperty("all",(function(){r(this,"all",!0),r(this,"any",!1)})),n.addChainableMethod("an",i),n.addChainableMethod("a",i),n.addChainableMethod("include",c,a),n.addChainableMethod("contain",c,a),n.addChainableMethod("contains",c,a),n.addChainableMethod("includes",c,a),n.addProperty("ok",(function(){this.assert(r(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===r(this,"object"),"expected #{this} to be true","expected #{this} to be false",!r(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===r(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!r(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===r(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===r(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(t.isNaN(r(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",(function(){var e,n=r(this,"object"),i=r(this,"ssfi"),s=r(this,"message");switch(s=s?s+": ":"",t.type(n).toLowerCase()){case"array":case"string":e=n.length;break;case"map":case"set":e=n.size;break;case"weakmap":case"weakset":throw new o(s+".empty was passed a weak collection",void 0,i);case"function":var a=s+".empty was passed a function "+t.getName(n);throw new o(a.trim(),void 0,i);default:if(n!==Object(n))throw new o(s+".empty was passed non-string primitive "+t.inspect(n),void 0,i);e=Object.keys(n).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",p),n.addMethod("equals",p),n.addMethod("eq",p),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",h),n.addMethod("gt",h),n.addMethod("greaterThan",h),n.addMethod("least",d),n.addMethod("gte",d),n.addMethod("greaterThanOrEqual",d),n.addMethod("below",y),n.addMethod("lt",y),n.addMethod("lessThan",y),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",(function(e,i,s){s&&r(this,"message",s);var a,c=r(this,"object"),u=r(this,"doLength"),f=r(this,"message"),p=f?f+": ":"",l=r(this,"ssfi"),h=t.type(c).toLowerCase(),d=t.type(e).toLowerCase(),y=t.type(i).toLowerCase(),b=!0,g="date"===d&&"date"===y?e.toUTCString()+".."+i.toUTCString():e+".."+i;if(u&&"map"!==h&&"set"!==h&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==h||"date"===d&&"date"===y?"number"===d&&"number"===y||!u&&"number"!==h?u||"date"===h||"number"===h?b=!1:a=p+"expected "+("string"===h?"'"+c+"'":c)+" to be a number or a date":a=p+"the arguments to within must be numbers":a=p+"the arguments to within must be dates",b)throw new o(a,void 0,l);if(u){var w,m="length";"map"===h||"set"===h?(m="size",w=c.size):w=c.length,this.assert(w>=e&&w<=i,"expected #{this} to have a "+m+" within "+g,"expected #{this} to not have a "+m+" within "+g)}else this.assert(c>=e&&c<=i,"expected #{this} to be within "+g,"expected #{this} to not be within "+g)})),n.addMethod("instanceof",g),n.addMethod("instanceOf",g),n.addMethod("property",w),n.addMethod("ownProperty",m),n.addMethod("haveOwnProperty",m),n.addMethod("ownPropertyDescriptor",v),n.addMethod("haveOwnPropertyDescriptor",v),n.addChainableMethod("length",O,x),n.addChainableMethod("lengthOf",O,x),n.addMethod("match",j),n.addMethod("matches",j),n.addMethod("string",(function(e,o){o&&r(this,"message",o);var i=r(this,"object"),s=r(this,"message"),a=r(this,"ssfi");new n(i,s,a,!0).is.a("string"),this.assert(~i.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))})),n.addMethod("keys",M),n.addMethod("key",M),n.addMethod("throw",P),n.addMethod("throws",P),n.addMethod("Throw",P),n.addMethod("respondTo",N),n.addMethod("respondsTo",N),n.addProperty("itself",(function(){r(this,"itself",!0)})),n.addMethod("satisfy",E),n.addMethod("satisfies",E),n.addMethod("closeTo",S),n.addMethod("approximately",S),n.addMethod("members",(function(e,o){o&&r(this,"message",o);var i=r(this,"object"),s=r(this,"message"),a=r(this,"ssfi");new n(i,s,a,!0).to.be.an("array"),new n(e,s,a,!0).to.be.an("array");var c,u,f,p=r(this,"contains"),l=r(this,"ordered");p?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var h=r(this,"deep")?t.eql:void 0;this.assert(function k(e,t,n,o,r){if(!o){if(e.length!==t.length)return!1;t=t.slice()}return e.every((function(e,i){if(r)return n?n(e,t[i]):e===t[i];if(!n){var s=t.indexOf(e);return-1!==s&&(o||t.splice(s,1),!0)}return t.some((function(r,i){return!!n(e,r)&&(o||t.splice(i,1),!0)}))}))}(e,i,h,p,l),u,f,e,i,!0)})),n.addMethod("oneOf",(function A(e,o){o&&r(this,"message",o);var i=r(this,"object"),s=r(this,"message"),a=r(this,"ssfi"),c=r(this,"contains"),u=r(this,"deep");new n(e,s,a,!0).to.be.an("array"),c?this.assert(e.some((function(e){return i.indexOf(e)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,i):u?this.assert(e.some((function(e){return t.eql(i,e)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,i):this.assert(e.indexOf(i)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,i)})),n.addMethod("change",D),n.addMethod("changes",D),n.addMethod("increase",T),n.addMethod("increases",T),n.addMethod("decrease",C),n.addMethod("decreases",C),n.addMethod("by",(function q(e,t){t&&r(this,"message",t);var n,o=r(this,"deltaMsgObj"),i=r(this,"initialDeltaValue"),s=r(this,"finalDeltaValue"),a=r(this,"deltaBehavior"),c=r(this,"realDelta");n="change"===a?Math.abs(s-i)===Math.abs(e):c===Math.abs(e),this.assert(n,"expected "+o+" to "+a+" by "+e,"expected "+o+" to not "+a+" by "+e)})),n.addProperty("extensible",(function(){var e=r(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var e=r(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var e=r(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(e){var t=r(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))}},{}],6:[function(e,t,n){t.exports=function(e,t){var n=e.Assertion,o=t.flag,r=e.assert=function(t,o){new n(null,null,e.assert,!0).assert(t,o,"[ negation message unavailable ]")};r.fail=function(t,n,o,i){throw arguments.length<2&&(o=t,t=void 0),o=o||"assert.fail()",new e.AssertionError(o,{actual:t,expected:n,operator:i},r.fail)},r.isOk=function(e,t){new n(e,t,r.isOk,!0).is.ok},r.isNotOk=function(e,t){new n(e,t,r.isNotOk,!0).is.not.ok},r.equal=function(e,t,i){var s=new n(e,i,r.equal,!0);s.assert(t==o(s,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},r.notEqual=function(e,t,i){var s=new n(e,i,r.notEqual,!0);s.assert(t!=o(s,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},r.strictEqual=function(e,t,o){new n(e,o,r.strictEqual,!0).to.equal(t)},r.notStrictEqual=function(e,t,o){new n(e,o,r.notStrictEqual,!0).to.not.equal(t)},r.deepEqual=r.deepStrictEqual=function(e,t,o){new n(e,o,r.deepEqual,!0).to.eql(t)},r.notDeepEqual=function(e,t,o){new n(e,o,r.notDeepEqual,!0).to.not.eql(t)},r.isAbove=function(e,t,o){new n(e,o,r.isAbove,!0).to.be.above(t)},r.isAtLeast=function(e,t,o){new n(e,o,r.isAtLeast,!0).to.be.least(t)},r.isBelow=function(e,t,o){new n(e,o,r.isBelow,!0).to.be.below(t)},r.isAtMost=function(e,t,o){new n(e,o,r.isAtMost,!0).to.be.most(t)},r.isTrue=function(e,t){new n(e,t,r.isTrue,!0).is.true},r.isNotTrue=function(e,t){new n(e,t,r.isNotTrue,!0).to.not.equal(!0)},r.isFalse=function(e,t){new n(e,t,r.isFalse,!0).is.false},r.isNotFalse=function(e,t){new n(e,t,r.isNotFalse,!0).to.not.equal(!1)},r.isNull=function(e,t){new n(e,t,r.isNull,!0).to.equal(null)},r.isNotNull=function(e,t){new n(e,t,r.isNotNull,!0).to.not.equal(null)},r.isNaN=function(e,t){new n(e,t,r.isNaN,!0).to.be.NaN},r.isNotNaN=function(e,t){new n(e,t,r.isNotNaN,!0).not.to.be.NaN},r.exists=function(e,t){new n(e,t,r.exists,!0).to.exist},r.notExists=function(e,t){new n(e,t,r.notExists,!0).to.not.exist},r.isUndefined=function(e,t){new n(e,t,r.isUndefined,!0).to.equal(void 0)},r.isDefined=function(e,t){new n(e,t,r.isDefined,!0).to.not.equal(void 0)},r.isFunction=function(e,t){new n(e,t,r.isFunction,!0).to.be.a("function")},r.isNotFunction=function(e,t){new n(e,t,r.isNotFunction,!0).to.not.be.a("function")},r.isObject=function(e,t){new n(e,t,r.isObject,!0).to.be.a("object")},r.isNotObject=function(e,t){new n(e,t,r.isNotObject,!0).to.not.be.a("object")},r.isArray=function(e,t){new n(e,t,r.isArray,!0).to.be.an("array")},r.isNotArray=function(e,t){new n(e,t,r.isNotArray,!0).to.not.be.an("array")},r.isString=function(e,t){new n(e,t,r.isString,!0).to.be.a("string")},r.isNotString=function(e,t){new n(e,t,r.isNotString,!0).to.not.be.a("string")},r.isNumber=function(e,t){new n(e,t,r.isNumber,!0).to.be.a("number")},r.isNotNumber=function(e,t){new n(e,t,r.isNotNumber,!0).to.not.be.a("number")},r.isFinite=function(e,t){new n(e,t,r.isFinite,!0).to.be.finite},r.isBoolean=function(e,t){new n(e,t,r.isBoolean,!0).to.be.a("boolean")},r.isNotBoolean=function(e,t){new n(e,t,r.isNotBoolean,!0).to.not.be.a("boolean")},r.typeOf=function(e,t,o){new n(e,o,r.typeOf,!0).to.be.a(t)},r.notTypeOf=function(e,t,o){new n(e,o,r.notTypeOf,!0).to.not.be.a(t)},r.instanceOf=function(e,t,o){new n(e,o,r.instanceOf,!0).to.be.instanceOf(t)},r.notInstanceOf=function(e,t,o){new n(e,o,r.notInstanceOf,!0).to.not.be.instanceOf(t)},r.include=function(e,t,o){new n(e,o,r.include,!0).include(t)},r.notInclude=function(e,t,o){new n(e,o,r.notInclude,!0).not.include(t)},r.deepInclude=function(e,t,o){new n(e,o,r.deepInclude,!0).deep.include(t)},r.notDeepInclude=function(e,t,o){new n(e,o,r.notDeepInclude,!0).not.deep.include(t)},r.nestedInclude=function(e,t,o){new n(e,o,r.nestedInclude,!0).nested.include(t)},r.notNestedInclude=function(e,t,o){new n(e,o,r.notNestedInclude,!0).not.nested.include(t)},r.deepNestedInclude=function(e,t,o){new n(e,o,r.deepNestedInclude,!0).deep.nested.include(t)},r.notDeepNestedInclude=function(e,t,o){new n(e,o,r.notDeepNestedInclude,!0).not.deep.nested.include(t)},r.ownInclude=function(e,t,o){new n(e,o,r.ownInclude,!0).own.include(t)},r.notOwnInclude=function(e,t,o){new n(e,o,r.notOwnInclude,!0).not.own.include(t)},r.deepOwnInclude=function(e,t,o){new n(e,o,r.deepOwnInclude,!0).deep.own.include(t)},r.notDeepOwnInclude=function(e,t,o){new n(e,o,r.notDeepOwnInclude,!0).not.deep.own.include(t)},r.match=function(e,t,o){new n(e,o,r.match,!0).to.match(t)},r.notMatch=function(e,t,o){new n(e,o,r.notMatch,!0).to.not.match(t)},r.property=function(e,t,o){new n(e,o,r.property,!0).to.have.property(t)},r.notProperty=function(e,t,o){new n(e,o,r.notProperty,!0).to.not.have.property(t)},r.propertyVal=function(e,t,o,i){new n(e,i,r.propertyVal,!0).to.have.property(t,o)},r.notPropertyVal=function(e,t,o,i){new n(e,i,r.notPropertyVal,!0).to.not.have.property(t,o)},r.deepPropertyVal=function(e,t,o,i){new n(e,i,r.deepPropertyVal,!0).to.have.deep.property(t,o)},r.notDeepPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepPropertyVal,!0).to.not.have.deep.property(t,o)},r.ownProperty=function(e,t,o){new n(e,o,r.ownProperty,!0).to.have.own.property(t)},r.notOwnProperty=function(e,t,o){new n(e,o,r.notOwnProperty,!0).to.not.have.own.property(t)},r.ownPropertyVal=function(e,t,o,i){new n(e,i,r.ownPropertyVal,!0).to.have.own.property(t,o)},r.notOwnPropertyVal=function(e,t,o,i){new n(e,i,r.notOwnPropertyVal,!0).to.not.have.own.property(t,o)},r.deepOwnPropertyVal=function(e,t,o,i){new n(e,i,r.deepOwnPropertyVal,!0).to.have.deep.own.property(t,o)},r.notDeepOwnPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,o)},r.nestedProperty=function(e,t,o){new n(e,o,r.nestedProperty,!0).to.have.nested.property(t)},r.notNestedProperty=function(e,t,o){new n(e,o,r.notNestedProperty,!0).to.not.have.nested.property(t)},r.nestedPropertyVal=function(e,t,o,i){new n(e,i,r.nestedPropertyVal,!0).to.have.nested.property(t,o)},r.notNestedPropertyVal=function(e,t,o,i){new n(e,i,r.notNestedPropertyVal,!0).to.not.have.nested.property(t,o)},r.deepNestedPropertyVal=function(e,t,o,i){new n(e,i,r.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,o)},r.notDeepNestedPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,o)},r.lengthOf=function(e,t,o){new n(e,o,r.lengthOf,!0).to.have.lengthOf(t)},r.hasAnyKeys=function(e,t,o){new n(e,o,r.hasAnyKeys,!0).to.have.any.keys(t)},r.hasAllKeys=function(e,t,o){new n(e,o,r.hasAllKeys,!0).to.have.all.keys(t)},r.containsAllKeys=function(e,t,o){new n(e,o,r.containsAllKeys,!0).to.contain.all.keys(t)},r.doesNotHaveAnyKeys=function(e,t,o){new n(e,o,r.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},r.doesNotHaveAllKeys=function(e,t,o){new n(e,o,r.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},r.hasAnyDeepKeys=function(e,t,o){new n(e,o,r.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},r.hasAllDeepKeys=function(e,t,o){new n(e,o,r.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},r.containsAllDeepKeys=function(e,t,o){new n(e,o,r.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},r.doesNotHaveAnyDeepKeys=function(e,t,o){new n(e,o,r.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},r.doesNotHaveAllDeepKeys=function(e,t,o){new n(e,o,r.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},r.throws=function(e,t,i,s){("string"==typeof t||t instanceof RegExp)&&(i=t,t=null);var a=new n(e,s,r.throws,!0).to.throw(t,i);return o(a,"object")},r.doesNotThrow=function(e,t,o,i){("string"==typeof t||t instanceof RegExp)&&(o=t,t=null),new n(e,i,r.doesNotThrow,!0).to.not.throw(t,o)},r.operator=function(i,s,a,c){var u;switch(s){case"==":u=i==a;break;case"===":u=i===a;break;case">":u=i>a;break;case">=":u=i>=a;break;case"<":u=i1&&n===t.length-1?"or ":"")+o+" "+e})).join(", "),c=i(e).toLowerCase();if(!t.some((function(e){return c===e})))throw new o(n+"object tested must be "+a+", but "+c+" given",void 0,s)}},{"./flag":15,"assertion-error":34,"type-detect":39}],15:[function(e,t,n){t.exports=function(e,t,n){var o=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return o[t];o[t]=n}},{}],16:[function(e,t,n){t.exports=function(e,t){return t.length>4?t[4]:e._obj}},{}],17:[function(e,t,n){t.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},{}],18:[function(e,t,n){var o=e("./flag"),r=e("./getActual"),i=e("./objDisplay");t.exports=function(e,t){var n=o(e,"negate"),s=o(e,"object"),a=t[3],c=r(e,t),u=n?t[2]:t[1],f=o(e,"message");return"function"==typeof u&&(u=u()),u=(u=u||"").replace(/#\{this\}/g,(function(){return i(s)})).replace(/#\{act\}/g,(function(){return i(c)})).replace(/#\{exp\}/g,(function(){return i(a)})),f?f+": "+u:u}},{"./flag":15,"./getActual":16,"./objDisplay":27}],19:[function(e,t,n){var o=e("type-detect"),r=e("./flag");function i(e){var t=o(e);return-1!==["Array","Object","function"].indexOf(t)}t.exports=function(e,t){var n=r(e,"operator"),o=r(e,"negate"),s=t[3],a=o?t[2]:t[1];if(n)return n;if("function"==typeof a&&(a=a()),(a=a||"")&&!/\shave\s/.test(a)){var c=i(s);return/\snot\s/.test(a)?c?"notDeepStrictEqual":"notStrictEqual":c?"deepStrictEqual":"strictEqual"}}},{"./flag":15,"type-detect":39}],20:[function(e,t,n){var o=e("./getOwnEnumerablePropertySymbols");t.exports=function(e){return Object.keys(e).concat(o(e))}},{"./getOwnEnumerablePropertySymbols":21}],21:[function(e,t,n){t.exports=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}},{}],22:[function(e,t,n){t.exports=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var o=Object.getPrototypeOf(e);null!==o;)Object.getOwnPropertyNames(o).forEach(n),o=Object.getPrototypeOf(o);return t}},{}],23:[function(e,t,n){var o=e("pathval");n.test=e("./test"),n.type=e("type-detect"),n.expectTypes=e("./expectTypes"),n.getMessage=e("./getMessage"),n.getActual=e("./getActual"),n.inspect=e("./inspect"),n.objDisplay=e("./objDisplay"),n.flag=e("./flag"),n.transferFlags=e("./transferFlags"),n.eql=e("deep-eql"),n.getPathInfo=o.getPathInfo,n.hasProperty=o.hasProperty,n.getName=e("get-func-name"),n.addProperty=e("./addProperty"),n.addMethod=e("./addMethod"),n.overwriteProperty=e("./overwriteProperty"),n.overwriteMethod=e("./overwriteMethod"),n.addChainableMethod=e("./addChainableMethod"),n.overwriteChainableMethod=e("./overwriteChainableMethod"),n.compareByInspect=e("./compareByInspect"),n.getOwnEnumerablePropertySymbols=e("./getOwnEnumerablePropertySymbols"),n.getOwnEnumerableProperties=e("./getOwnEnumerableProperties"),n.checkError=e("check-error"),n.proxify=e("./proxify"),n.addLengthGuard=e("./addLengthGuard"),n.isProxyEnabled=e("./isProxyEnabled"),n.isNaN=e("./isNaN"),n.getOperator=e("./getOperator")},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(e,t,n){var o=e("get-func-name"),r=e("./getProperties"),i=e("./getEnumerableProperties"),s=e("../config");t.exports=function a(e,t,n,o){return u({showHidden:t,seen:[],stylize:function(e){return e}},e,void 0===n?2:n)};var c=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&"nodeType"in e&&1===e.nodeType&&"string"==typeof e.nodeName};function u(e,t,s){if(t&&"function"==typeof t.inspect&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(s,e);return"string"!=typeof a&&(a=u(e,a,s)),a}var x=function f(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t==-1/0?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean");case"symbol":return e.stylize(t.toString(),"symbol");case"bigint":return e.stylize(t.toString()+"n","bigint")}if(null===t)return e.stylize("null","null")}(e,t);if(x)return x;if(c(t)){if("outerHTML"in t)return t.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(t);var j=document.createElementNS("http://www.w3.org/1999/xhtml","_");j.appendChild(t.cloneNode(!1));var M=j.innerHTML.replace("><",">"+t.innerHTML+"<");return j.innerHTML="",M}catch(e){}}var P,N,E=i(t),S=e.showHidden?r(t):E;if(0===S.length||v(t)&&(1===S.length&&"stack"===S[0]||2===S.length&&"description"===S[0]&&"stack"===S[1])){if("function"==typeof t)return N=(P=o(t))?": "+P:"",e.stylize("[Function"+N+"]","special");if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(m(t))return e.stylize(Date.prototype.toUTCString.call(t),"date");if(v(t))return p(t)}var k,A="",D=!1,T=!1,C=["{","}"];if(b(t)&&(T=!0,C=["[","]"]),g(t)&&(D=!0,C=["[","]"]),"function"==typeof t&&(A=" [Function"+(N=(P=o(t))?": "+P:"")+"]"),w(t)&&(A=" "+RegExp.prototype.toString.call(t)),m(t)&&(A=" "+Date.prototype.toUTCString.call(t)),v(t))return p(t);if(0===S.length&&(!D||0==t.length))return C[0]+A+C[1];if(s<0)return w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");if(e.seen.push(t),D)k=function l(e,t,n,o,r){for(var i=[],s=0,a=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(k,A,C)}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e){for(var t="[ ",n=0;n=s.truncateThreshold-7){t+="...";break}t+=e[n]+", "}return-1!==(t+=" ]").indexOf(", ]")&&(t=t.replace(", ]"," ]")),t}function d(e,t,n,o,r,i){var s,a,c=Object.getOwnPropertyDescriptor(t,r);if(c&&(c.get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special"))),o.indexOf(r)<0&&(s="["+r+"]"),a||(e.seen.indexOf(t[r])<0?(a=u(e,t[r],null===n?null:n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),void 0===s){if(i&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function b(e){return"object"==typeof e&&/\w+Array]$/.test(x(e))}function g(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===x(e)}function w(e){return"object"==typeof e&&"[object RegExp]"===x(e)}function m(e){return"object"==typeof e&&"[object Date]"===x(e)}function v(e){return"object"==typeof e&&"[object Error]"===x(e)}function x(e){return Object.prototype.toString.call(e)}},{"../config":4,"./getEnumerableProperties":17,"./getProperties":22,"get-func-name":37}],25:[function(e,t,n){t.exports=Number.isNaN||function o(e){return e!=e}},{}],26:[function(e,t,n){var o=e("../config");t.exports=function(){return o.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}},{"../config":4}],27:[function(e,t,n){var o=e("./inspect"),r=e("../config");t.exports=function(e){var t=o(e),n=Object.prototype.toString.call(e);if(r.truncateThreshold&&t.length>=r.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var i=Object.keys(e);return"{ Object ("+(i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", "))+") }"}return t}return t}},{"../config":4,"./inspect":24}],28:[function(e,t,n){var o=e("../../chai"),r=e("./transferFlags");t.exports=function(e,t,n,i){var s=e.__methods[t],a=s.chainingBehavior;s.chainingBehavior=function(){var e=i(a).call(this);if(void 0!==e)return e;var t=new o.Assertion;return r(this,t),t};var c=s.method;s.method=function(){var e=n(c).apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return r(this,t),t}}},{"../../chai":2,"./transferFlags":33}],29:[function(e,t,n){var o=e("./addLengthGuard"),r=e("../../chai"),i=e("./flag"),s=e("./proxify"),a=e("./transferFlags");t.exports=function(e,t,n){var c=e[t],u=function(){throw new Error(t+" is not a function")};c&&"function"==typeof c&&(u=c);var f=function(){i(this,"lockSsfi")||i(this,"ssfi",f);var e=i(this,"lockSsfi");i(this,"lockSsfi",!0);var t=n(u).apply(this,arguments);if(i(this,"lockSsfi",e),void 0!==t)return t;var o=new r.Assertion;return a(this,o),o};o(f,t,!1),e[t]=s(f,t)}},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":31,"./transferFlags":33}],30:[function(e,t,n){var o=e("../../chai"),r=e("./flag"),i=e("./isProxyEnabled"),s=e("./transferFlags");t.exports=function(e,t,n){var a=Object.getOwnPropertyDescriptor(e,t),c=function(){};a&&"function"==typeof a.get&&(c=a.get),Object.defineProperty(e,t,{get:function e(){i()||r(this,"lockSsfi")||r(this,"ssfi",e);var t=r(this,"lockSsfi");r(this,"lockSsfi",!0);var a=n(c).call(this);if(r(this,"lockSsfi",t),void 0!==a)return a;var u=new o.Assertion;return s(this,u),u},configurable:!0})}},{"../../chai":2,"./flag":15,"./isProxyEnabled":26,"./transferFlags":33}],31:[function(e,t,n){var o=e("../config"),r=e("./flag"),i=e("./getProperties"),s=e("./isProxyEnabled"),a=["__flags","__methods","_obj","assert"];t.exports=function(e,t){return s()?new Proxy(e,{get:function e(n,s){if("string"==typeof s&&-1===o.proxyExcludedKeys.indexOf(s)&&!Reflect.has(n,s)){if(t)throw Error("Invalid Chai property: "+t+"."+s+'. See docs for proper usage of "'+t+'".');var u=null,f=4;throw i(n).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&-1===a.indexOf(e)){var t=function c(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;for(var o=[],r=0;r<=e.length;r++)o[r]=Array(t.length+1).fill(0),o[r][0]=r;for(var i=0;i=n?o[r][i]=n:o[r][i]=Math.min(o[r-1][i]+1,o[r][i-1]+1,o[r-1][i-1]+(s===t.charCodeAt(i-1)?0:1))}return o[e.length][t.length]}(s,e,f);t1?i(e,n,n.length-1):e,name:s.p||s.i,value:i(e,n)};return a.exists=o(a.parent,a.name),a}t.exports={hasProperty:o,getPathInfo:a,getPathValue:function c(e,t){return a(e,t).value},setPathValue:function u(e,t,n){return function s(e,t,n){for(var o=e,r=n.length,i=null,s=0;s{"use strict";__webpack_require__.d(__webpack_exports__,{BN:()=>MDXContext,RP:()=>useMDXComponents,gz:()=>withMDXComponents,xA:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({});function withMDXComponents(Component){return function boundMDXComponent(props){const allComponents=useMDXComponents(props.components);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,{...props,allComponents})}}function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>"function"==typeof components?components(contextComponents):{...contextComponents,...components}),[contextComponents,components])}const emptyObject={};function MDXProvider({components,children,disableParentContext}){let allComponents;return allComponents=disableParentContext?"function"==typeof components?components({}):components||emptyObject:useMDXComponents(components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},children)}},"./node_modules/@stackblitz/sdk/bundles/sdk.m.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>StackBlitzSDK});const DEFAULT_FRAME_HEIGHT=300,DEFAULT_ORIGIN="https://stackblitz.com",PROJECT_TEMPLATES=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],UI_SIDEBAR_VIEWS=["project","search","ports","settings"],UI_THEMES=["light","dark"],UI_VIEWS=["editor","preview"],generators={clickToLoad:value=>trueParam("ctl",value),devToolsHeight:value=>percentParam("devtoolsheight",value),forceEmbedLayout:value=>trueParam("embed",value),hideDevTools:value=>trueParam("hidedevtools",value),hideExplorer:value=>trueParam("hideExplorer",value),hideNavigation:value=>trueParam("hideNavigation",value),openFile:value=>stringParams("file",value),showSidebar:value=>function booleanParam(name,value){if("boolean"==typeof value)return`${name}=${value?"1":"0"}`;return""}("showSidebar",value),sidebarView:value=>enumParam("sidebarView",value,UI_SIDEBAR_VIEWS),startScript:value=>stringParams("startScript",value),terminalHeight:value=>percentParam("terminalHeight",value),theme:value=>enumParam("theme",value,UI_THEMES),view:value=>enumParam("view",value,UI_VIEWS),zenMode:value=>trueParam("zenMode",value)};function buildParams(options={}){const params=Object.entries(options).map((([key,value])=>null!=value&&generators.hasOwnProperty(key)?generators[key](value):"")).filter(Boolean);return params.length?`?${params.join("&")}`:""}function trueParam(name,value){return!0===value?`${name}=1`:""}function percentParam(name,value){if("number"==typeof value&&!Number.isNaN(value)){const clamped=Math.min(100,Math.max(0,value));return`${name}=${encodeURIComponent(Math.round(clamped))}`}return""}function enumParam(name,value="",allowList=[]){return allowList.includes(value)?`${name}=${encodeURIComponent(value)}`:""}function stringParams(name,value){return(Array.isArray(value)?value:[value]).filter((val=>"string"==typeof val&&""!==val.trim())).map((val=>`${name}=${encodeURIComponent(val)}`)).join("&")}function genID(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function openUrl(route,options){return`${getOrigin(options)}${route}${buildParams(options)}`}function embedUrl(route,options){const config={forceEmbedLayout:!0};return options&&"object"==typeof options&&Object.assign(config,options),`${getOrigin(config)}${route}${buildParams(config)}`}function getOrigin(options={}){return("string"==typeof options.origin?options.origin:DEFAULT_ORIGIN).replace(/\/$/,"")}function replaceAndEmbed(target,frame,options){if(!frame||!target||!target.parentNode)throw new Error("Invalid Element");target.id&&(frame.id=target.id),target.className&&(frame.className=target.className),function setFrameDimensions(frame,options={}){const height=Object.hasOwnProperty.call(options,"height")?`${options.height}`:`${DEFAULT_FRAME_HEIGHT}`,width=Object.hasOwnProperty.call(options,"width")?`${options.width}`:void 0;frame.setAttribute("height",height),width?frame.setAttribute("width",width):frame.setAttribute("style","width:100%;")}(frame,options),target.replaceWith(frame)}function findElement(elementOrId){if("string"==typeof elementOrId){const element=document.getElementById(elementOrId);if(!element)throw new Error(`Could not find element with id '${elementOrId}'`);return element}if(elementOrId instanceof HTMLElement)return elementOrId;throw new Error(`Invalid element: ${elementOrId}`)}function openTarget(options){return options&&!1===options.newWindow?"_self":"_blank"}class RDC{constructor(port){this.pending={},this.port=port,this.port.onmessage=this.messageListener.bind(this)}request({type,payload}){return new Promise(((resolve,reject)=>{const id=genID();this.pending[id]={resolve,reject},this.port.postMessage({type,payload:{...payload,__reqid:id}})}))}messageListener(event){if("string"!=typeof event.data.payload?.__reqid)return;const{type,payload}=event.data,{__reqid:id,__success:success,__error:error}=payload;this.pending[id]&&(success?this.pending[id].resolve(this.cleanResult(payload)):this.pending[id].reject(error?`${type}: ${error}`:type),delete this.pending[id])}cleanResult(payload){const result={...payload};return delete result.__reqid,delete result.__success,delete result.__error,Object.keys(result).length?result:null}}class VM{constructor(port,config){this.editor={openFile:path=>this._rdc.request({type:"SDK_OPEN_FILE",payload:{path}}),setCurrentFile:path=>this._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path}}),setTheme:theme=>this._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme}}),setView:view=>this._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view}}),showSidebar:(visible=!0)=>this._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible}})},this.preview={origin:"",getUrl:()=>this._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then((data=>data?.url??null)),setUrl:(path="/")=>{if("string"!=typeof path||!path.startsWith("/"))throw new Error(`Invalid argument: expected a path starting with '/', got '${path}'`);return this._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path}})}},this._rdc=new RDC(port),Object.defineProperty(this.preview,"origin",{value:"string"==typeof config.previewOrigin?config.previewOrigin:null,writable:!1})}applyFsDiff(diff){const isObject=val=>null!==val&&"object"==typeof val;if(!isObject(diff)||!isObject(diff.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(diff.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:diff})}getDependencies(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}getFsSnapshot(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}const connections=[];class Connection{constructor(element){this.id=genID(),this.element=element,this.pending=new Promise(((resolve,reject)=>{const listenForSuccess=({data,ports})=>{"SDK_INIT_SUCCESS"===data?.action&&data.id===this.id&&(this.vm=new VM(ports[0],data.payload),resolve(this.vm),cleanup())},pingFrame=()=>{this.element.contentWindow?.postMessage({action:"SDK_INIT",id:this.id},"*")};function cleanup(){window.clearInterval(interval),window.removeEventListener("message",listenForSuccess)}window.addEventListener("message",listenForSuccess),pingFrame();let attempts=0;const interval=window.setInterval((()=>{if(this.vm)cleanup();else{if(attempts>=20)return cleanup(),reject("Timeout: Unable to establish a connection with the StackBlitz VM"),void connections.forEach(((connection,index)=>{connection.id===this.id&&connections.splice(index,1)}));attempts++,pingFrame()}}),500)})),connections.push(this)}}const getConnection=identifier=>{const key=identifier instanceof Element?"element":"id";return connections.find((c=>c[key]===identifier))??null};function createProjectForm({template,title,description,dependencies,files,settings}){if(!PROJECT_TEMPLATES.includes(template)){const names=PROJECT_TEMPLATES.map((t=>`'${t}'`)).join(", ");console.warn(`Unsupported project.template: must be one of ${names}`)}const inputs=[],addInput=(name,value,defaultValue="")=>{inputs.push(function createHiddenInput(name,value){const input=document.createElement("input");return input.type="hidden",input.name=name,input.value=value,input}(name,"string"==typeof value?value:defaultValue))};addInput("project[title]",title),"string"==typeof description&&description.length>0&&addInput("project[description]",description),addInput("project[template]",template,"javascript"),dependencies&&("node"===template?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):addInput("project[dependencies]",JSON.stringify(dependencies))),settings&&addInput("project[settings]",JSON.stringify(settings)),Object.entries(files).forEach((([path,contents])=>{addInput(`project[files][${function encodeFilePath(path){return path.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}(path)}]`,contents)}));const form=document.createElement("form");return form.method="POST",form.setAttribute("style","display:none!important;"),form.append(...inputs),form}function connect(frameEl){if(!frameEl?.contentWindow)return Promise.reject("Provided element is not an iframe.");return(getConnection(frameEl)??new Connection(frameEl)).pending}const StackBlitzSDK={connect,embedGithubProject:function embedGithubProject(elementOrId,repoSlug,options){const element=findElement(elementOrId),frame=document.createElement("iframe");return frame.src=embedUrl(`/github/${repoSlug}`,options),replaceAndEmbed(element,frame,options),connect(frame)},embedProject:function embedProject(elementOrId,project,options){const element=findElement(elementOrId),html=function createProjectFrameHTML(project,options){const form=createProjectForm(project);return form.action=embedUrl("/run",options),form.id="sb_run",`\n\n\n\n ${form.outerHTML}\n + + + diff --git a/next/pr/3343/css.worker.js b/next/pr/3343/css.worker.js new file mode 100644 index 0000000000..8df00c61b7 --- /dev/null +++ b/next/pr/3343/css.worker.js @@ -0,0 +1 @@ +(()=>{var __webpack_modules__={"./node_modules/process/browser.js":module=>{var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i{"use strict";const errorHandler=new class ErrorHandler{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((listener=>{listener(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function onUnexpectedError(e){isPromiseCanceledError(e)||errorHandler.onUnexpectedError(e)}function transformErrorForSerialization(error){if(error instanceof Error){let{name,message}=error;return{$isError:!0,name,message,stack:error.stacktrace||error.stack}}return error}const canceledName="Canceled";function isPromiseCanceledError(error){return error instanceof Error&&error.name===canceledName&&error.message===canceledName}Error;function once(fn){const _this=this;let result,didCall=!1;return function(){return didCall||(didCall=!0,result=fn.apply(_this,arguments)),result}}var Iterable;!function(Iterable){Iterable.is=function is(thing){return thing&&"object"==typeof thing&&"function"==typeof thing[Symbol.iterator]};const _empty=Object.freeze([]);Iterable.empty=function empty(){return _empty},Iterable.single=function*single(element){yield element},Iterable.from=function from(iterable){return iterable||_empty},Iterable.isEmpty=function isEmpty(iterable){return!iterable||!0===iterable[Symbol.iterator]().next().done},Iterable.first=function first(iterable){return iterable[Symbol.iterator]().next().value},Iterable.some=function some(iterable,predicate){for(const element of iterable)if(predicate(element))return!0;return!1},Iterable.find=function find(iterable,predicate){for(const element of iterable)if(predicate(element))return element},Iterable.filter=function*filter(iterable,predicate){for(const element of iterable)predicate(element)&&(yield element)},Iterable.map=function*map(iterable,fn){let index=0;for(const element of iterable)yield fn(element,index++)},Iterable.concat=function*concat(...iterables){for(const iterable of iterables)for(const element of iterable)yield element},Iterable.concatNested=function*concatNested(iterables){for(const iterable of iterables)for(const element of iterable)yield element},Iterable.reduce=function reduce(iterable,reducer,initialValue){let value=initialValue;for(const element of iterable)value=reducer(value,element);return value},Iterable.slice=function*slice(arr,from,to=arr.length){for(from<0&&(from+=arr.length),to<0?to+=arr.length:to>arr.length&&(to=arr.length);fromiterator}]},Iterable.equals=function equals(a,b,comparator=((at,bt)=>at===bt)){const ai=a[Symbol.iterator](),bi=b[Symbol.iterator]();for(;;){const an=ai.next(),bn=bi.next();if(an.done!==bn.done)return!1;if(an.done)return!0;if(!comparator(an.value,bn.value))return!1}}}(Iterable||(Iterable={}));let disposableTracker=null;function trackDisposable(x){return null==disposableTracker||disposableTracker.trackDisposable(x),x}function markAsDisposed(disposable){null==disposableTracker||disposableTracker.markAsDisposed(disposable)}function setParentOfDisposable(child,parent){null==disposableTracker||disposableTracker.setParent(child,parent)}class MultiDisposeError extends Error{constructor(errors){super(`Encountered errors while disposing of store. Errors: [${errors.join(", ")}]`),this.errors=errors}}function dispose(arg){if(Iterable.is(arg)){let errors=[];for(const d of arg)if(d)try{d.dispose()}catch(e){errors.push(e)}if(1===errors.length)throw errors[0];if(errors.length>1)throw new MultiDisposeError(errors);return Array.isArray(arg)?[]:arg}if(arg)return arg.dispose(),arg}function combinedDisposable(...disposables){const parent=toDisposable((()=>dispose(disposables)));return function setParentOfDisposables(children,parent){if(disposableTracker)for(const child of children)disposableTracker.setParent(child,parent)}(disposables,parent),parent}function toDisposable(fn){const self=trackDisposable({dispose:once((()=>{markAsDisposed(self),fn()}))});return self}class DisposableStore{constructor(){this._toDispose=new Set,this._isDisposed=!1,trackDisposable(this)}dispose(){this._isDisposed||(markAsDisposed(this),this._isDisposed=!0,this.clear())}clear(){try{dispose(this._toDispose.values())}finally{this._toDispose.clear()}}add(o){if(!o)return o;if(o===this)throw new Error("Cannot register a disposable on itself!");return setParentOfDisposable(o,this),this._isDisposed?DisposableStore.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(o),o}}DisposableStore.DISABLE_DISPOSED_WARNING=!1;class lifecycle_Disposable{constructor(){this._store=new DisposableStore,trackDisposable(this),setParentOfDisposable(this._store,this)}dispose(){markAsDisposed(this),this._store.dispose()}_register(o){if(o===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(o)}}lifecycle_Disposable.None=Object.freeze({dispose(){}});class Node{constructor(element){this.element=element,this.next=Node.Undefined,this.prev=Node.Undefined}}Node.Undefined=new Node(void 0);class LinkedList{constructor(){this._first=Node.Undefined,this._last=Node.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Node.Undefined}clear(){let node=this._first;for(;node!==Node.Undefined;){const next=node.next;node.prev=Node.Undefined,node.next=Node.Undefined,node=next}this._first=Node.Undefined,this._last=Node.Undefined,this._size=0}unshift(element){return this._insert(element,!1)}push(element){return this._insert(element,!0)}_insert(element,atTheEnd){const newNode=new Node(element);if(this._first===Node.Undefined)this._first=newNode,this._last=newNode;else if(atTheEnd){const oldLast=this._last;this._last=newNode,newNode.prev=oldLast,oldLast.next=newNode}else{const oldFirst=this._first;this._first=newNode,newNode.next=oldFirst,oldFirst.prev=newNode}this._size+=1;let didRemove=!1;return()=>{didRemove||(didRemove=!0,this._remove(newNode))}}shift(){if(this._first!==Node.Undefined){const res=this._first.element;return this._remove(this._first),res}}pop(){if(this._last!==Node.Undefined){const res=this._last.element;return this._remove(this._last),res}}_remove(node){if(node.prev!==Node.Undefined&&node.next!==Node.Undefined){const anchor=node.prev;anchor.next=node.next,node.next.prev=anchor}else node.prev===Node.Undefined&&node.next===Node.Undefined?(this._first=Node.Undefined,this._last=Node.Undefined):node.next===Node.Undefined?(this._last=this._last.prev,this._last.next=Node.Undefined):node.prev===Node.Undefined&&(this._first=this._first.next,this._first.prev=Node.Undefined);this._size-=1}*[Symbol.iterator](){let node=this._first;for(;node!==Node.Undefined;)yield node.element,node=node.next}}var _a,process=__webpack_require__("./node_modules/process/browser.js");let _locale,_userAgent,_isWindows=!1,_isMacintosh=!1,_isLinux=!1,_isLinuxSnap=!1,_isNative=!1,_isWeb=!1,_isIOS=!1,_language=null,_translationsConfigFile=null;const globals="object"==typeof self?self:"object"==typeof __webpack_require__.g?__webpack_require__.g:{};let nodeProcess;void 0!==globals.vscode&&void 0!==globals.vscode.process?nodeProcess=globals.vscode.process:void 0!==process&&(nodeProcess=process);const isElectronRenderer="string"==typeof(null===(_a=null==nodeProcess?void 0:nodeProcess.versions)||void 0===_a?void 0:_a.electron)&&"renderer"===nodeProcess.type;if("object"!=typeof navigator||isElectronRenderer)if("object"==typeof nodeProcess){_isWindows="win32"===nodeProcess.platform,_isMacintosh="darwin"===nodeProcess.platform,_isLinux="linux"===nodeProcess.platform,_isLinuxSnap=_isLinux&&!!nodeProcess.env.SNAP&&!!nodeProcess.env.SNAP_REVISION,_locale="en",_language="en";const rawNlsConfig=nodeProcess.env.VSCODE_NLS_CONFIG;if(rawNlsConfig)try{const nlsConfig=JSON.parse(rawNlsConfig),resolved=nlsConfig.availableLanguages["*"];_locale=nlsConfig.locale,_language=resolved||"en",_translationsConfigFile=nlsConfig._translationsConfigFile}catch(e){}_isNative=!0}else console.error("Unable to resolve platform.");else _userAgent=navigator.userAgent,_isWindows=_userAgent.indexOf("Windows")>=0,_isMacintosh=_userAgent.indexOf("Macintosh")>=0,_isIOS=(_userAgent.indexOf("Macintosh")>=0||_userAgent.indexOf("iPad")>=0||_userAgent.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_isLinux=_userAgent.indexOf("Linux")>=0,_isWeb=!0,_locale=navigator.language,_language=_locale;let _platform=0;_isMacintosh?_platform=1:_isWindows?_platform=3:_isLinux&&(_platform=2);const isWindows=_isWindows,isMacintosh=_isMacintosh,setImmediate=function defineSetImmediate(){if(globals.setImmediate)return globals.setImmediate.bind(globals);if("function"==typeof globals.postMessage&&!globals.importScripts){let pending=[];globals.addEventListener("message",(e=>{if(e.data&&e.data.vscodeSetImmediateId)for(let i=0,len=pending.length;i{const myId=++lastId;pending.push({id:myId,callback}),globals.postMessage({vscodeSetImmediateId:myId},"*")}}if("function"==typeof(null==nodeProcess?void 0:nodeProcess.nextTick))return nodeProcess.nextTick.bind(nodeProcess);const _promise=Promise.resolve();return callback=>_promise.then(callback)}();const hasPerformanceNow=globals.performance&&"function"==typeof globals.performance.now;class StopWatch{constructor(highResolution){this._highResolution=hasPerformanceNow&&highResolution,this._startTime=this._now(),this._stopTime=-1}static create(highResolution=!0){return new StopWatch(highResolution)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?globals.performance.now():Date.now()}}var Event;!function(Event){function once(event){return(listener,thisArgs=null,disposables)=>{let result,didFire=!1;return result=event((e=>{if(!didFire)return result?result.dispose():didFire=!0,listener.call(thisArgs,e)}),null,disposables),didFire&&result.dispose(),result}}function map(event,map){return snapshot(((listener,thisArgs=null,disposables)=>event((i=>listener.call(thisArgs,map(i))),null,disposables)))}function forEach(event,each){return snapshot(((listener,thisArgs=null,disposables)=>event((i=>{each(i),listener.call(thisArgs,i)}),null,disposables)))}function filter(event,filter){return snapshot(((listener,thisArgs=null,disposables)=>event((e=>filter(e)&&listener.call(thisArgs,e)),null,disposables)))}function reduce(event,merge,initial){let output=initial;return map(event,(e=>(output=merge(output,e),output)))}function snapshot(event){let listener;const emitter=new Emitter({onFirstListenerAdd(){listener=event(emitter.fire,emitter)},onLastListenerRemove(){listener.dispose()}});return emitter.event}function debounce(event,merge,delay=100,leading=!1,leakWarningThreshold){let subscription,output,handle,numDebouncedCalls=0;const emitter=new Emitter({leakWarningThreshold,onFirstListenerAdd(){subscription=event((cur=>{numDebouncedCalls++,output=merge(output,cur),leading&&!handle&&(emitter.fire(output),output=void 0),clearTimeout(handle),handle=setTimeout((()=>{const _output=output;output=void 0,handle=void 0,(!leading||numDebouncedCalls>1)&&emitter.fire(_output),numDebouncedCalls=0}),delay)}))},onLastListenerRemove(){subscription.dispose()}});return emitter.event}function latch(event,equals=((a,b)=>a===b)){let cache,firstCall=!0;return filter(event,(value=>{const shouldEmit=firstCall||!equals(value,cache);return firstCall=!1,cache=value,shouldEmit}))}Event.None=()=>lifecycle_Disposable.None,Event.once=once,Event.map=map,Event.forEach=forEach,Event.filter=filter,Event.signal=function signal(event){return event},Event.any=function any(...events){return(listener,thisArgs=null,disposables)=>combinedDisposable(...events.map((event=>event((e=>listener.call(thisArgs,e)),null,disposables))))},Event.reduce=reduce,Event.debounce=debounce,Event.latch=latch,Event.split=function split(event,isT){return[Event.filter(event,isT),Event.filter(event,(e=>!isT(e)))]},Event.buffer=function buffer(event,nextTick=!1,_buffer=[]){let buffer=_buffer.slice(),listener=event((e=>{buffer?buffer.push(e):emitter.fire(e)}));const flush=()=>{buffer&&buffer.forEach((e=>emitter.fire(e))),buffer=null},emitter=new Emitter({onFirstListenerAdd(){listener||(listener=event((e=>emitter.fire(e))))},onFirstListenerDidAdd(){buffer&&(nextTick?setTimeout(flush):flush())},onLastListenerRemove(){listener&&listener.dispose(),listener=null}});return emitter.event};class ChainableEvent{constructor(event){this.event=event}map(fn){return new ChainableEvent(map(this.event,fn))}forEach(fn){return new ChainableEvent(forEach(this.event,fn))}filter(fn){return new ChainableEvent(filter(this.event,fn))}reduce(merge,initial){return new ChainableEvent(reduce(this.event,merge,initial))}latch(){return new ChainableEvent(latch(this.event))}debounce(merge,delay=100,leading=!1,leakWarningThreshold){return new ChainableEvent(debounce(this.event,merge,delay,leading,leakWarningThreshold))}on(listener,thisArgs,disposables){return this.event(listener,thisArgs,disposables)}once(listener,thisArgs,disposables){return once(this.event)(listener,thisArgs,disposables)}}Event.chain=function chain(event){return new ChainableEvent(event)},Event.fromNodeEventEmitter=function fromNodeEventEmitter(emitter,eventName,map=(id=>id)){const fn=(...args)=>result.fire(map(...args)),result=new Emitter({onFirstListenerAdd:()=>emitter.on(eventName,fn),onLastListenerRemove:()=>emitter.removeListener(eventName,fn)});return result.event},Event.fromDOMEventEmitter=function fromDOMEventEmitter(emitter,eventName,map=(id=>id)){const fn=(...args)=>result.fire(map(...args)),result=new Emitter({onFirstListenerAdd:()=>emitter.addEventListener(eventName,fn),onLastListenerRemove:()=>emitter.removeEventListener(eventName,fn)});return result.event},Event.toPromise=function toPromise(event){return new Promise((resolve=>once(event)(resolve)))}}(Event||(Event={}));class EventProfiling{constructor(name){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${name}_${EventProfiling._idPool++}`}start(listenerCount){this._stopWatch=new StopWatch(!0),this._listenerCount=listenerCount}stop(){if(this._stopWatch){const elapsed=this._stopWatch.elapsed();this._elapsedOverall+=elapsed,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${elapsed.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}EventProfiling._idPool=0;class Emitter{constructor(options){var _a;this._disposed=!1,this._options=options,this._leakageMon=void 0,this._perfMon=(null===(_a=this._options)||void 0===_a?void 0:_a._profName)?new EventProfiling(this._options._profName):void 0}get event(){return this._event||(this._event=(listener,thisArgs,disposables)=>{var _a;this._listeners||(this._listeners=new LinkedList);const firstListener=this._listeners.isEmpty();firstListener&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const remove=this._listeners.push(thisArgs?[listener,thisArgs]:listener);firstListener&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,listener,thisArgs);const removeMonitor=null===(_a=this._leakageMon)||void 0===_a?void 0:_a.check(this._listeners.size),result=toDisposable((()=>{if(removeMonitor&&removeMonitor(),!this._disposed&&(remove(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return disposables instanceof DisposableStore?disposables.add(result):Array.isArray(disposables)&&disposables.push(result),result}),this._event}fire(event){var _a,_b;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new LinkedList);for(let listener of this._listeners)this._deliveryQueue.push([listener,event]);for(null===(_a=this._perfMon)||void 0===_a||_a.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[listener,event]=this._deliveryQueue.shift();try{"function"==typeof listener?listener.call(void 0,event):listener[0].call(listener[1],event)}catch(e){onUnexpectedError(e)}}null===(_b=this._perfMon)||void 0===_b||_b.stop()}}dispose(){var _a,_b,_c,_d,_e;this._disposed||(this._disposed=!0,null===(_a=this._listeners)||void 0===_a||_a.clear(),null===(_b=this._deliveryQueue)||void 0===_b||_b.clear(),null===(_d=null===(_c=this._options)||void 0===_c?void 0:_c.onLastListenerRemove)||void 0===_d||_d.call(_c),null===(_e=this._leakageMon)||void 0===_e||_e.dispose())}}function getAllMethodNames(obj){const methods=[];for(const prop of function getAllPropertyNames(obj){let res=[],proto=Object.getPrototypeOf(obj);for(;Object.prototype!==proto;)res=res.concat(Object.getOwnPropertyNames(proto)),proto=Object.getPrototypeOf(proto);return res}(obj))"function"==typeof obj[prop]&&methods.push(prop);return methods}function isUpperAsciiLetter(code){return code>=65&&code<=90}function isHighSurrogate(charCode){return 55296<=charCode&&charCode<=56319}function isLowSurrogate(charCode){return 56320<=charCode&&charCode<=57343}function computeCodePoint(highSurrogate,lowSurrogate){return lowSurrogate-56320+(highSurrogate-55296<<10)+65536}String.fromCharCode(65279);class GraphemeBreakTree{constructor(){this._data=function getGraphemeBreakRawData(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}()}static getInstance(){return GraphemeBreakTree._INSTANCE||(GraphemeBreakTree._INSTANCE=new GraphemeBreakTree),GraphemeBreakTree._INSTANCE}getGraphemeBreakType(codePoint){if(codePoint<32)return 10===codePoint?3:13===codePoint?2:4;if(codePoint<127)return 0;const data=this._data,nodeCount=data.length/3;let nodeIndex=1;for(;nodeIndex<=nodeCount;)if(codePointdata[3*nodeIndex+1]))return data[3*nodeIndex+2];nodeIndex=2*nodeIndex+1}return 0}}GraphemeBreakTree._INSTANCE=null;class RequestMessage{constructor(vsWorker,req,method,args){this.vsWorker=vsWorker,this.req=req,this.method=method,this.args=args,this.type=0}}class ReplyMessage{constructor(vsWorker,seq,res,err){this.vsWorker=vsWorker,this.seq=seq,this.res=res,this.err=err,this.type=1}}class SubscribeEventMessage{constructor(vsWorker,req,eventName,arg){this.vsWorker=vsWorker,this.req=req,this.eventName=eventName,this.arg=arg,this.type=2}}class EventMessage{constructor(vsWorker,req,event){this.vsWorker=vsWorker,this.req=req,this.event=event,this.type=3}}class UnsubscribeEventMessage{constructor(vsWorker,req){this.vsWorker=vsWorker,this.req=req,this.type=4}}class SimpleWorkerProtocol{constructor(handler){this._workerId=-1,this._handler=handler,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(workerId){this._workerId=workerId}sendMessage(method,args){const req=String(++this._lastSentReq);return new Promise(((resolve,reject)=>{this._pendingReplies[req]={resolve,reject},this._send(new RequestMessage(this._workerId,req,method,args))}))}listen(eventName,arg){let req=null;const emitter=new Emitter({onFirstListenerAdd:()=>{req=String(++this._lastSentReq),this._pendingEmitters.set(req,emitter),this._send(new SubscribeEventMessage(this._workerId,req,eventName,arg))},onLastListenerRemove:()=>{this._pendingEmitters.delete(req),this._send(new UnsubscribeEventMessage(this._workerId,req)),req=null}});return emitter.event}handleMessage(message){message&&message.vsWorker&&(-1!==this._workerId&&message.vsWorker!==this._workerId||this._handleMessage(message))}_handleMessage(msg){switch(msg.type){case 1:return this._handleReplyMessage(msg);case 0:return this._handleRequestMessage(msg);case 2:return this._handleSubscribeEventMessage(msg);case 3:return this._handleEventMessage(msg);case 4:return this._handleUnsubscribeEventMessage(msg)}}_handleReplyMessage(replyMessage){if(!this._pendingReplies[replyMessage.seq])return void console.warn("Got reply to unknown seq");let reply=this._pendingReplies[replyMessage.seq];if(delete this._pendingReplies[replyMessage.seq],replyMessage.err){let err=replyMessage.err;return replyMessage.err.$isError&&(err=new Error,err.name=replyMessage.err.name,err.message=replyMessage.err.message,err.stack=replyMessage.err.stack),void reply.reject(err)}reply.resolve(replyMessage.res)}_handleRequestMessage(requestMessage){let req=requestMessage.req;this._handler.handleMessage(requestMessage.method,requestMessage.args).then((r=>{this._send(new ReplyMessage(this._workerId,req,r,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=transformErrorForSerialization(e.detail)),this._send(new ReplyMessage(this._workerId,req,void 0,transformErrorForSerialization(e)))}))}_handleSubscribeEventMessage(msg){const req=msg.req,disposable=this._handler.handleEvent(msg.eventName,msg.arg)((event=>{this._send(new EventMessage(this._workerId,req,event))}));this._pendingEvents.set(req,disposable)}_handleEventMessage(msg){this._pendingEmitters.has(msg.req)?this._pendingEmitters.get(msg.req).fire(msg.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(msg){this._pendingEvents.has(msg.req)?(this._pendingEvents.get(msg.req).dispose(),this._pendingEvents.delete(msg.req)):console.warn("Got unsubscribe for unknown req")}_send(msg){let transfer=[];if(0===msg.type)for(let i=0;ifunction(){const args=Array.prototype.slice.call(arguments,0);return invoke(method,args)},createProxyDynamicEvent=eventName=>function(arg){return proxyListen(eventName,arg)};let result={};for(const methodName of methodNames)propertyIsDynamicEvent(methodName)?result[methodName]=createProxyDynamicEvent(methodName):propertyIsEvent(methodName)?result[methodName]=proxyListen(methodName,void 0):result[methodName]=createProxyMethod(methodName);return result}class SimpleWorkerServer{constructor(postMessage,requestHandlerFactory){this._requestHandlerFactory=requestHandlerFactory,this._requestHandler=null,this._protocol=new SimpleWorkerProtocol({sendMessage:(msg,transfer)=>{postMessage(msg,transfer)},handleMessage:(method,args)=>this._handleMessage(method,args),handleEvent:(eventName,arg)=>this._handleEvent(eventName,arg)})}onmessage(msg){this._protocol.handleMessage(msg)}_handleMessage(method,args){if("$initialize"===method)return this.initialize(args[0],args[1],args[2],args[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[method])return Promise.reject(new Error("Missing requestHandler or method: "+method));try{return Promise.resolve(this._requestHandler[method].apply(this._requestHandler,args))}catch(e){return Promise.reject(e)}}_handleEvent(eventName,arg){if(!this._requestHandler)throw new Error("Missing requestHandler");if(propertyIsDynamicEvent(eventName)){const event=this._requestHandler[eventName].call(this._requestHandler,arg);if("function"!=typeof event)throw new Error(`Missing dynamic event ${eventName} on request handler.`);return event}if(propertyIsEvent(eventName)){const event=this._requestHandler[eventName];if("function"!=typeof event)throw new Error(`Missing event ${eventName} on request handler.`);return event}throw new Error(`Malformed event name ${eventName}`)}initialize(workerId,loaderConfig,moduleId,hostMethods){this._protocol.setWorkerId(workerId);const hostProxy=simpleWorker_createProxyObject(hostMethods,((method,args)=>this._protocol.sendMessage(method,args)),((eventName,arg)=>this._protocol.listen(eventName,arg)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(hostProxy),Promise.resolve(getAllMethodNames(this._requestHandler))):(loaderConfig&&(void 0!==loaderConfig.baseUrl&&delete loaderConfig.baseUrl,void 0!==loaderConfig.paths&&void 0!==loaderConfig.paths.vs&&delete loaderConfig.paths.vs,void 0!==typeof loaderConfig.trustedTypesPolicy&&delete loaderConfig.trustedTypesPolicy,loaderConfig.catchError=!0,globals.require.config(loaderConfig)),new Promise(((resolve,reject)=>{(0,globals.require)([moduleId],(module=>{this._requestHandler=module.create(hostProxy),this._requestHandler?resolve(getAllMethodNames(this._requestHandler)):reject(new Error("No RequestHandler!"))}),reject)})))}}class DiffChange{constructor(originalStart,originalLength,modifiedStart,modifiedLength){this.originalStart=originalStart,this.originalLength=originalLength,this.modifiedStart=modifiedStart,this.modifiedLength=modifiedLength}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function numberHash(val,initialHashVal){return(initialHashVal<<5)-initialHashVal+val|0}function stringHash(s,hashVal){hashVal=numberHash(149417,hashVal);for(let i=0,length=s.length;i>>delta)>>>0}function fill(dest,index=0,count=dest.byteLength,value=0){for(let i=0;ib.toString(16).padStart(2,"0"))).join(""):function leftPad(value,length,char="0"){for(;value.length>>0).toString(16),bitsize/4)}class StringSHA1{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(str){const strLen=str.length;if(0===strLen)return;const buff=this._buff;let charCode,offset,buffLen=this._buffLen,leftoverHighSurrogate=this._leftoverHighSurrogate;for(0!==leftoverHighSurrogate?(charCode=leftoverHighSurrogate,offset=-1,leftoverHighSurrogate=0):(charCode=str.charCodeAt(0),offset=0);;){let codePoint=charCode;if(isHighSurrogate(charCode)){if(!(offset+1>>6,buff[buffLen++]=128|(63&codePoint)>>>0):codePoint<65536?(buff[buffLen++]=224|(61440&codePoint)>>>12,buff[buffLen++]=128|(4032&codePoint)>>>6,buff[buffLen++]=128|(63&codePoint)>>>0):(buff[buffLen++]=240|(1835008&codePoint)>>>18,buff[buffLen++]=128|(258048&codePoint)>>>12,buff[buffLen++]=128|(4032&codePoint)>>>6,buff[buffLen++]=128|(63&codePoint)>>>0),buffLen>=64&&(this._step(),buffLen-=64,this._totalLen+=64,buff[0]=buff[64],buff[1]=buff[65],buff[2]=buff[66]),buffLen}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),toHexString(this._h0)+toHexString(this._h1)+toHexString(this._h2)+toHexString(this._h3)+toHexString(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,fill(this._buff,this._buffLen),this._buffLen>56&&(this._step(),fill(this._buff));const ml=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(ml/4294967296),!1),this._buffDV.setUint32(60,ml%4294967296,!1),this._step()}_step(){const bigBlock32=StringSHA1._bigBlock32,data=this._buffDV;for(let j=0;j<64;j+=4)bigBlock32.setUint32(j,data.getUint32(j,!1),!1);for(let j=64;j<320;j+=4)bigBlock32.setUint32(j,leftRotate(bigBlock32.getUint32(j-12,!1)^bigBlock32.getUint32(j-32,!1)^bigBlock32.getUint32(j-56,!1)^bigBlock32.getUint32(j-64,!1),1),!1);let f,k,temp,a=this._h0,b=this._h1,c=this._h2,d=this._h3,e=this._h4;for(let j=0;j<80;j++)j<20?(f=b&c|~b&d,k=1518500249):j<40?(f=b^c^d,k=1859775393):j<60?(f=b&c|b&d|c&d,k=2400959708):(f=b^c^d,k=3395469782),temp=leftRotate(a,5)+f+e+k+bigBlock32.getUint32(4*j,!1)&4294967295,e=d,d=c,c=leftRotate(b,30),b=a,a=temp;this._h0=this._h0+a&4294967295,this._h1=this._h1+b&4294967295,this._h2=this._h2+c&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+e&4294967295}}StringSHA1._bigBlock32=new DataView(new ArrayBuffer(320));class StringDiffSequence{constructor(source){this.source=source}getElements(){const source=this.source,characters=new Int32Array(source.length);for(let i=0,len=source.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(originalIndex,modifiedIndex){this.m_originalStart=Math.min(this.m_originalStart,originalIndex),this.m_modifiedStart=Math.min(this.m_modifiedStart,modifiedIndex),this.m_originalCount++}AddModifiedElement(originalIndex,modifiedIndex){this.m_originalStart=Math.min(this.m_originalStart,originalIndex),this.m_modifiedStart=Math.min(this.m_modifiedStart,modifiedIndex),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class LcsDiff{constructor(originalSequence,modifiedSequence,continueProcessingPredicate=null){this.ContinueProcessingPredicate=continueProcessingPredicate,this._originalSequence=originalSequence,this._modifiedSequence=modifiedSequence;const[originalStringElements,originalElementsOrHash,originalHasStrings]=LcsDiff._getElements(originalSequence),[modifiedStringElements,modifiedElementsOrHash,modifiedHasStrings]=LcsDiff._getElements(modifiedSequence);this._hasStrings=originalHasStrings&&modifiedHasStrings,this._originalStringElements=originalStringElements,this._originalElementsOrHash=originalElementsOrHash,this._modifiedStringElements=modifiedStringElements,this._modifiedElementsOrHash=modifiedElementsOrHash,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(arr){return arr.length>0&&"string"==typeof arr[0]}static _getElements(sequence){const elements=sequence.getElements();if(LcsDiff._isStringArray(elements)){const hashes=new Int32Array(elements.length);for(let i=0,len=elements.length;i=originalStart&&modifiedEnd>=modifiedStart&&this.ElementsAreEqual(originalEnd,modifiedEnd);)originalEnd--,modifiedEnd--;if(originalStart>originalEnd||modifiedStart>modifiedEnd){let changes;return modifiedStart<=modifiedEnd?(Debug.Assert(originalStart===originalEnd+1,"originalStart should only be one more than originalEnd"),changes=[new DiffChange(originalStart,0,modifiedStart,modifiedEnd-modifiedStart+1)]):originalStart<=originalEnd?(Debug.Assert(modifiedStart===modifiedEnd+1,"modifiedStart should only be one more than modifiedEnd"),changes=[new DiffChange(originalStart,originalEnd-originalStart+1,modifiedStart,0)]):(Debug.Assert(originalStart===originalEnd+1,"originalStart should only be one more than originalEnd"),Debug.Assert(modifiedStart===modifiedEnd+1,"modifiedStart should only be one more than modifiedEnd"),changes=[]),changes}const midOriginalArr=[0],midModifiedArr=[0],result=this.ComputeRecursionPoint(originalStart,originalEnd,modifiedStart,modifiedEnd,midOriginalArr,midModifiedArr,quitEarlyArr),midOriginal=midOriginalArr[0],midModified=midModifiedArr[0];if(null!==result)return result;if(!quitEarlyArr[0]){const leftChanges=this.ComputeDiffRecursive(originalStart,midOriginal,modifiedStart,midModified,quitEarlyArr);let rightChanges=[];return rightChanges=quitEarlyArr[0]?[new DiffChange(midOriginal+1,originalEnd-(midOriginal+1)+1,midModified+1,modifiedEnd-(midModified+1)+1)]:this.ComputeDiffRecursive(midOriginal+1,originalEnd,midModified+1,modifiedEnd,quitEarlyArr),this.ConcatenateChanges(leftChanges,rightChanges)}return[new DiffChange(originalStart,originalEnd-originalStart+1,modifiedStart,modifiedEnd-modifiedStart+1)]}WALKTRACE(diagonalForwardBase,diagonalForwardStart,diagonalForwardEnd,diagonalForwardOffset,diagonalReverseBase,diagonalReverseStart,diagonalReverseEnd,diagonalReverseOffset,forwardPoints,reversePoints,originalIndex,originalEnd,midOriginalArr,modifiedIndex,modifiedEnd,midModifiedArr,deltaIsEven,quitEarlyArr){let forwardChanges=null,reverseChanges=null,changeHelper=new DiffChangeHelper,diagonalMin=diagonalForwardStart,diagonalMax=diagonalForwardEnd,diagonalRelative=midOriginalArr[0]-midModifiedArr[0]-diagonalForwardOffset,lastOriginalIndex=-1073741824,historyIndex=this.m_forwardHistory.length-1;do{const diagonal=diagonalRelative+diagonalForwardBase;diagonal===diagonalMin||diagonal=0&&(diagonalForwardBase=(forwardPoints=this.m_forwardHistory[historyIndex])[0],diagonalMin=1,diagonalMax=forwardPoints.length-1)}while(--historyIndex>=-1);if(forwardChanges=changeHelper.getReverseChanges(),quitEarlyArr[0]){let originalStartPoint=midOriginalArr[0]+1,modifiedStartPoint=midModifiedArr[0]+1;if(null!==forwardChanges&&forwardChanges.length>0){const lastForwardChange=forwardChanges[forwardChanges.length-1];originalStartPoint=Math.max(originalStartPoint,lastForwardChange.getOriginalEnd()),modifiedStartPoint=Math.max(modifiedStartPoint,lastForwardChange.getModifiedEnd())}reverseChanges=[new DiffChange(originalStartPoint,originalEnd-originalStartPoint+1,modifiedStartPoint,modifiedEnd-modifiedStartPoint+1)]}else{changeHelper=new DiffChangeHelper,diagonalMin=diagonalReverseStart,diagonalMax=diagonalReverseEnd,diagonalRelative=midOriginalArr[0]-midModifiedArr[0]-diagonalReverseOffset,lastOriginalIndex=1073741824,historyIndex=deltaIsEven?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const diagonal=diagonalRelative+diagonalReverseBase;diagonal===diagonalMin||diagonal=reversePoints[diagonal+1]?(modifiedIndex=(originalIndex=reversePoints[diagonal+1]-1)-diagonalRelative-diagonalReverseOffset,originalIndex>lastOriginalIndex&&changeHelper.MarkNextChange(),lastOriginalIndex=originalIndex+1,changeHelper.AddOriginalElement(originalIndex+1,modifiedIndex+1),diagonalRelative=diagonal+1-diagonalReverseBase):(modifiedIndex=(originalIndex=reversePoints[diagonal-1])-diagonalRelative-diagonalReverseOffset,originalIndex>lastOriginalIndex&&changeHelper.MarkNextChange(),lastOriginalIndex=originalIndex,changeHelper.AddModifiedElement(originalIndex+1,modifiedIndex+1),diagonalRelative=diagonal-1-diagonalReverseBase),historyIndex>=0&&(diagonalReverseBase=(reversePoints=this.m_reverseHistory[historyIndex])[0],diagonalMin=1,diagonalMax=reversePoints.length-1)}while(--historyIndex>=-1);reverseChanges=changeHelper.getChanges()}return this.ConcatenateChanges(forwardChanges,reverseChanges)}ComputeRecursionPoint(originalStart,originalEnd,modifiedStart,modifiedEnd,midOriginalArr,midModifiedArr,quitEarlyArr){let originalIndex=0,modifiedIndex=0,diagonalForwardStart=0,diagonalForwardEnd=0,diagonalReverseStart=0,diagonalReverseEnd=0;originalStart--,modifiedStart--,midOriginalArr[0]=0,midModifiedArr[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const maxDifferences=originalEnd-originalStart+(modifiedEnd-modifiedStart),numDiagonals=maxDifferences+1,forwardPoints=new Int32Array(numDiagonals),reversePoints=new Int32Array(numDiagonals),diagonalForwardBase=modifiedEnd-modifiedStart,diagonalReverseBase=originalEnd-originalStart,diagonalForwardOffset=originalStart-modifiedStart,diagonalReverseOffset=originalEnd-modifiedEnd,deltaIsEven=(diagonalReverseBase-diagonalForwardBase)%2==0;forwardPoints[diagonalForwardBase]=originalStart,reversePoints[diagonalReverseBase]=originalEnd,quitEarlyArr[0]=!1;for(let numDifferences=1;numDifferences<=maxDifferences/2+1;numDifferences++){let furthestOriginalIndex=0,furthestModifiedIndex=0;diagonalForwardStart=this.ClipDiagonalBound(diagonalForwardBase-numDifferences,numDifferences,diagonalForwardBase,numDiagonals),diagonalForwardEnd=this.ClipDiagonalBound(diagonalForwardBase+numDifferences,numDifferences,diagonalForwardBase,numDiagonals);for(let diagonal=diagonalForwardStart;diagonal<=diagonalForwardEnd;diagonal+=2){originalIndex=diagonal===diagonalForwardStart||diagonalfurthestOriginalIndex+furthestModifiedIndex&&(furthestOriginalIndex=originalIndex,furthestModifiedIndex=modifiedIndex),!deltaIsEven&&Math.abs(diagonal-diagonalReverseBase)<=numDifferences-1&&originalIndex>=reversePoints[diagonal])return midOriginalArr[0]=originalIndex,midModifiedArr[0]=modifiedIndex,tempOriginalIndex<=reversePoints[diagonal]&&numDifferences<=1448?this.WALKTRACE(diagonalForwardBase,diagonalForwardStart,diagonalForwardEnd,diagonalForwardOffset,diagonalReverseBase,diagonalReverseStart,diagonalReverseEnd,diagonalReverseOffset,forwardPoints,reversePoints,originalIndex,originalEnd,midOriginalArr,modifiedIndex,modifiedEnd,midModifiedArr,deltaIsEven,quitEarlyArr):null}const matchLengthOfLongest=(furthestOriginalIndex-originalStart+(furthestModifiedIndex-modifiedStart)-numDifferences)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(furthestOriginalIndex,matchLengthOfLongest))return quitEarlyArr[0]=!0,midOriginalArr[0]=furthestOriginalIndex,midModifiedArr[0]=furthestModifiedIndex,matchLengthOfLongest>0&&numDifferences<=1448?this.WALKTRACE(diagonalForwardBase,diagonalForwardStart,diagonalForwardEnd,diagonalForwardOffset,diagonalReverseBase,diagonalReverseStart,diagonalReverseEnd,diagonalReverseOffset,forwardPoints,reversePoints,originalIndex,originalEnd,midOriginalArr,modifiedIndex,modifiedEnd,midModifiedArr,deltaIsEven,quitEarlyArr):(originalStart++,modifiedStart++,[new DiffChange(originalStart,originalEnd-originalStart+1,modifiedStart,modifiedEnd-modifiedStart+1)]);diagonalReverseStart=this.ClipDiagonalBound(diagonalReverseBase-numDifferences,numDifferences,diagonalReverseBase,numDiagonals),diagonalReverseEnd=this.ClipDiagonalBound(diagonalReverseBase+numDifferences,numDifferences,diagonalReverseBase,numDiagonals);for(let diagonal=diagonalReverseStart;diagonal<=diagonalReverseEnd;diagonal+=2){originalIndex=diagonal===diagonalReverseStart||diagonal=reversePoints[diagonal+1]?reversePoints[diagonal+1]-1:reversePoints[diagonal-1],modifiedIndex=originalIndex-(diagonal-diagonalReverseBase)-diagonalReverseOffset;const tempOriginalIndex=originalIndex;for(;originalIndex>originalStart&&modifiedIndex>modifiedStart&&this.ElementsAreEqual(originalIndex,modifiedIndex);)originalIndex--,modifiedIndex--;if(reversePoints[diagonal]=originalIndex,deltaIsEven&&Math.abs(diagonal-diagonalForwardBase)<=numDifferences&&originalIndex<=forwardPoints[diagonal])return midOriginalArr[0]=originalIndex,midModifiedArr[0]=modifiedIndex,tempOriginalIndex>=forwardPoints[diagonal]&&numDifferences<=1448?this.WALKTRACE(diagonalForwardBase,diagonalForwardStart,diagonalForwardEnd,diagonalForwardOffset,diagonalReverseBase,diagonalReverseStart,diagonalReverseEnd,diagonalReverseOffset,forwardPoints,reversePoints,originalIndex,originalEnd,midOriginalArr,modifiedIndex,modifiedEnd,midModifiedArr,deltaIsEven,quitEarlyArr):null}if(numDifferences<=1447){let temp=new Int32Array(diagonalForwardEnd-diagonalForwardStart+2);temp[0]=diagonalForwardBase-diagonalForwardStart+1,MyArray.Copy2(forwardPoints,diagonalForwardStart,temp,1,diagonalForwardEnd-diagonalForwardStart+1),this.m_forwardHistory.push(temp),temp=new Int32Array(diagonalReverseEnd-diagonalReverseStart+2),temp[0]=diagonalReverseBase-diagonalReverseStart+1,MyArray.Copy2(reversePoints,diagonalReverseStart,temp,1,diagonalReverseEnd-diagonalReverseStart+1),this.m_reverseHistory.push(temp)}}return this.WALKTRACE(diagonalForwardBase,diagonalForwardStart,diagonalForwardEnd,diagonalForwardOffset,diagonalReverseBase,diagonalReverseStart,diagonalReverseEnd,diagonalReverseOffset,forwardPoints,reversePoints,originalIndex,originalEnd,midOriginalArr,modifiedIndex,modifiedEnd,midModifiedArr,deltaIsEven,quitEarlyArr)}PrettifyChanges(changes){for(let i=0;i0,checkModified=change.modifiedLength>0;for(;change.originalStart+change.originalLength=0;i--){const change=changes[i];let originalStop=0,modifiedStop=0;if(i>0){const prevChange=changes[i-1];originalStop=prevChange.originalStart+prevChange.originalLength,modifiedStop=prevChange.modifiedStart+prevChange.modifiedLength}const checkOriginal=change.originalLength>0,checkModified=change.modifiedLength>0;let bestDelta=0,bestScore=this._boundaryScore(change.originalStart,change.originalLength,change.modifiedStart,change.modifiedLength);for(let delta=1;;delta++){const originalStart=change.originalStart-delta,modifiedStart=change.modifiedStart-delta;if(originalStartbestScore&&(bestScore=score,bestDelta=delta)}change.originalStart-=bestDelta,change.modifiedStart-=bestDelta;const mergedChangeArr=[null];i>0&&this.ChangesOverlap(changes[i-1],changes[i],mergedChangeArr)&&(changes[i-1]=mergedChangeArr[0],changes.splice(i,1),i++)}if(this._hasStrings)for(let i=1,len=changes.length;i0&&score>bestScore&&(bestScore=score,bestOriginalStart=i,bestModifiedStart=j)}return bestScore>0?[bestOriginalStart,bestModifiedStart]:null}_contiguousSequenceScore(originalStart,modifiedStart,length){let score=0;for(let l=0;l=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[index])}_OriginalRegionIsBoundary(originalStart,originalLength){if(this._OriginalIsBoundary(originalStart)||this._OriginalIsBoundary(originalStart-1))return!0;if(originalLength>0){const originalEnd=originalStart+originalLength;if(this._OriginalIsBoundary(originalEnd-1)||this._OriginalIsBoundary(originalEnd))return!0}return!1}_ModifiedIsBoundary(index){return index<=0||index>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[index])}_ModifiedRegionIsBoundary(modifiedStart,modifiedLength){if(this._ModifiedIsBoundary(modifiedStart)||this._ModifiedIsBoundary(modifiedStart-1))return!0;if(modifiedLength>0){const modifiedEnd=modifiedStart+modifiedLength;if(this._ModifiedIsBoundary(modifiedEnd-1)||this._ModifiedIsBoundary(modifiedEnd))return!0}return!1}_boundaryScore(originalStart,originalLength,modifiedStart,modifiedLength){return(this._OriginalRegionIsBoundary(originalStart,originalLength)?1:0)+(this._ModifiedRegionIsBoundary(modifiedStart,modifiedLength)?1:0)}ConcatenateChanges(left,right){let mergedChangeArr=[];if(0===left.length||0===right.length)return right.length>0?right:left;if(this.ChangesOverlap(left[left.length-1],right[0],mergedChangeArr)){const result=new Array(left.length+right.length-1);return MyArray.Copy(left,0,result,0,left.length-1),result[left.length-1]=mergedChangeArr[0],MyArray.Copy(right,1,result,left.length,right.length-1),result}{const result=new Array(left.length+right.length);return MyArray.Copy(left,0,result,0,left.length),MyArray.Copy(right,0,result,left.length,right.length),result}}ChangesOverlap(left,right,mergedChangeArr){if(Debug.Assert(left.originalStart<=right.originalStart,"Left change is not less than or equal to right change"),Debug.Assert(left.modifiedStart<=right.modifiedStart,"Left change is not less than or equal to right change"),left.originalStart+left.originalLength>=right.originalStart||left.modifiedStart+left.modifiedLength>=right.modifiedStart){const originalStart=left.originalStart;let originalLength=left.originalLength;const modifiedStart=left.modifiedStart;let modifiedLength=left.modifiedLength;return left.originalStart+left.originalLength>=right.originalStart&&(originalLength=right.originalStart+right.originalLength-left.originalStart),left.modifiedStart+left.modifiedLength>=right.modifiedStart&&(modifiedLength=right.modifiedStart+right.modifiedLength-left.modifiedStart),mergedChangeArr[0]=new DiffChange(originalStart,originalLength,modifiedStart,modifiedLength),!0}return mergedChangeArr[0]=null,!1}ClipDiagonalBound(diagonal,numDifferences,diagonalBaseIndex,numDiagonals){if(diagonal>=0&&diagonalsandboxProcess.cwd(),nextTick:callback=>setImmediate(callback)}}else safeProcess=void 0!==process_process?{get platform(){return process_process.platform},get arch(){return process_process.arch},get env(){return process_process.env},cwd:()=>process_process.env.VSCODE_CWD||process_process.cwd(),nextTick:callback=>process_process.nextTick(callback)}:{get platform(){return isWindows?"win32":isMacintosh?"darwin":"linux"},get arch(){},nextTick:callback=>setImmediate(callback),get env(){return{}},cwd:()=>"/"};const cwd=safeProcess.cwd,env=safeProcess.env,platform=safeProcess.platform;class ErrorInvalidArgType extends Error{constructor(name,expected,actual){let determiner;"string"==typeof expected&&0===expected.indexOf("not ")?(determiner="must not be",expected=expected.replace(/^not /,"")):determiner="must be";const type=-1!==name.indexOf(".")?"property":"argument";let msg=`The "${name}" ${type} ${determiner} of type ${expected}`;msg+=". Received type "+typeof actual,super(msg),this.code="ERR_INVALID_ARG_TYPE"}}function validateString(value,name){if("string"!=typeof value)throw new ErrorInvalidArgType(name,"string",value)}function isPathSeparator(code){return 47===code||92===code}function isPosixPathSeparator(code){return 47===code}function isWindowsDeviceRoot(code){return code>=65&&code<=90||code>=97&&code<=122}function normalizeString(path,allowAboveRoot,separator,isPathSeparator){let res="",lastSegmentLength=0,lastSlash=-1,dots=0,code=0;for(let i=0;i<=path.length;++i){if(i2){const lastSlashIndex=res.lastIndexOf(separator);-1===lastSlashIndex?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf(separator)),lastSlash=i,dots=0;continue}if(0!==res.length){res="",lastSegmentLength=0,lastSlash=i,dots=0;continue}}allowAboveRoot&&(res+=res.length>0?`${separator}..`:"..",lastSegmentLength=2)}else res.length>0?res+=`${separator}${path.slice(lastSlash+1,i)}`:res=path.slice(lastSlash+1,i),lastSegmentLength=i-lastSlash-1;lastSlash=i,dots=0}else 46===code&&-1!==dots?++dots:dots=-1}return res}function _format(sep,pathObject){if(null===pathObject||"object"!=typeof pathObject)throw new ErrorInvalidArgType("pathObject","Object",pathObject);const dir=pathObject.dir||pathObject.root,base=pathObject.base||`${pathObject.name||""}${pathObject.ext||""}`;return dir?dir===pathObject.root?`${dir}${base}`:`${dir}${sep}${base}`:base}const win32={resolve(...pathSegments){let resolvedDevice="",resolvedTail="",resolvedAbsolute=!1;for(let i=pathSegments.length-1;i>=-1;i--){let path;if(i>=0){if(path=pathSegments[i],validateString(path,"path"),0===path.length)continue}else 0===resolvedDevice.length?path=cwd():(path=env[`=${resolvedDevice}`]||cwd(),(void 0===path||path.slice(0,2).toLowerCase()!==resolvedDevice.toLowerCase()&&92===path.charCodeAt(2))&&(path=`${resolvedDevice}\\`));const len=path.length;let rootEnd=0,device="",isAbsolute=!1;const code=path.charCodeAt(0);if(1===len)isPathSeparator(code)&&(rootEnd=1,isAbsolute=!0);else if(isPathSeparator(code))if(isAbsolute=!0,isPathSeparator(path.charCodeAt(1))){let j=2,last=j;for(;j2&&isPathSeparator(path.charCodeAt(2))&&(isAbsolute=!0,rootEnd=3));if(device.length>0)if(resolvedDevice.length>0){if(device.toLowerCase()!==resolvedDevice.toLowerCase())continue}else resolvedDevice=device;if(resolvedAbsolute){if(resolvedDevice.length>0)break}else if(resolvedTail=`${path.slice(rootEnd)}\\${resolvedTail}`,resolvedAbsolute=isAbsolute,isAbsolute&&resolvedDevice.length>0)break}return resolvedTail=normalizeString(resolvedTail,!resolvedAbsolute,"\\",isPathSeparator),resolvedAbsolute?`${resolvedDevice}\\${resolvedTail}`:`${resolvedDevice}${resolvedTail}`||"."},normalize(path){validateString(path,"path");const len=path.length;if(0===len)return".";let device,rootEnd=0,isAbsolute=!1;const code=path.charCodeAt(0);if(1===len)return isPosixPathSeparator(code)?"\\":path;if(isPathSeparator(code))if(isAbsolute=!0,isPathSeparator(path.charCodeAt(1))){let j=2,last=j;for(;j2&&isPathSeparator(path.charCodeAt(2))&&(isAbsolute=!0,rootEnd=3));let tail=rootEnd0&&isPathSeparator(path.charCodeAt(len-1))&&(tail+="\\"),void 0===device?isAbsolute?`\\${tail}`:tail:isAbsolute?`${device}\\${tail}`:`${device}${tail}`},isAbsolute(path){validateString(path,"path");const len=path.length;if(0===len)return!1;const code=path.charCodeAt(0);return isPathSeparator(code)||len>2&&isWindowsDeviceRoot(code)&&58===path.charCodeAt(1)&&isPathSeparator(path.charCodeAt(2))},join(...paths){if(0===paths.length)return".";let joined,firstPart;for(let i=0;i0&&(void 0===joined?joined=firstPart=arg:joined+=`\\${arg}`)}if(void 0===joined)return".";let needsReplace=!0,slashCount=0;if("string"==typeof firstPart&&isPathSeparator(firstPart.charCodeAt(0))){++slashCount;const firstLen=firstPart.length;firstLen>1&&isPathSeparator(firstPart.charCodeAt(1))&&(++slashCount,firstLen>2&&(isPathSeparator(firstPart.charCodeAt(2))?++slashCount:needsReplace=!1))}if(needsReplace){for(;slashCount=2&&(joined=`\\${joined.slice(slashCount)}`)}return win32.normalize(joined)},relative(from,to){if(validateString(from,"from"),validateString(to,"to"),from===to)return"";const fromOrig=win32.resolve(from),toOrig=win32.resolve(to);if(fromOrig===toOrig)return"";if((from=fromOrig.toLowerCase())===(to=toOrig.toLowerCase()))return"";let fromStart=0;for(;fromStartfromStart&&92===from.charCodeAt(fromEnd-1);)fromEnd--;const fromLen=fromEnd-fromStart;let toStart=0;for(;toStarttoStart&&92===to.charCodeAt(toEnd-1);)toEnd--;const toLen=toEnd-toStart,length=fromLenlength){if(92===to.charCodeAt(toStart+i))return toOrig.slice(toStart+i+1);if(2===i)return toOrig.slice(toStart+i)}fromLen>length&&(92===from.charCodeAt(fromStart+i)?lastCommonSep=i:2===i&&(lastCommonSep=3)),-1===lastCommonSep&&(lastCommonSep=0)}let out="";for(i=fromStart+lastCommonSep+1;i<=fromEnd;++i)i!==fromEnd&&92!==from.charCodeAt(i)||(out+=0===out.length?"..":"\\..");return toStart+=lastCommonSep,out.length>0?`${out}${toOrig.slice(toStart,toEnd)}`:(92===toOrig.charCodeAt(toStart)&&++toStart,toOrig.slice(toStart,toEnd))},toNamespacedPath(path){if("string"!=typeof path)return path;if(0===path.length)return"";const resolvedPath=win32.resolve(path);if(resolvedPath.length<=2)return path;if(92===resolvedPath.charCodeAt(0)){if(92===resolvedPath.charCodeAt(1)){const code=resolvedPath.charCodeAt(2);if(63!==code&&46!==code)return`\\\\?\\UNC\\${resolvedPath.slice(2)}`}}else if(isWindowsDeviceRoot(resolvedPath.charCodeAt(0))&&58===resolvedPath.charCodeAt(1)&&92===resolvedPath.charCodeAt(2))return`\\\\?\\${resolvedPath}`;return path},dirname(path){validateString(path,"path");const len=path.length;if(0===len)return".";let rootEnd=-1,offset=0;const code=path.charCodeAt(0);if(1===len)return isPathSeparator(code)?path:".";if(isPathSeparator(code)){if(rootEnd=offset=1,isPathSeparator(path.charCodeAt(1))){let j=2,last=j;for(;j2&&isPathSeparator(path.charCodeAt(2))?3:2,offset=rootEnd);let end=-1,matchedSlash=!0;for(let i=len-1;i>=offset;--i)if(isPathSeparator(path.charCodeAt(i))){if(!matchedSlash){end=i;break}}else matchedSlash=!1;if(-1===end){if(-1===rootEnd)return".";end=rootEnd}return path.slice(0,end)},basename(path,ext){void 0!==ext&&validateString(ext,"ext"),validateString(path,"path");let i,start=0,end=-1,matchedSlash=!0;if(path.length>=2&&isWindowsDeviceRoot(path.charCodeAt(0))&&58===path.charCodeAt(1)&&(start=2),void 0!==ext&&ext.length>0&&ext.length<=path.length){if(ext===path)return"";let extIdx=ext.length-1,firstNonSlashEnd=-1;for(i=path.length-1;i>=start;--i){const code=path.charCodeAt(i);if(isPathSeparator(code)){if(!matchedSlash){start=i+1;break}}else-1===firstNonSlashEnd&&(matchedSlash=!1,firstNonSlashEnd=i+1),extIdx>=0&&(code===ext.charCodeAt(extIdx)?-1==--extIdx&&(end=i):(extIdx=-1,end=firstNonSlashEnd))}return start===end?end=firstNonSlashEnd:-1===end&&(end=path.length),path.slice(start,end)}for(i=path.length-1;i>=start;--i)if(isPathSeparator(path.charCodeAt(i))){if(!matchedSlash){start=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1);return-1===end?"":path.slice(start,end)},extname(path){validateString(path,"path");let start=0,startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0;path.length>=2&&58===path.charCodeAt(1)&&isWindowsDeviceRoot(path.charCodeAt(0))&&(start=startPart=2);for(let i=path.length-1;i>=start;--i){const code=path.charCodeAt(i);if(isPathSeparator(code)){if(!matchedSlash){startPart=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1)}return-1===startDot||-1===end||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)},format:_format.bind(null,"\\"),parse(path){validateString(path,"path");const ret={root:"",dir:"",base:"",ext:"",name:""};if(0===path.length)return ret;const len=path.length;let rootEnd=0,code=path.charCodeAt(0);if(1===len)return isPathSeparator(code)?(ret.root=ret.dir=path,ret):(ret.base=ret.name=path,ret);if(isPathSeparator(code)){if(rootEnd=1,isPathSeparator(path.charCodeAt(1))){let j=2,last=j;for(;j0&&(ret.root=path.slice(0,rootEnd));let startDot=-1,startPart=rootEnd,end=-1,matchedSlash=!0,i=path.length-1,preDotState=0;for(;i>=rootEnd;--i)if(code=path.charCodeAt(i),isPathSeparator(code)){if(!matchedSlash){startPart=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1);return-1!==end&&(-1===startDot||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?ret.base=ret.name=path.slice(startPart,end):(ret.name=path.slice(startPart,startDot),ret.base=path.slice(startPart,end),ret.ext=path.slice(startDot,end))),ret.dir=startPart>0&&startPart!==rootEnd?path.slice(0,startPart-1):ret.root,ret},sep:"\\",delimiter:";",win32:null,posix:null},posix={resolve(...pathSegments){let resolvedPath="",resolvedAbsolute=!1;for(let i=pathSegments.length-1;i>=-1&&!resolvedAbsolute;i--){const path=i>=0?pathSegments[i]:cwd();validateString(path,"path"),0!==path.length&&(resolvedPath=`${path}/${resolvedPath}`,resolvedAbsolute=47===path.charCodeAt(0))}return resolvedPath=normalizeString(resolvedPath,!resolvedAbsolute,"/",isPosixPathSeparator),resolvedAbsolute?`/${resolvedPath}`:resolvedPath.length>0?resolvedPath:"."},normalize(path){if(validateString(path,"path"),0===path.length)return".";const isAbsolute=47===path.charCodeAt(0),trailingSeparator=47===path.charCodeAt(path.length-1);return 0===(path=normalizeString(path,!isAbsolute,"/",isPosixPathSeparator)).length?isAbsolute?"/":trailingSeparator?"./":".":(trailingSeparator&&(path+="/"),isAbsolute?`/${path}`:path)},isAbsolute:path=>(validateString(path,"path"),path.length>0&&47===path.charCodeAt(0)),join(...paths){if(0===paths.length)return".";let joined;for(let i=0;i0&&(void 0===joined?joined=arg:joined+=`/${arg}`)}return void 0===joined?".":posix.normalize(joined)},relative(from,to){if(validateString(from,"from"),validateString(to,"to"),from===to)return"";if((from=posix.resolve(from))===(to=posix.resolve(to)))return"";const fromEnd=from.length,fromLen=fromEnd-1,toLen=to.length-1,length=fromLenlength){if(47===to.charCodeAt(1+i))return to.slice(1+i+1);if(0===i)return to.slice(1+i)}else fromLen>length&&(47===from.charCodeAt(1+i)?lastCommonSep=i:0===i&&(lastCommonSep=0));let out="";for(i=1+lastCommonSep+1;i<=fromEnd;++i)i!==fromEnd&&47!==from.charCodeAt(i)||(out+=0===out.length?"..":"/..");return`${out}${to.slice(1+lastCommonSep)}`},toNamespacedPath:path=>path,dirname(path){if(validateString(path,"path"),0===path.length)return".";const hasRoot=47===path.charCodeAt(0);let end=-1,matchedSlash=!0;for(let i=path.length-1;i>=1;--i)if(47===path.charCodeAt(i)){if(!matchedSlash){end=i;break}}else matchedSlash=!1;return-1===end?hasRoot?"/":".":hasRoot&&1===end?"//":path.slice(0,end)},basename(path,ext){void 0!==ext&&validateString(ext,"ext"),validateString(path,"path");let i,start=0,end=-1,matchedSlash=!0;if(void 0!==ext&&ext.length>0&&ext.length<=path.length){if(ext===path)return"";let extIdx=ext.length-1,firstNonSlashEnd=-1;for(i=path.length-1;i>=0;--i){const code=path.charCodeAt(i);if(47===code){if(!matchedSlash){start=i+1;break}}else-1===firstNonSlashEnd&&(matchedSlash=!1,firstNonSlashEnd=i+1),extIdx>=0&&(code===ext.charCodeAt(extIdx)?-1==--extIdx&&(end=i):(extIdx=-1,end=firstNonSlashEnd))}return start===end?end=firstNonSlashEnd:-1===end&&(end=path.length),path.slice(start,end)}for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!matchedSlash){start=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1);return-1===end?"":path.slice(start,end)},extname(path){validateString(path,"path");let startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0;for(let i=path.length-1;i>=0;--i){const code=path.charCodeAt(i);if(47!==code)-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1);else if(!matchedSlash){startPart=i+1;break}}return-1===startDot||-1===end||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)},format:_format.bind(null,"/"),parse(path){validateString(path,"path");const ret={root:"",dir:"",base:"",ext:"",name:""};if(0===path.length)return ret;const isAbsolute=47===path.charCodeAt(0);let start;isAbsolute?(ret.root="/",start=1):start=0;let startDot=-1,startPart=0,end=-1,matchedSlash=!0,i=path.length-1,preDotState=0;for(;i>=start;--i){const code=path.charCodeAt(i);if(47!==code)-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1);else if(!matchedSlash){startPart=i+1;break}}if(-1!==end){const start=0===startPart&&isAbsolute?1:startPart;-1===startDot||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?ret.base=ret.name=path.slice(start,end):(ret.name=path.slice(start,startDot),ret.base=path.slice(start,end),ret.ext=path.slice(startDot,end))}return startPart>0?ret.dir=path.slice(0,startPart-1):isAbsolute&&(ret.dir="/"),ret},sep:"/",delimiter:":",win32:null,posix:null};posix.win32=win32.win32=win32,posix.posix=win32.posix=posix;"win32"===platform?win32.normalize:posix.normalize,"win32"===platform?win32.resolve:posix.resolve,"win32"===platform?win32.relative:posix.relative,"win32"===platform?win32.dirname:posix.dirname,"win32"===platform?win32.basename:posix.basename,"win32"===platform?win32.extname:posix.extname,"win32"===platform?win32.sep:posix.sep;const _schemePattern=/^\w[\w\d+.-]*$/,_singleSlashStart=/^\//,_doubleSlashStart=/^\/\//;function _validateUri(ret,_strict){if(!ret.scheme&&_strict)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${ret.authority}", path: "${ret.path}", query: "${ret.query}", fragment: "${ret.fragment}"}`);if(ret.scheme&&!_schemePattern.test(ret.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(ret.path)if(ret.authority){if(!_singleSlashStart.test(ret.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_doubleSlashStart.test(ret.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const _slash="/",_regexp=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class URI{constructor(schemeOrData,authority,path,query,fragment,_strict=!1){"object"==typeof schemeOrData?(this.scheme=schemeOrData.scheme||"",this.authority=schemeOrData.authority||"",this.path=schemeOrData.path||"",this.query=schemeOrData.query||"",this.fragment=schemeOrData.fragment||""):(this.scheme=function _schemeFix(scheme,_strict){return scheme||_strict?scheme:"file"}(schemeOrData,_strict),this.authority=authority||"",this.path=function _referenceResolution(scheme,path){switch(scheme){case"https":case"http":case"file":path?path[0]!==_slash&&(path=_slash+path):path=_slash}return path}(this.scheme,path||""),this.query=query||"",this.fragment=fragment||"",_validateUri(this,_strict))}static isUri(thing){return thing instanceof URI||!!thing&&("string"==typeof thing.authority&&"string"==typeof thing.fragment&&"string"==typeof thing.path&&"string"==typeof thing.query&&"string"==typeof thing.scheme&&"string"==typeof thing.fsPath&&"function"==typeof thing.with&&"function"==typeof thing.toString)}get fsPath(){return uriToFsPath(this,!1)}with(change){if(!change)return this;let{scheme,authority,path,query,fragment}=change;return void 0===scheme?scheme=this.scheme:null===scheme&&(scheme=""),void 0===authority?authority=this.authority:null===authority&&(authority=""),void 0===path?path=this.path:null===path&&(path=""),void 0===query?query=this.query:null===query&&(query=""),void 0===fragment?fragment=this.fragment:null===fragment&&(fragment=""),scheme===this.scheme&&authority===this.authority&&path===this.path&&query===this.query&&fragment===this.fragment?this:new Uri(scheme,authority,path,query,fragment)}static parse(value,_strict=!1){const match=_regexp.exec(value);return match?new Uri(match[2]||"",percentDecode(match[4]||""),percentDecode(match[5]||""),percentDecode(match[7]||""),percentDecode(match[9]||""),_strict):new Uri("","","","","")}static file(path){let authority="";if(isWindows&&(path=path.replace(/\\/g,_slash)),path[0]===_slash&&path[1]===_slash){const idx=path.indexOf(_slash,2);-1===idx?(authority=path.substring(2),path=_slash):(authority=path.substring(2,idx),path=path.substring(idx)||_slash)}return new Uri("file",authority,path,"","")}static from(components){const result=new Uri(components.scheme,components.authority,components.path,components.query,components.fragment);return _validateUri(result,!0),result}static joinPath(uri,...pathFragment){if(!uri.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let newPath;return newPath=isWindows&&"file"===uri.scheme?URI.file(win32.join(uriToFsPath(uri,!0),...pathFragment)).path:posix.join(uri.path,...pathFragment),uri.with({path:newPath})}toString(skipEncoding=!1){return _asFormatted(this,skipEncoding)}toJSON(){return this}static revive(data){if(data){if(data instanceof URI)return data;{const result=new Uri(data);return result._formatted=data.external,result._fsPath=data._sep===_pathSepMarker?data.fsPath:null,result}}return data}}const _pathSepMarker=isWindows?1:void 0;class Uri extends URI{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=uriToFsPath(this,!1)),this._fsPath}toString(skipEncoding=!1){return skipEncoding?_asFormatted(this,!0):(this._formatted||(this._formatted=_asFormatted(this,!1)),this._formatted)}toJSON(){const res={$mid:1};return this._fsPath&&(res.fsPath=this._fsPath,res._sep=_pathSepMarker),this._formatted&&(res.external=this._formatted),this.path&&(res.path=this.path),this.scheme&&(res.scheme=this.scheme),this.authority&&(res.authority=this.authority),this.query&&(res.query=this.query),this.fragment&&(res.fragment=this.fragment),res}}const encodeTable={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function encodeURIComponentFast(uriComponent,allowSlash){let res,nativeEncodePos=-1;for(let pos=0;pos=97&&code<=122||code>=65&&code<=90||code>=48&&code<=57||45===code||46===code||95===code||126===code||allowSlash&&47===code)-1!==nativeEncodePos&&(res+=encodeURIComponent(uriComponent.substring(nativeEncodePos,pos)),nativeEncodePos=-1),void 0!==res&&(res+=uriComponent.charAt(pos));else{void 0===res&&(res=uriComponent.substr(0,pos));const escaped=encodeTable[code];void 0!==escaped?(-1!==nativeEncodePos&&(res+=encodeURIComponent(uriComponent.substring(nativeEncodePos,pos)),nativeEncodePos=-1),res+=escaped):-1===nativeEncodePos&&(nativeEncodePos=pos)}}return-1!==nativeEncodePos&&(res+=encodeURIComponent(uriComponent.substring(nativeEncodePos))),void 0!==res?res:uriComponent}function encodeURIComponentMinimal(path){let res;for(let pos=0;pos1&&"file"===uri.scheme?`//${uri.authority}${uri.path}`:47===uri.path.charCodeAt(0)&&(uri.path.charCodeAt(1)>=65&&uri.path.charCodeAt(1)<=90||uri.path.charCodeAt(1)>=97&&uri.path.charCodeAt(1)<=122)&&58===uri.path.charCodeAt(2)?keepDriveLetterCasing?uri.path.substr(1):uri.path[1].toLowerCase()+uri.path.substr(2):uri.path,isWindows&&(value=value.replace(/\//g,"\\")),value}function _asFormatted(uri,skipEncoding){const encoder=skipEncoding?encodeURIComponentMinimal:encodeURIComponentFast;let res="",{scheme,authority,path,query,fragment}=uri;if(scheme&&(res+=scheme,res+=":"),(authority||"file"===scheme)&&(res+=_slash,res+=_slash),authority){let idx=authority.indexOf("@");if(-1!==idx){const userinfo=authority.substr(0,idx);authority=authority.substr(idx+1),idx=userinfo.indexOf(":"),-1===idx?res+=encoder(userinfo,!1):(res+=encoder(userinfo.substr(0,idx),!1),res+=":",res+=encoder(userinfo.substr(idx+1),!1)),res+="@"}authority=authority.toLowerCase(),idx=authority.indexOf(":"),-1===idx?res+=encoder(authority,!1):(res+=encoder(authority.substr(0,idx),!1),res+=authority.substr(idx))}if(path){if(path.length>=3&&47===path.charCodeAt(0)&&58===path.charCodeAt(2)){const code=path.charCodeAt(1);code>=65&&code<=90&&(path=`/${String.fromCharCode(code+32)}:${path.substr(3)}`)}else if(path.length>=2&&58===path.charCodeAt(1)){const code=path.charCodeAt(0);code>=65&&code<=90&&(path=`${String.fromCharCode(code+32)}:${path.substr(2)}`)}res+=encoder(path,!0)}return query&&(res+="?",res+=encoder(query,!1)),fragment&&(res+="#",res+=skipEncoding?fragment:encodeURIComponentFast(fragment,!1)),res}function decodeURIComponentGraceful(str){try{return decodeURIComponent(str)}catch(_a){return str.length>3?str.substr(0,3)+decodeURIComponentGraceful(str.substr(3)):str}}const _rEncodedAsHex=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function percentDecode(str){return str.match(_rEncodedAsHex)?str.replace(_rEncodedAsHex,(match=>decodeURIComponentGraceful(match))):str}class Position{constructor(lineNumber,column){this.lineNumber=lineNumber,this.column=column}with(newLineNumber=this.lineNumber,newColumn=this.column){return newLineNumber===this.lineNumber&&newColumn===this.column?this:new Position(newLineNumber,newColumn)}delta(deltaLineNumber=0,deltaColumn=0){return this.with(this.lineNumber+deltaLineNumber,this.column+deltaColumn)}equals(other){return Position.equals(this,other)}static equals(a,b){return!a&&!b||!!a&&!!b&&a.lineNumber===b.lineNumber&&a.column===b.column}isBefore(other){return Position.isBefore(this,other)}static isBefore(a,b){return a.lineNumberendLineNumber||startLineNumber===endLineNumber&&startColumn>endColumn?(this.startLineNumber=endLineNumber,this.startColumn=endColumn,this.endLineNumber=startLineNumber,this.endColumn=startColumn):(this.startLineNumber=startLineNumber,this.startColumn=startColumn,this.endLineNumber=endLineNumber,this.endColumn=endColumn)}isEmpty(){return Range.isEmpty(this)}static isEmpty(range){return range.startLineNumber===range.endLineNumber&&range.startColumn===range.endColumn}containsPosition(position){return Range.containsPosition(this,position)}static containsPosition(range,position){return!(position.lineNumberrange.endLineNumber)&&(!(position.lineNumber===range.startLineNumber&&position.columnrange.endColumn))}containsRange(range){return Range.containsRange(this,range)}static containsRange(range,otherRange){return!(otherRange.startLineNumberrange.endLineNumber||otherRange.endLineNumber>range.endLineNumber)&&(!(otherRange.startLineNumber===range.startLineNumber&&otherRange.startColumnrange.endColumn)))}strictContainsRange(range){return Range.strictContainsRange(this,range)}static strictContainsRange(range,otherRange){return!(otherRange.startLineNumberrange.endLineNumber||otherRange.endLineNumber>range.endLineNumber)&&(!(otherRange.startLineNumber===range.startLineNumber&&otherRange.startColumn<=range.startColumn)&&!(otherRange.endLineNumber===range.endLineNumber&&otherRange.endColumn>=range.endColumn)))}plusRange(range){return Range.plusRange(this,range)}static plusRange(a,b){let startLineNumber,startColumn,endLineNumber,endColumn;return b.startLineNumbera.endLineNumber?(endLineNumber=b.endLineNumber,endColumn=b.endColumn):b.endLineNumber===a.endLineNumber?(endLineNumber=b.endLineNumber,endColumn=Math.max(b.endColumn,a.endColumn)):(endLineNumber=a.endLineNumber,endColumn=a.endColumn),new Range(startLineNumber,startColumn,endLineNumber,endColumn)}intersectRanges(range){return Range.intersectRanges(this,range)}static intersectRanges(a,b){let resultStartLineNumber=a.startLineNumber,resultStartColumn=a.startColumn,resultEndLineNumber=a.endLineNumber,resultEndColumn=a.endColumn,otherStartLineNumber=b.startLineNumber,otherStartColumn=b.startColumn,otherEndLineNumber=b.endLineNumber,otherEndColumn=b.endColumn;return resultStartLineNumberotherEndLineNumber?(resultEndLineNumber=otherEndLineNumber,resultEndColumn=otherEndColumn):resultEndLineNumber===otherEndLineNumber&&(resultEndColumn=Math.min(resultEndColumn,otherEndColumn)),resultStartLineNumber>resultEndLineNumber||resultStartLineNumber===resultEndLineNumber&&resultStartColumn>resultEndColumn?null:new Range(resultStartLineNumber,resultStartColumn,resultEndLineNumber,resultEndColumn)}equalsRange(other){return Range.equalsRange(this,other)}static equalsRange(a,b){return!!a&&!!b&&a.startLineNumber===b.startLineNumber&&a.startColumn===b.startColumn&&a.endLineNumber===b.endLineNumber&&a.endColumn===b.endColumn}getEndPosition(){return Range.getEndPosition(this)}static getEndPosition(range){return new Position(range.endLineNumber,range.endColumn)}getStartPosition(){return Range.getStartPosition(this)}static getStartPosition(range){return new Position(range.startLineNumber,range.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(endLineNumber,endColumn){return new Range(this.startLineNumber,this.startColumn,endLineNumber,endColumn)}setStartPosition(startLineNumber,startColumn){return new Range(startLineNumber,startColumn,this.endLineNumber,this.endColumn)}collapseToStart(){return Range.collapseToStart(this)}static collapseToStart(range){return new Range(range.startLineNumber,range.startColumn,range.startLineNumber,range.startColumn)}static fromPositions(start,end=start){return new Range(start.lineNumber,start.column,end.lineNumber,end.column)}static lift(range){return range?new Range(range.startLineNumber,range.startColumn,range.endLineNumber,range.endColumn):null}static isIRange(obj){return obj&&"number"==typeof obj.startLineNumber&&"number"==typeof obj.startColumn&&"number"==typeof obj.endLineNumber&&"number"==typeof obj.endColumn}static areIntersectingOrTouching(a,b){return!(a.endLineNumberrange.startLineNumber}}function computeDiff(originalSequence,modifiedSequence,continueProcessingPredicate,pretty){return new LcsDiff(originalSequence,modifiedSequence,continueProcessingPredicate).ComputeDiff(pretty)}class LineSequence{constructor(lines){const startColumns=[],endColumns=[];for(let i=0,length=lines.length;i0&&diffChange.originalLength<20&&diffChange.modifiedLength>0&&diffChange.modifiedLength<20&&continueCharDiff()){const originalCharSequence=originalLineSequence.createCharSequence(shouldIgnoreTrimWhitespace,diffChange.originalStart,diffChange.originalStart+diffChange.originalLength-1),modifiedCharSequence=modifiedLineSequence.createCharSequence(shouldIgnoreTrimWhitespace,diffChange.modifiedStart,diffChange.modifiedStart+diffChange.modifiedLength-1);let rawChanges=computeDiff(originalCharSequence,modifiedCharSequence,continueCharDiff,!0).changes;shouldPostProcessCharChanges&&(rawChanges=function postProcessCharChanges(rawChanges){if(rawChanges.length<=1)return rawChanges;const result=[rawChanges[0]];let prevChange=result[0];for(let i=1,len=rawChanges.length;i1&&modifiedStartColumn>1;){if(originalLine.charCodeAt(originalStartColumn-2)!==modifiedLine.charCodeAt(modifiedStartColumn-2))break;originalStartColumn--,modifiedStartColumn--}(originalStartColumn>1||modifiedStartColumn>1)&&this._pushTrimWhitespaceCharChange(result,originalLineIndex+1,1,originalStartColumn,modifiedLineIndex+1,1,modifiedStartColumn)}{let originalEndColumn=getLastNonBlankColumn(originalLine,1),modifiedEndColumn=getLastNonBlankColumn(modifiedLine,1);const originalMaxColumn=originalLine.length+1,modifiedMaxColumn=modifiedLine.length+1;for(;originalEndColumn=0;i--){const chCode=str.charCodeAt(i);if(32!==chCode&&9!==chCode)return i}return-1}(txt);return-1===r?defaultValue:r+2}function createContinueProcessingPredicate(maximumRuntime){if(0===maximumRuntime)return()=>!0;const startTime=Date.now();return()=>Date.now()-startTime255?255:0|v}function toUint32(v){return v<0?0:v>4294967295?4294967295:0|v}class PrefixSumIndexOfResult{constructor(index,remainder){this._prefixSumIndexOfResultBrand=void 0,this.index=index,this.remainder=remainder}}class PrefixSumComputer{constructor(values){this.values=values,this.prefixSum=new Uint32Array(values.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(insertIndex,insertValues){insertIndex=toUint32(insertIndex);const oldValues=this.values,oldPrefixSum=this.prefixSum,insertValuesLen=insertValues.length;return 0!==insertValuesLen&&(this.values=new Uint32Array(oldValues.length+insertValuesLen),this.values.set(oldValues.subarray(0,insertIndex),0),this.values.set(oldValues.subarray(insertIndex),insertIndex+insertValuesLen),this.values.set(insertValues,insertIndex),insertIndex-1=0&&this.prefixSum.set(oldPrefixSum.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(index,value){return index=toUint32(index),value=toUint32(value),this.values[index]!==value&&(this.values[index]=value,index-1=oldValues.length)return!1;let maxCount=oldValues.length-startIndex;return count>=maxCount&&(count=maxCount),0!==count&&(this.values=new Uint32Array(oldValues.length-count),this.values.set(oldValues.subarray(0,startIndex),0),this.values.set(oldValues.subarray(startIndex+count),startIndex),this.prefixSum=new Uint32Array(this.values.length),startIndex-1=0&&this.prefixSum.set(oldPrefixSum.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(index){return index<0?0:(index=toUint32(index),this._getPrefixSum(index))}_getPrefixSum(index){if(index<=this.prefixSumValidIndex[0])return this.prefixSum[index];let startIndex=this.prefixSumValidIndex[0]+1;0===startIndex&&(this.prefixSum[0]=this.values[0],startIndex++),index>=this.values.length&&(index=this.values.length-1);for(let i=startIndex;i<=index;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],index),this.prefixSum[index]}getIndexOf(sum){sum=Math.floor(sum),this.getTotalSum();let low=0,high=this.values.length-1,mid=0,midStop=0,midStart=0;for(;low<=high;)if(mid=low+(high-low)/2|0,midStop=this.prefixSum[mid],midStart=midStop-this.values[mid],sum=midStop))break;low=mid+1}return new PrefixSumIndexOfResult(mid,sum-midStart)}}class MirrorTextModel{constructor(uri,lines,eol,versionId){this._uri=uri,this._lines=lines,this._eol=eol,this._versionId=versionId,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const changes=e.changes;for(const change of changes)this._acceptDeleteRange(change.range),this._acceptInsertText(new Position(change.range.startLineNumber,change.range.startColumn),change.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const eolLength=this._eol.length,linesLength=this._lines.length,lineStartValues=new Uint32Array(linesLength);for(let i=0;i/?")allowInWords.indexOf(sep)>=0||(source+="\\"+sep);return source+="\\s]+)",new RegExp(source,"g")}();const _defaultConfig={maxLen:1e3,windowSize:15,timeBudget:150};function getWordAtText(column,wordDefinition,text,textOffset,config=_defaultConfig){if(text.length>config.maxLen){let start=column-config.maxLen/2;return start<0?start=0:textOffset+=start,getWordAtText(column,wordDefinition,text=text.substring(start,column+config.maxLen/2),textOffset,config)}const t1=Date.now(),pos=column-1-textOffset;let prevRegexIndex=-1,match=null;for(let i=1;!(Date.now()-t1>=config.timeBudget);i++){const regexIndex=pos-config.windowSize*i;wordDefinition.lastIndex=Math.max(0,regexIndex);const thisMatch=_findRegexMatchEnclosingPosition(wordDefinition,text,pos,prevRegexIndex);if(!thisMatch&&match)break;if(match=thisMatch,regexIndex<=0)break;prevRegexIndex=regexIndex}if(match){let result={word:match[0],startColumn:textOffset+1+match.index,endColumn:textOffset+1+match.index+match[0].length};return wordDefinition.lastIndex=0,result}return null}function _findRegexMatchEnclosingPosition(wordDefinition,text,pos,stopPos){let match;for(;match=wordDefinition.exec(text);){const matchIndex=match.index||0;if(matchIndex<=pos&&wordDefinition.lastIndex>=pos)return match;if(stopPos>0&&matchIndex>stopPos)return null}return null}class CharacterClassifier{constructor(_defaultValue){let defaultValue=toUint8(_defaultValue);this._defaultValue=defaultValue,this._asciiMap=CharacterClassifier._createAsciiMap(defaultValue),this._map=new Map}static _createAsciiMap(defaultValue){let asciiMap=new Uint8Array(256);for(let i=0;i<256;i++)asciiMap[i]=defaultValue;return asciiMap}set(charCode,_value){let value=toUint8(_value);charCode>=0&&charCode<256?this._asciiMap[charCode]=value:this._map.set(charCode,value)}get(charCode){return charCode>=0&&charCode<256?this._asciiMap[charCode]:this._map.get(charCode)||this._defaultValue}}class Uint8Matrix{constructor(rows,cols,defaultValue){const data=new Uint8Array(rows*cols);for(let i=0,len=rows*cols;imaxCharCode&&(maxCharCode=chCode),from>maxState&&(maxState=from),to>maxState&&(maxState=to)}maxCharCode++,maxState++;let states=new Uint8Matrix(maxState,maxCharCode,0);for(let i=0,len=edges.length;i=this._maxCharCode?0:this._states.get(currentState,chCode)}}let _stateMachine=null;let _classifier=null;class LinkComputer{static _createLink(classifier,line,lineNumber,linkBeginIndex,linkEndIndex){let lastIncludedCharIndex=linkEndIndex-1;do{const chCode=line.charCodeAt(lastIncludedCharIndex);if(2!==classifier.get(chCode))break;lastIncludedCharIndex--}while(lastIncludedCharIndex>linkBeginIndex);if(linkBeginIndex>0){const charCodeBeforeLink=line.charCodeAt(linkBeginIndex-1),lastCharCodeInLink=line.charCodeAt(lastIncludedCharIndex);(40===charCodeBeforeLink&&41===lastCharCodeInLink||91===charCodeBeforeLink&&93===lastCharCodeInLink||123===charCodeBeforeLink&&125===lastCharCodeInLink)&&lastIncludedCharIndex--}return{range:{startLineNumber:lineNumber,startColumn:linkBeginIndex+1,endLineNumber:lineNumber,endColumn:lastIncludedCharIndex+2},url:line.substring(linkBeginIndex,lastIncludedCharIndex+1)}}static computeLinks(model,stateMachine=function getStateMachine(){return null===_stateMachine&&(_stateMachine=new StateMachine([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),_stateMachine}()){const classifier=function getClassifier(){if(null===_classifier){_classifier=new CharacterClassifier(0);const FORCE_TERMINATION_CHARACTERS=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let i=0;i=0?(idx+=up?1:-1,idx<0?idx=valueSet.length-1:idx%=valueSet.length,valueSet[idx]):null}}BasicInplaceReplace.INSTANCE=new BasicInplaceReplace;const shortcutEvent=Object.freeze((function(callback,context){const handle=setTimeout(callback.bind(context),0);return{dispose(){clearTimeout(handle)}}}));var CancellationToken;!function(CancellationToken){CancellationToken.isCancellationToken=function isCancellationToken(thing){return thing===CancellationToken.None||thing===CancellationToken.Cancelled||(thing instanceof MutableToken||!(!thing||"object"!=typeof thing)&&("boolean"==typeof thing.isCancellationRequested&&"function"==typeof thing.onCancellationRequested))},CancellationToken.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Event.None}),CancellationToken.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:shortcutEvent})}(CancellationToken||(CancellationToken={}));class MutableToken{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?shortcutEvent:(this._emitter||(this._emitter=new Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class CancellationTokenSource{constructor(parent){this._token=void 0,this._parentListener=void 0,this._parentListener=parent&&parent.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new MutableToken),this._token}cancel(){this._token?this._token instanceof MutableToken&&this._token.cancel():this._token=CancellationToken.Cancelled}dispose(cancel=!1){cancel&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof MutableToken&&this._token.dispose():this._token=CancellationToken.None}}class KeyCodeStrMap{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(keyCode,str){this._keyCodeToStr[keyCode]=str,this._strToKeyCode[str.toLowerCase()]=keyCode}keyCodeToStr(keyCode){return this._keyCodeToStr[keyCode]}strToKeyCode(str){return this._strToKeyCode[str.toLowerCase()]||0}}const uiMap=new KeyCodeStrMap,userSettingsUSMap=new KeyCodeStrMap,userSettingsGeneralMap=new KeyCodeStrMap,EVENT_KEY_CODE_MAP=new Array(230),NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE={},scanCodeIntToStr=[],scanCodeStrToInt=Object.create(null),scanCodeLowerCaseStrToInt=Object.create(null),IMMUTABLE_CODE_TO_KEY_CODE=[],IMMUTABLE_KEY_CODE_TO_CODE=[];for(let i=0;i<=193;i++)IMMUTABLE_CODE_TO_KEY_CODE[i]=-1;for(let i=0;i<=126;i++)IMMUTABLE_KEY_CODE_TO_CODE[i]=-1;var KeyCodeUtils,AccessibilitySupport,CompletionItemInsertTextRule,CompletionItemKind,CompletionItemTag,CompletionTriggerKind,ContentWidgetPositionPreference,CursorChangeReason,DefaultEndOfLine,DocumentHighlightKind,EditorAutoIndentStrategy,EditorOption,EndOfLinePreference,EndOfLineSequence,IndentAction,InlayHintKind,InlineCompletionTriggerKind,KeyCode,MarkerSeverity,MarkerTag,MinimapPosition,MouseTargetType,OverlayWidgetPositionPreference,OverviewRulerLane,RenderLineNumbersType,RenderMinimap,ScrollType,ScrollbarVisibility,SelectionDirection,SignatureHelpTriggerKind,SymbolKind,SymbolTag,TextEditorCursorBlinkingStyle,TextEditorCursorStyle,TrackedRangeStickiness,WrappingIndent;!function(){const mappings=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[0,1,1,"Hyper",0,"",0,"","",""],[0,1,2,"Super",0,"",0,"","",""],[0,1,3,"Fn",0,"",0,"","",""],[0,1,4,"FnLock",0,"",0,"","",""],[0,1,5,"Suspend",0,"",0,"","",""],[0,1,6,"Resume",0,"",0,"","",""],[0,1,7,"Turbo",0,"",0,"","",""],[0,1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[0,1,9,"WakeUp",0,"",0,"","",""],[31,0,10,"KeyA",31,"A",65,"VK_A","",""],[32,0,11,"KeyB",32,"B",66,"VK_B","",""],[33,0,12,"KeyC",33,"C",67,"VK_C","",""],[34,0,13,"KeyD",34,"D",68,"VK_D","",""],[35,0,14,"KeyE",35,"E",69,"VK_E","",""],[36,0,15,"KeyF",36,"F",70,"VK_F","",""],[37,0,16,"KeyG",37,"G",71,"VK_G","",""],[38,0,17,"KeyH",38,"H",72,"VK_H","",""],[39,0,18,"KeyI",39,"I",73,"VK_I","",""],[40,0,19,"KeyJ",40,"J",74,"VK_J","",""],[41,0,20,"KeyK",41,"K",75,"VK_K","",""],[42,0,21,"KeyL",42,"L",76,"VK_L","",""],[43,0,22,"KeyM",43,"M",77,"VK_M","",""],[44,0,23,"KeyN",44,"N",78,"VK_N","",""],[45,0,24,"KeyO",45,"O",79,"VK_O","",""],[46,0,25,"KeyP",46,"P",80,"VK_P","",""],[47,0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[48,0,27,"KeyR",48,"R",82,"VK_R","",""],[49,0,28,"KeyS",49,"S",83,"VK_S","",""],[50,0,29,"KeyT",50,"T",84,"VK_T","",""],[51,0,30,"KeyU",51,"U",85,"VK_U","",""],[52,0,31,"KeyV",52,"V",86,"VK_V","",""],[53,0,32,"KeyW",53,"W",87,"VK_W","",""],[54,0,33,"KeyX",54,"X",88,"VK_X","",""],[55,0,34,"KeyY",55,"Y",89,"VK_Y","",""],[56,0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[22,0,36,"Digit1",22,"1",49,"VK_1","",""],[23,0,37,"Digit2",23,"2",50,"VK_2","",""],[24,0,38,"Digit3",24,"3",51,"VK_3","",""],[25,0,39,"Digit4",25,"4",52,"VK_4","",""],[26,0,40,"Digit5",26,"5",53,"VK_5","",""],[27,0,41,"Digit6",27,"6",54,"VK_6","",""],[28,0,42,"Digit7",28,"7",55,"VK_7","",""],[29,0,43,"Digit8",29,"8",56,"VK_8","",""],[30,0,44,"Digit9",30,"9",57,"VK_9","",""],[21,0,45,"Digit0",21,"0",48,"VK_0","",""],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[2,1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[10,1,50,"Space",10,"Space",32,"VK_SPACE","",""],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,"",0,"","",""],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[59,1,64,"F1",59,"F1",112,"VK_F1","",""],[60,1,65,"F2",60,"F2",113,"VK_F2","",""],[61,1,66,"F3",61,"F3",114,"VK_F3","",""],[62,1,67,"F4",62,"F4",115,"VK_F4","",""],[63,1,68,"F5",63,"F5",116,"VK_F5","",""],[64,1,69,"F6",64,"F6",117,"VK_F6","",""],[65,1,70,"F7",65,"F7",118,"VK_F7","",""],[66,1,71,"F8",66,"F8",119,"VK_F8","",""],[67,1,72,"F9",67,"F9",120,"VK_F9","",""],[68,1,73,"F10",68,"F10",121,"VK_F10","",""],[69,1,74,"F11",69,"F11",122,"VK_F11","",""],[70,1,75,"F12",70,"F12",123,"VK_F12","",""],[0,1,76,"PrintScreen",0,"",0,"","",""],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL","",""],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[14,1,80,"Home",14,"Home",36,"VK_HOME","",""],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[13,1,83,"End",13,"End",35,"VK_END","",""],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK","",""],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE","",""],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD","",""],[3,1,94,"NumpadEnter",3,"",0,"","",""],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1","",""],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2","",""],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3","",""],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4","",""],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5","",""],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6","",""],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7","",""],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8","",""],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9","",""],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0","",""],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL","",""],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102","",""],[58,1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[0,1,108,"Power",0,"",0,"","",""],[0,1,109,"NumpadEqual",0,"",0,"","",""],[71,1,110,"F13",71,"F13",124,"VK_F13","",""],[72,1,111,"F14",72,"F14",125,"VK_F14","",""],[73,1,112,"F15",73,"F15",126,"VK_F15","",""],[74,1,113,"F16",74,"F16",127,"VK_F16","",""],[75,1,114,"F17",75,"F17",128,"VK_F17","",""],[76,1,115,"F18",76,"F18",129,"VK_F18","",""],[77,1,116,"F19",77,"F19",130,"VK_F19","",""],[0,1,117,"F20",0,"",0,"VK_F20","",""],[0,1,118,"F21",0,"",0,"VK_F21","",""],[0,1,119,"F22",0,"",0,"VK_F22","",""],[0,1,120,"F23",0,"",0,"VK_F23","",""],[0,1,121,"F24",0,"",0,"VK_F24","",""],[0,1,122,"Open",0,"",0,"","",""],[0,1,123,"Help",0,"",0,"","",""],[0,1,124,"Select",0,"",0,"","",""],[0,1,125,"Again",0,"",0,"","",""],[0,1,126,"Undo",0,"",0,"","",""],[0,1,127,"Cut",0,"",0,"","",""],[0,1,128,"Copy",0,"",0,"","",""],[0,1,129,"Paste",0,"",0,"","",""],[0,1,130,"Find",0,"",0,"","",""],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR","",""],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1","",""],[0,1,136,"KanaMode",0,"",0,"","",""],[0,0,137,"IntlYen",0,"",0,"","",""],[0,1,138,"Convert",0,"",0,"","",""],[0,1,139,"NonConvert",0,"",0,"","",""],[0,1,140,"Lang1",0,"",0,"","",""],[0,1,141,"Lang2",0,"",0,"","",""],[0,1,142,"Lang3",0,"",0,"","",""],[0,1,143,"Lang4",0,"",0,"","",""],[0,1,144,"Lang5",0,"",0,"","",""],[0,1,145,"Abort",0,"",0,"","",""],[0,1,146,"Props",0,"",0,"","",""],[0,1,147,"NumpadParenLeft",0,"",0,"","",""],[0,1,148,"NumpadParenRight",0,"",0,"","",""],[0,1,149,"NumpadBackspace",0,"",0,"","",""],[0,1,150,"NumpadMemoryStore",0,"",0,"","",""],[0,1,151,"NumpadMemoryRecall",0,"",0,"","",""],[0,1,152,"NumpadMemoryClear",0,"",0,"","",""],[0,1,153,"NumpadMemoryAdd",0,"",0,"","",""],[0,1,154,"NumpadMemorySubtract",0,"",0,"","",""],[0,1,155,"NumpadClear",0,"",0,"","",""],[0,1,156,"NumpadClearEntry",0,"",0,"","",""],[5,1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[4,1,0,"",4,"Shift",16,"VK_SHIFT","",""],[6,1,0,"",6,"Alt",18,"VK_MENU","",""],[57,1,0,"",57,"Meta",0,"VK_COMMAND","",""],[5,1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[4,1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[6,1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[57,1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[5,1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[4,1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[6,1,163,"AltRight",6,"",0,"VK_RMENU","",""],[57,1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[0,1,165,"BrightnessUp",0,"",0,"","",""],[0,1,166,"BrightnessDown",0,"",0,"","",""],[0,1,167,"MediaPlay",0,"",0,"","",""],[0,1,168,"MediaRecord",0,"",0,"","",""],[0,1,169,"MediaFastForward",0,"",0,"","",""],[0,1,170,"MediaRewind",0,"",0,"","",""],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP","",""],[0,1,174,"Eject",0,"",0,"","",""],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[0,1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[0,1,180,"SelectTask",0,"",0,"","",""],[0,1,181,"LaunchScreenSaver",0,"",0,"","",""],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME","",""],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK","",""],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[0,1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[0,1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[0,1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[0,1,189,"ZoomToggle",0,"",0,"","",""],[0,1,190,"MailReply",0,"",0,"","",""],[0,1,191,"MailForward",0,"",0,"","",""],[0,1,192,"MailSend",0,"",0,"","",""],[109,1,0,"",109,"KeyInComposition",229,"","",""],[111,1,0,"",111,"ABNT_C2",194,"VK_ABNT_C2","",""],[91,1,0,"",91,"OEM_8",223,"VK_OEM_8","",""],[0,1,0,"",0,"",0,"VK_CLEAR","",""],[0,1,0,"",0,"",0,"VK_KANA","",""],[0,1,0,"",0,"",0,"VK_HANGUL","",""],[0,1,0,"",0,"",0,"VK_JUNJA","",""],[0,1,0,"",0,"",0,"VK_FINAL","",""],[0,1,0,"",0,"",0,"VK_HANJA","",""],[0,1,0,"",0,"",0,"VK_KANJI","",""],[0,1,0,"",0,"",0,"VK_CONVERT","",""],[0,1,0,"",0,"",0,"VK_NONCONVERT","",""],[0,1,0,"",0,"",0,"VK_ACCEPT","",""],[0,1,0,"",0,"",0,"VK_MODECHANGE","",""],[0,1,0,"",0,"",0,"VK_SELECT","",""],[0,1,0,"",0,"",0,"VK_PRINT","",""],[0,1,0,"",0,"",0,"VK_EXECUTE","",""],[0,1,0,"",0,"",0,"VK_SNAPSHOT","",""],[0,1,0,"",0,"",0,"VK_HELP","",""],[0,1,0,"",0,"",0,"VK_APPS","",""],[0,1,0,"",0,"",0,"VK_PROCESSKEY","",""],[0,1,0,"",0,"",0,"VK_PACKET","",""],[0,1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_ATTN","",""],[0,1,0,"",0,"",0,"VK_CRSEL","",""],[0,1,0,"",0,"",0,"VK_EXSEL","",""],[0,1,0,"",0,"",0,"VK_EREOF","",""],[0,1,0,"",0,"",0,"VK_PLAY","",""],[0,1,0,"",0,"",0,"VK_ZOOM","",""],[0,1,0,"",0,"",0,"VK_NONAME","",""],[0,1,0,"",0,"",0,"VK_PA1","",""],[0,1,0,"",0,"",0,"VK_OEM_CLEAR","",""]];let seenKeyCode=[],seenScanCode=[];for(const mapping of mappings){const[_keyCodeOrd,immutable,scanCode,scanCodeStr,keyCode,keyCodeStr,eventKeyCode,vkey,usUserSettingsLabel,generalUserSettingsLabel]=mapping;if(seenScanCode[scanCode]||(seenScanCode[scanCode]=!0,scanCodeIntToStr[scanCode]=scanCodeStr,scanCodeStrToInt[scanCodeStr]=scanCode,scanCodeLowerCaseStrToInt[scanCodeStr.toLowerCase()]=scanCode,immutable&&(IMMUTABLE_CODE_TO_KEY_CODE[scanCode]=keyCode,0!==keyCode&&3!==keyCode&&5!==keyCode&&4!==keyCode&&6!==keyCode&&57!==keyCode&&(IMMUTABLE_KEY_CODE_TO_CODE[keyCode]=scanCode))),!seenKeyCode[keyCode]){if(seenKeyCode[keyCode]=!0,!keyCodeStr)throw new Error(`String representation missing for key code ${keyCode} around scan code ${scanCodeStr}`);uiMap.define(keyCode,keyCodeStr),userSettingsUSMap.define(keyCode,usUserSettingsLabel||keyCodeStr),userSettingsGeneralMap.define(keyCode,generalUserSettingsLabel||usUserSettingsLabel||keyCodeStr)}eventKeyCode&&(EVENT_KEY_CODE_MAP[eventKeyCode]=keyCode),vkey&&(NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey]=keyCode)}IMMUTABLE_KEY_CODE_TO_CODE[3]=46}(),function(KeyCodeUtils){KeyCodeUtils.toString=function toString(keyCode){return uiMap.keyCodeToStr(keyCode)},KeyCodeUtils.fromString=function fromString(key){return uiMap.strToKeyCode(key)},KeyCodeUtils.toUserSettingsUS=function toUserSettingsUS(keyCode){return userSettingsUSMap.keyCodeToStr(keyCode)},KeyCodeUtils.toUserSettingsGeneral=function toUserSettingsGeneral(keyCode){return userSettingsGeneralMap.keyCodeToStr(keyCode)},KeyCodeUtils.fromUserSettings=function fromUserSettings(key){return userSettingsUSMap.strToKeyCode(key)||userSettingsGeneralMap.strToKeyCode(key)},KeyCodeUtils.toElectronAccelerator=function toElectronAccelerator(keyCode){if(keyCode>=93&&keyCode<=108)return null;switch(keyCode){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return uiMap.keyCodeToStr(keyCode)}}(KeyCodeUtils||(KeyCodeUtils={}));class Selection extends Range{constructor(selectionStartLineNumber,selectionStartColumn,positionLineNumber,positionColumn){super(selectionStartLineNumber,selectionStartColumn,positionLineNumber,positionColumn),this.selectionStartLineNumber=selectionStartLineNumber,this.selectionStartColumn=selectionStartColumn,this.positionLineNumber=positionLineNumber,this.positionColumn=positionColumn}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(other){return Selection.selectionsEqual(this,other)}static selectionsEqual(a,b){return a.selectionStartLineNumber===b.selectionStartLineNumber&&a.selectionStartColumn===b.selectionStartColumn&&a.positionLineNumber===b.positionLineNumber&&a.positionColumn===b.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(endLineNumber,endColumn){return 0===this.getDirection()?new Selection(this.startLineNumber,this.startColumn,endLineNumber,endColumn):new Selection(endLineNumber,endColumn,this.startLineNumber,this.startColumn)}getPosition(){return new Position(this.positionLineNumber,this.positionColumn)}setStartPosition(startLineNumber,startColumn){return 0===this.getDirection()?new Selection(startLineNumber,startColumn,this.endLineNumber,this.endColumn):new Selection(this.endLineNumber,this.endColumn,startLineNumber,startColumn)}static fromPositions(start,end=start){return new Selection(start.lineNumber,start.column,end.lineNumber,end.column)}static liftSelection(sel){return new Selection(sel.selectionStartLineNumber,sel.selectionStartColumn,sel.positionLineNumber,sel.positionColumn)}static selectionsArrEqual(a,b){if(a&&!b||!a&&b)return!1;if(!a&&!b)return!0;if(a.length!==b.length)return!1;for(let i=0,len=a.length;i>>0)>>>0}(firstPart,secondPart)}}KeyMod.CtrlCmd=2048,KeyMod.Shift=1024,KeyMod.Alt=512,KeyMod.WinCtrl=256;var __awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};class MirrorModel extends MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(lineNumber){return this._lines[lineNumber-1]}getWordAtPosition(position,wordDefinition){let wordAtText=getWordAtText(position.column,function ensureValidWordDefinition(wordDefinition){let result=DEFAULT_WORD_REGEXP;if(wordDefinition&&wordDefinition instanceof RegExp)if(wordDefinition.global)result=wordDefinition;else{let flags="g";wordDefinition.ignoreCase&&(flags+="i"),wordDefinition.multiline&&(flags+="m"),wordDefinition.unicode&&(flags+="u"),result=new RegExp(wordDefinition.source,flags)}return result.lastIndex=0,result}(wordDefinition),this._lines[position.lineNumber-1],0);return wordAtText?new Range(position.lineNumber,wordAtText.startColumn,position.lineNumber,wordAtText.endColumn):null}words(wordDefinition){const lines=this._lines,wordenize=this._wordenize.bind(this);let lineNumber=0,lineText="",wordRangesIdx=0,wordRanges=[];return{*[Symbol.iterator](){for(;;)if(wordRangesIdxthis._lines.length)lineNumber=this._lines.length,column=this._lines[lineNumber-1].length+1,hasChanged=!0;else{let maxCharacter=this._lines[lineNumber-1].length+1;column<1?(column=1,hasChanged=!0):column>maxCharacter&&(column=maxCharacter,hasChanged=!0)}return hasChanged?{lineNumber,column}:position}}class EditorSimpleWorker{constructor(host,foreignModuleFactory){this._host=host,this._models=Object.create(null),this._foreignModuleFactory=foreignModuleFactory,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(uri){return this._models[uri]}_getModels(){let all=[];return Object.keys(this._models).forEach((key=>all.push(this._models[key]))),all}acceptNewModel(data){this._models[data.url]=new MirrorModel(URI.parse(data.url),data.lines,data.EOL,data.versionId)}acceptModelChanged(strURL,e){if(!this._models[strURL])return;this._models[strURL].onEvents(e)}acceptRemovedModel(strURL){this._models[strURL]&&delete this._models[strURL]}computeDiff(originalUrl,modifiedUrl,ignoreTrimWhitespace,maxComputationTime){return __awaiter(this,void 0,void 0,(function*(){const original=this._getModel(originalUrl),modified=this._getModel(modifiedUrl);if(!original||!modified)return null;const originalLines=original.getLinesContent(),modifiedLines=modified.getLinesContent(),diffResult=new DiffComputer(originalLines,modifiedLines,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:ignoreTrimWhitespace,shouldMakePrettyDiff:!0,maxComputationTime}).computeDiff(),identical=!(diffResult.changes.length>0)&&this._modelsAreIdentical(original,modified);return{quitEarly:diffResult.quitEarly,identical,changes:diffResult.changes}}))}_modelsAreIdentical(original,modified){const originalLineCount=original.getLineCount();if(originalLineCount!==modified.getLineCount())return!1;for(let line=1;line<=originalLineCount;line++){if(original.getLineContent(line)!==modified.getLineContent(line))return!1}return!0}computeMoreMinimalEdits(modelUrl,edits){return __awaiter(this,void 0,void 0,(function*(){const model=this._getModel(modelUrl);if(!model)return edits;const result=[];let lastEol;edits=edits.slice(0).sort(((a,b)=>{if(a.range&&b.range)return Range.compareRangesUsingStarts(a.range,b.range);return(a.range?0:1)-(b.range?0:1)}));for(let{range,text,eol}of edits){if("number"==typeof eol&&(lastEol=eol),Range.isEmpty(range)&&!text)continue;const original=model.getValueInRange(range);if(text=text.replace(/\r\n|\n|\r/g,model.eol),original===text)continue;if(Math.max(text.length,original.length)>EditorSimpleWorker._diffLimit){result.push({range,text});continue}const changes=stringDiff(original,text,!1),editOffset=model.offsetAt(Range.lift(range).getStartPosition());for(const change of changes){const start=model.positionAt(editOffset+change.originalStart),end=model.positionAt(editOffset+change.originalStart+change.originalLength),newEdit={text:text.substr(change.modifiedStart,change.modifiedLength),range:{startLineNumber:start.lineNumber,startColumn:start.column,endLineNumber:end.lineNumber,endColumn:end.column}};model.getValueInRange(newEdit.range)!==newEdit.text&&result.push(newEdit)}}return"number"==typeof lastEol&&result.push({eol:lastEol,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),result}))}computeLinks(modelUrl){return __awaiter(this,void 0,void 0,(function*(){let model=this._getModel(modelUrl);return model?function computeLinks(model){return model&&"function"==typeof model.getLineCount&&"function"==typeof model.getLineContent?LinkComputer.computeLinks(model):[]}(model):null}))}textualSuggest(modelUrls,leadingWord,wordDef,wordDefFlags){return __awaiter(this,void 0,void 0,(function*(){const sw=new StopWatch(!0),wordDefRegExp=new RegExp(wordDef,wordDefFlags),seen=new Set;outer:for(let url of modelUrls){const model=this._getModel(url);if(model)for(let word of model.words(wordDefRegExp))if(word!==leadingWord&&isNaN(Number(word))&&(seen.add(word),seen.size>EditorSimpleWorker._suggestionsLimit))break outer}return{words:Array.from(seen),duration:sw.elapsed()}}))}computeWordRanges(modelUrl,range,wordDef,wordDefFlags){return __awaiter(this,void 0,void 0,(function*(){let model=this._getModel(modelUrl);if(!model)return Object.create(null);const wordDefRegExp=new RegExp(wordDef,wordDefFlags),result=Object.create(null);for(let line=range.startLineNumber;linefunction(){const args=Array.prototype.slice.call(arguments,0);return invoke(method,args)};let result={};for(const methodName of methodNames)result[methodName]=createProxyMethod(methodName);return result}(foreignHostMethods,((method,args)=>this._host.fhr(method,args)));let ctx={host:foreignHost,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(ctx,createData),Promise.resolve(getAllMethodNames(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(method,args){if(!this._foreignModule||"function"!=typeof this._foreignModule[method])return Promise.reject(new Error("Missing requestHandler or method: "+method));try{return Promise.resolve(this._foreignModule[method].apply(this._foreignModule,args))}catch(e){return Promise.reject(e)}}}EditorSimpleWorker._diffLimit=1e5,EditorSimpleWorker._suggestionsLimit=1e4,"function"==typeof importScripts&&(globals.monaco=function createMonacoBaseAPI(){return{editor:void 0,languages:void 0,CancellationTokenSource,Emitter,KeyCode,KeyMod,Position,Range,Selection,SelectionDirection,MarkerSeverity,MarkerTag,Uri:URI,Token}}());let initialized=!1;function initialize(foreignModule){if(initialized)return;initialized=!0;const simpleWorker=new SimpleWorkerServer((msg=>{self.postMessage(msg)}),(host=>new EditorSimpleWorker(host,foreignModule)));self.onmessage=e=>{simpleWorker.onmessage(e.data)}}var TokenType;self.onmessage=e=>{initialized||initialize(null)},function(TokenType){TokenType[TokenType.Ident=0]="Ident",TokenType[TokenType.AtKeyword=1]="AtKeyword",TokenType[TokenType.String=2]="String",TokenType[TokenType.BadString=3]="BadString",TokenType[TokenType.UnquotedString=4]="UnquotedString",TokenType[TokenType.Hash=5]="Hash",TokenType[TokenType.Num=6]="Num",TokenType[TokenType.Percentage=7]="Percentage",TokenType[TokenType.Dimension=8]="Dimension",TokenType[TokenType.UnicodeRange=9]="UnicodeRange",TokenType[TokenType.CDO=10]="CDO",TokenType[TokenType.CDC=11]="CDC",TokenType[TokenType.Colon=12]="Colon",TokenType[TokenType.SemiColon=13]="SemiColon",TokenType[TokenType.CurlyL=14]="CurlyL",TokenType[TokenType.CurlyR=15]="CurlyR",TokenType[TokenType.ParenthesisL=16]="ParenthesisL",TokenType[TokenType.ParenthesisR=17]="ParenthesisR",TokenType[TokenType.BracketL=18]="BracketL",TokenType[TokenType.BracketR=19]="BracketR",TokenType[TokenType.Whitespace=20]="Whitespace",TokenType[TokenType.Includes=21]="Includes",TokenType[TokenType.Dashmatch=22]="Dashmatch",TokenType[TokenType.SubstringOperator=23]="SubstringOperator",TokenType[TokenType.PrefixOperator=24]="PrefixOperator",TokenType[TokenType.SuffixOperator=25]="SuffixOperator",TokenType[TokenType.Delim=26]="Delim",TokenType[TokenType.EMS=27]="EMS",TokenType[TokenType.EXS=28]="EXS",TokenType[TokenType.Length=29]="Length",TokenType[TokenType.Angle=30]="Angle",TokenType[TokenType.Time=31]="Time",TokenType[TokenType.Freq=32]="Freq",TokenType[TokenType.Exclamation=33]="Exclamation",TokenType[TokenType.Resolution=34]="Resolution",TokenType[TokenType.Comma=35]="Comma",TokenType[TokenType.Charset=36]="Charset",TokenType[TokenType.EscapedJavaScript=37]="EscapedJavaScript",TokenType[TokenType.BadEscapedJavaScript=38]="BadEscapedJavaScript",TokenType[TokenType.Comment=39]="Comment",TokenType[TokenType.SingleLineComment=40]="SingleLineComment",TokenType[TokenType.EOF=41]="EOF",TokenType[TokenType.CustomToken=42]="CustomToken"}(TokenType||(TokenType={}));var MultiLineStream=function(){function MultiLineStream(source){this.source=source,this.len=source.length,this.position=0}return MultiLineStream.prototype.substring=function(from,to){return void 0===to&&(to=this.position),this.source.substring(from,to)},MultiLineStream.prototype.eos=function(){return this.len<=this.position},MultiLineStream.prototype.pos=function(){return this.position},MultiLineStream.prototype.goBackTo=function(pos){this.position=pos},MultiLineStream.prototype.goBack=function(n){this.position-=n},MultiLineStream.prototype.advance=function(n){this.position+=n},MultiLineStream.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},MultiLineStream.prototype.peekChar=function(n){return void 0===n&&(n=0),this.source.charCodeAt(this.position+n)||0},MultiLineStream.prototype.lookbackChar=function(n){return void 0===n&&(n=0),this.source.charCodeAt(this.position-n)||0},MultiLineStream.prototype.advanceIfChar=function(ch){return ch===this.source.charCodeAt(this.position)&&(this.position++,!0)},MultiLineStream.prototype.advanceIfChars=function(ch){if(this.position+ch.length>this.source.length)return!1;for(var i=0;i=_0&&ch<=_9&&(this.stream.advance(npeek+1),this.stream.advanceWhileChar((function(ch){return ch>=_0&&ch<=_9||0===npeek&&ch===_DOT})),!0)},Scanner.prototype._newline=function(result){var ch=this.stream.peekChar();switch(ch){case _CAR:case _LFD:case _NWL:return this.stream.advance(1),result.push(String.fromCharCode(ch)),ch===_CAR&&this.stream.advanceIfChar(_NWL)&&result.push("\n"),!0}return!1},Scanner.prototype._escape=function(result,includeNewLines){var ch=this.stream.peekChar();if(ch===_BSL){this.stream.advance(1),ch=this.stream.peekChar();for(var hexNumCount=0;hexNumCount<6&&(ch>=_0&&ch<=_9||ch>=cssScanner_a&&ch<=_f||ch>=_A&&ch<=_F);)this.stream.advance(1),ch=this.stream.peekChar(),hexNumCount++;if(hexNumCount>0){try{var hexVal=parseInt(this.stream.substring(this.stream.pos()-hexNumCount),16);hexVal&&result.push(String.fromCharCode(hexVal))}catch(e){}return ch===_WSP||ch===_TAB?this.stream.advance(1):this._newline([]),!0}if(ch!==_CAR&&ch!==_LFD&&ch!==_NWL)return this.stream.advance(1),result.push(String.fromCharCode(ch)),!0;if(includeNewLines)return this._newline(result)}return!1},Scanner.prototype._stringChar=function(closeQuote,result){var ch=this.stream.peekChar();return 0!==ch&&ch!==closeQuote&&ch!==_BSL&&ch!==_CAR&&ch!==_LFD&&ch!==_NWL&&(this.stream.advance(1),result.push(String.fromCharCode(ch)),!0)},Scanner.prototype._string=function(result){if(this.stream.peekChar()===_SQO||this.stream.peekChar()===_DQO){var closeQuote=this.stream.nextChar();for(result.push(String.fromCharCode(closeQuote));this._stringChar(closeQuote,result)||this._escape(result,!0););return this.stream.peekChar()===closeQuote?(this.stream.nextChar(),result.push(String.fromCharCode(closeQuote)),TokenType.String):TokenType.BadString}return null},Scanner.prototype._unquotedChar=function(result){var ch=this.stream.peekChar();return 0!==ch&&ch!==_BSL&&ch!==_SQO&&ch!==_DQO&&ch!==_LPA&&ch!==_RPA&&ch!==_WSP&&ch!==_TAB&&ch!==_NWL&&ch!==_LFD&&ch!==_CAR&&(this.stream.advance(1),result.push(String.fromCharCode(ch)),!0)},Scanner.prototype._unquotedString=function(result){for(var hasContent=!1;this._unquotedChar(result)||this._escape(result);)hasContent=!0;return hasContent},Scanner.prototype._whitespace=function(){return this.stream.advanceWhileChar((function(ch){return ch===_WSP||ch===_TAB||ch===_NWL||ch===_LFD||ch===_CAR}))>0},Scanner.prototype._name=function(result){for(var matched=!1;this._identChar(result)||this._escape(result);)matched=!0;return matched},Scanner.prototype.ident=function(result){var pos=this.stream.pos();if(this._minus(result)){if(this._minus(result)||this._identFirstChar(result)||this._escape(result)){for(;this._identChar(result)||this._escape(result););return!0}}else if(this._identFirstChar(result)||this._escape(result)){for(;this._identChar(result)||this._escape(result););return!0}return this.stream.goBackTo(pos),!1},Scanner.prototype._identFirstChar=function(result){var ch=this.stream.peekChar();return(ch===_USC||ch>=cssScanner_a&&ch<=_z||ch>=_A&&ch<=_Z||ch>=128&&ch<=65535)&&(this.stream.advance(1),result.push(String.fromCharCode(ch)),!0)},Scanner.prototype._minus=function(result){var ch=this.stream.peekChar();return ch===_MIN&&(this.stream.advance(1),result.push(String.fromCharCode(ch)),!0)},Scanner.prototype._identChar=function(result){var ch=this.stream.peekChar();return(ch===_USC||ch===_MIN||ch>=cssScanner_a&&ch<=_z||ch>=_A&&ch<=_Z||ch>=_0&&ch<=_9||ch>=128&&ch<=65535)&&(this.stream.advance(1),result.push(String.fromCharCode(ch)),!0)},Scanner}();function startsWith(haystack,needle){if(haystack.length0?haystack.lastIndexOf(needle)===diff:0===diff&&haystack===needle}function getLimitedString(str,ellipsis){return void 0===ellipsis&&(ellipsis=!0),str?str.length<140?str:str.slice(0,140)+(ellipsis?"…":""):""}var extendStatics,NodeType,ReferenceType,__extends=(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});function getNodeAtOffset(node,offset){var candidate=null;return!node||offsetnode.end?null:(node.accept((function(node){return-1===node.offset&&-1===node.length||node.offset<=offset&&node.end>=offset&&(candidate?node.length<=candidate.length&&(candidate=node):candidate=node,!0)})),candidate)}function getNodePath(node,offset){for(var candidate=getNodeAtOffset(node,offset),path=[];candidate;)path.unshift(candidate),candidate=candidate.parent;return path}!function(NodeType){NodeType[NodeType.Undefined=0]="Undefined",NodeType[NodeType.Identifier=1]="Identifier",NodeType[NodeType.Stylesheet=2]="Stylesheet",NodeType[NodeType.Ruleset=3]="Ruleset",NodeType[NodeType.Selector=4]="Selector",NodeType[NodeType.SimpleSelector=5]="SimpleSelector",NodeType[NodeType.SelectorInterpolation=6]="SelectorInterpolation",NodeType[NodeType.SelectorCombinator=7]="SelectorCombinator",NodeType[NodeType.SelectorCombinatorParent=8]="SelectorCombinatorParent",NodeType[NodeType.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",NodeType[NodeType.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",NodeType[NodeType.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",NodeType[NodeType.Page=12]="Page",NodeType[NodeType.PageBoxMarginBox=13]="PageBoxMarginBox",NodeType[NodeType.ClassSelector=14]="ClassSelector",NodeType[NodeType.IdentifierSelector=15]="IdentifierSelector",NodeType[NodeType.ElementNameSelector=16]="ElementNameSelector",NodeType[NodeType.PseudoSelector=17]="PseudoSelector",NodeType[NodeType.AttributeSelector=18]="AttributeSelector",NodeType[NodeType.Declaration=19]="Declaration",NodeType[NodeType.Declarations=20]="Declarations",NodeType[NodeType.Property=21]="Property",NodeType[NodeType.Expression=22]="Expression",NodeType[NodeType.BinaryExpression=23]="BinaryExpression",NodeType[NodeType.Term=24]="Term",NodeType[NodeType.Operator=25]="Operator",NodeType[NodeType.Value=26]="Value",NodeType[NodeType.StringLiteral=27]="StringLiteral",NodeType[NodeType.URILiteral=28]="URILiteral",NodeType[NodeType.EscapedValue=29]="EscapedValue",NodeType[NodeType.Function=30]="Function",NodeType[NodeType.NumericValue=31]="NumericValue",NodeType[NodeType.HexColorValue=32]="HexColorValue",NodeType[NodeType.RatioValue=33]="RatioValue",NodeType[NodeType.MixinDeclaration=34]="MixinDeclaration",NodeType[NodeType.MixinReference=35]="MixinReference",NodeType[NodeType.VariableName=36]="VariableName",NodeType[NodeType.VariableDeclaration=37]="VariableDeclaration",NodeType[NodeType.Prio=38]="Prio",NodeType[NodeType.Interpolation=39]="Interpolation",NodeType[NodeType.NestedProperties=40]="NestedProperties",NodeType[NodeType.ExtendsReference=41]="ExtendsReference",NodeType[NodeType.SelectorPlaceholder=42]="SelectorPlaceholder",NodeType[NodeType.Debug=43]="Debug",NodeType[NodeType.If=44]="If",NodeType[NodeType.Else=45]="Else",NodeType[NodeType.For=46]="For",NodeType[NodeType.Each=47]="Each",NodeType[NodeType.While=48]="While",NodeType[NodeType.MixinContentReference=49]="MixinContentReference",NodeType[NodeType.MixinContentDeclaration=50]="MixinContentDeclaration",NodeType[NodeType.Media=51]="Media",NodeType[NodeType.Keyframe=52]="Keyframe",NodeType[NodeType.FontFace=53]="FontFace",NodeType[NodeType.Import=54]="Import",NodeType[NodeType.Namespace=55]="Namespace",NodeType[NodeType.Invocation=56]="Invocation",NodeType[NodeType.FunctionDeclaration=57]="FunctionDeclaration",NodeType[NodeType.ReturnStatement=58]="ReturnStatement",NodeType[NodeType.MediaQuery=59]="MediaQuery",NodeType[NodeType.MediaCondition=60]="MediaCondition",NodeType[NodeType.MediaFeature=61]="MediaFeature",NodeType[NodeType.FunctionParameter=62]="FunctionParameter",NodeType[NodeType.FunctionArgument=63]="FunctionArgument",NodeType[NodeType.KeyframeSelector=64]="KeyframeSelector",NodeType[NodeType.ViewPort=65]="ViewPort",NodeType[NodeType.Document=66]="Document",NodeType[NodeType.AtApplyRule=67]="AtApplyRule",NodeType[NodeType.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",NodeType[NodeType.CustomPropertySet=69]="CustomPropertySet",NodeType[NodeType.ListEntry=70]="ListEntry",NodeType[NodeType.Supports=71]="Supports",NodeType[NodeType.SupportsCondition=72]="SupportsCondition",NodeType[NodeType.NamespacePrefix=73]="NamespacePrefix",NodeType[NodeType.GridLine=74]="GridLine",NodeType[NodeType.Plugin=75]="Plugin",NodeType[NodeType.UnknownAtRule=76]="UnknownAtRule",NodeType[NodeType.Use=77]="Use",NodeType[NodeType.ModuleConfiguration=78]="ModuleConfiguration",NodeType[NodeType.Forward=79]="Forward",NodeType[NodeType.ForwardVisibility=80]="ForwardVisibility",NodeType[NodeType.Module=81]="Module"}(NodeType||(NodeType={})),function(ReferenceType){ReferenceType[ReferenceType.Mixin=0]="Mixin",ReferenceType[ReferenceType.Rule=1]="Rule",ReferenceType[ReferenceType.Variable=2]="Variable",ReferenceType[ReferenceType.Function=3]="Function",ReferenceType[ReferenceType.Keyframe=4]="Keyframe",ReferenceType[ReferenceType.Unknown=5]="Unknown",ReferenceType[ReferenceType.Module=6]="Module",ReferenceType[ReferenceType.Forward=7]="Forward",ReferenceType[ReferenceType.ForwardVisibility=8]="ForwardVisibility"}(ReferenceType||(ReferenceType={}));var Level,cssNodes_Node=function(){function Node(offset,len,nodeType){void 0===offset&&(offset=-1),void 0===len&&(len=-1),this.parent=null,this.offset=offset,this.length=len,nodeType&&(this.nodeType=nodeType)}return Object.defineProperty(Node.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(Node.prototype,"type",{get:function(){return this.nodeType||NodeType.Undefined},set:function(type){this.nodeType=type},enumerable:!1,configurable:!0}),Node.prototype.getTextProvider=function(){for(var node=this;node&&!node.textProvider;)node=node.parent;return node?node.textProvider:function(){return"unknown"}},Node.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},Node.prototype.matches=function(str){return this.length===str.length&&this.getTextProvider()(this.offset,this.length)===str},Node.prototype.startsWith=function(str){return this.length>=str.length&&this.getTextProvider()(this.offset,str.length)===str},Node.prototype.endsWith=function(str){return this.length>=str.length&&this.getTextProvider()(this.end-str.length,str.length)===str},Node.prototype.accept=function(visitor){if(visitor(this)&&this.children)for(var _i=0,_a=this.children;_i<_a.length;_i++){_a[_i].accept(visitor)}},Node.prototype.acceptVisitor=function(visitor){this.accept(visitor.visitNode.bind(visitor))},Node.prototype.adoptChild=function(node,index){if(void 0===index&&(index=-1),node.parent&&node.parent.children){var idx=node.parent.children.indexOf(node);idx>=0&&node.parent.children.splice(idx,1)}node.parent=this;var children=this.children;return children||(children=this.children=[]),-1!==index?children.splice(index,0,node):children.push(node),node},Node.prototype.attachTo=function(parent,index){return void 0===index&&(index=-1),parent&&parent.adoptChild(this,index),this},Node.prototype.collectIssues=function(results){this.issues&&results.push.apply(results,this.issues)},Node.prototype.addIssue=function(issue){this.issues||(this.issues=[]),this.issues.push(issue)},Node.prototype.hasIssue=function(rule){return Array.isArray(this.issues)&&this.issues.some((function(i){return i.getRule()===rule}))},Node.prototype.isErroneous=function(recursive){return void 0===recursive&&(recursive=!1),!!(this.issues&&this.issues.length>0)||recursive&&Array.isArray(this.children)&&this.children.some((function(c){return c.isErroneous(!0)}))},Node.prototype.setNode=function(field,node,index){return void 0===index&&(index=-1),!!node&&(node.attachTo(this,index),this[field]=node,!0)},Node.prototype.addChild=function(node){return!!node&&(this.children||(this.children=[]),node.attachTo(this),this.updateOffsetAndLength(node),!0)},Node.prototype.updateOffsetAndLength=function(node){(node.offsetthis.end||-1===this.length)&&(this.length=nodeEnd-this.offset)},Node.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},Node.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},Node.prototype.getChild=function(index){return this.children&&index=0;i--)if((current=this.children[i]).offset<=offset)return current;return null},Node.prototype.findChildAtOffset=function(offset,goDeep){var current=this.findFirstChildBeforeOffset(offset);return current&¤t.end>=offset?goDeep&¤t.findChildAtOffset(offset,!0)||current:null},Node.prototype.encloses=function(candidate){return this.offset<=candidate.offset&&this.offset+this.length>=candidate.offset+candidate.length},Node.prototype.getParent=function(){for(var result=this.parent;result instanceof Nodelist;)result=result.parent;return result},Node.prototype.findParent=function(type){for(var result=this;result&&result.type!==type;)result=result.parent;return result},Node.prototype.findAParent=function(){for(var types=[],_i=0;_i/g,">")}function getEntryStringDescription(entry,settings){if(!entry.description||""===entry.description)return"";if("string"!=typeof entry.description)return entry.description.value;var result="";if(!1!==(null==settings?void 0:settings.documentation)){entry.status&&(result+=getEntryStatus(entry.status)),result+=entry.description;var browserLabel=getBrowserLabel(entry.browsers);browserLabel&&(result+="\n("+browserLabel+")"),"syntax"in entry&&(result+="\n\nSyntax: "+entry.syntax)}return entry.references&&entry.references.length>0&&!1!==(null==settings?void 0:settings.references)&&(result.length>0&&(result+="\n\n"),result+=entry.references.map((function(r){return r.name+": "+r.url})).join(" | ")),result}function getEntryMarkdownDescription(entry,settings){if(!entry.description||""===entry.description)return"";var result="";if(!1!==(null==settings?void 0:settings.documentation)){entry.status&&(result+=getEntryStatus(entry.status)),result+=textToMarkedString("string"==typeof entry.description?entry.description:entry.description.value);var browserLabel=getBrowserLabel(entry.browsers);browserLabel&&(result+="\n\n("+textToMarkedString(browserLabel)+")"),"syntax"in entry&&entry.syntax&&(result+="\n\nSyntax: "+textToMarkedString(entry.syntax))}return entry.references&&entry.references.length>0&&!1!==(null==settings?void 0:settings.references)&&(result.length>0&&(result+="\n\n"),result+=entry.references.map((function(r){return"["+r.name+"]("+r.url+")"})).join(" | ")),result}function getBrowserLabel(browsers){return void 0===browsers&&(browsers=[]),0===browsers.length?null:browsers.map((function(b){var result="",matches=b.match(/([A-Z]+)(\d+)?/),name=matches[1],version=matches[2];return name in browserNames&&(result+=browserNames[name]),version&&(result+=" "+version),result})).join(", ")}var colors_localize=loadMessageBundle(),colorFunctions=[{func:"rgb($red, $green, $blue)",desc:colors_localize("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:colors_localize("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:colors_localize("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:colors_localize("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},colorKeywords={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function getNumericValue(node,factor){var m=node.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(m){m[2]&&(factor=100);var result=parseFloat(m[1])/factor;if(result>=0&&result<=1)return result}throw new Error}function isColorConstructor(node){var name=node.getName();return!!name&&/^(rgb|rgba|hsl|hsla)$/gi.test(name)}var Digit0=48,Digit9=57,A=65,a=97,f=102;function hexDigit(charCode){return charCode=a&&charCode<=f?charCode-a+10:0)}function colorFromHex(text){if("#"!==text[0])return null;switch(text.length){case 4:return{red:17*hexDigit(text.charCodeAt(1))/255,green:17*hexDigit(text.charCodeAt(2))/255,blue:17*hexDigit(text.charCodeAt(3))/255,alpha:1};case 5:return{red:17*hexDigit(text.charCodeAt(1))/255,green:17*hexDigit(text.charCodeAt(2))/255,blue:17*hexDigit(text.charCodeAt(3))/255,alpha:17*hexDigit(text.charCodeAt(4))/255};case 7:return{red:(16*hexDigit(text.charCodeAt(1))+hexDigit(text.charCodeAt(2)))/255,green:(16*hexDigit(text.charCodeAt(3))+hexDigit(text.charCodeAt(4)))/255,blue:(16*hexDigit(text.charCodeAt(5))+hexDigit(text.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*hexDigit(text.charCodeAt(1))+hexDigit(text.charCodeAt(2)))/255,green:(16*hexDigit(text.charCodeAt(3))+hexDigit(text.charCodeAt(4)))/255,blue:(16*hexDigit(text.charCodeAt(5))+hexDigit(text.charCodeAt(6)))/255,alpha:(16*hexDigit(text.charCodeAt(7))+hexDigit(text.charCodeAt(8)))/255}}return null}function getColorValue(node){if(node.type===NodeType.HexColorValue)return colorFromHex(node.getText());if(node.type===NodeType.Function){var functionNode=node,name=functionNode.getName(),colorValues=functionNode.getArguments().getChildren();if(!name||colorValues.length<3||colorValues.length>4)return null;try{var alpha=4===colorValues.length?getNumericValue(colorValues[3],1):1;if("rgb"===name||"rgba"===name)return{red:getNumericValue(colorValues[0],255),green:getNumericValue(colorValues[1],255),blue:getNumericValue(colorValues[2],255),alpha};if("hsl"===name||"hsla"===name){var h=function getAngle(node){var val=node.getText();if(val.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(val)%360;throw new Error}(colorValues[0]);return function colorFromHSL(hue,sat,light,alpha){if(void 0===alpha&&(alpha=1),0===sat)return{red:light,green:light,blue:light,alpha};var hueToRgb=function(t1,t2,hue){for(;hue<0;)hue+=6;for(;hue>=6;)hue-=6;return hue<1?(t2-t1)*hue+t1:hue<3?t2:hue<4?(t2-t1)*(4-hue)+t1:t1},t2=light<=.5?light*(sat+1):light+sat-light*sat,t1=2*light-t2;return{red:hueToRgb(t1,t2,2+(hue/=60)),green:hueToRgb(t1,t2,hue),blue:hueToRgb(t1,t2,hue-2),alpha}}(h,getNumericValue(colorValues[1],100),getNumericValue(colorValues[2],100),alpha)}}catch(e){return null}}else if(node.type===NodeType.Identifier){if(node.parent&&node.parent.type!==NodeType.Term)return null;var term=node.parent;if(term&&term.parent&&term.parent.type===NodeType.BinaryExpression){var expression=term.parent;if(expression.parent&&expression.parent.type===NodeType.ListEntry&&expression.parent.key===expression)return null}var candidateColor=node.getText().toLowerCase();if("none"===candidateColor)return null;var colorHex=colors[candidateColor];if(colorHex)return colorFromHex(colorHex)}return null}var positionKeywords={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},repeatStyleKeywords={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},lineStyleKeywords={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},lineWidthKeywords=["medium","thick","thin"],boxKeywords={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},geometryBoxKeywords={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},cssWideKeywords={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},cssWideFunctions={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},imageFunctions={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},transitionTimingFunctions={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},basicShapeFunctions={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},builtinData_units={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},html5Tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],svgElements=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],pageBoxDirectives=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function values(obj){return Object.keys(obj).map((function(key){return obj[key]}))}function objects_isDefined(obj){return void 0!==obj}var __spreadArray=function(to,from,pack){if(pack||2===arguments.length)for(var ar,i=0,l=from.length;inode.offset?prevEnd-node.offset:0}return node},Parser.prototype.markError=function(node,error,resyncTokens,resyncStopTokens){this.token!==this.lastErrorToken&&(node.addIssue(new Marker(node,error,Level.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(resyncTokens||resyncStopTokens)&&this.resync(resyncTokens,resyncStopTokens)},Parser.prototype.parseStylesheet=function(textDocument){var versionId=textDocument.version,text=textDocument.getText();return this.internalParse(text,this._parseStylesheet,(function(offset,length){if(textDocument.version!==versionId)throw new Error("Underlying model has changed, AST is no longer valid");return text.substr(offset,length)}))},Parser.prototype.internalParse=function(input,parseFunc,textProvider){this.scanner.setSource(input),this.token=this.scanner.scan();var node=parseFunc.bind(this)();return node&&(node.textProvider=textProvider||function(offset,length){return input.substr(offset,length)}),node},Parser.prototype._parseStylesheet=function(){for(var node=this.create(Stylesheet);node.addChild(this._parseStylesheetStart()););var inRecovery=!1;do{var hasMatch=!1;do{hasMatch=!1;var statement=this._parseStylesheetStatement();for(statement&&(node.addChild(statement),hasMatch=!0,inRecovery=!1,this.peek(TokenType.EOF)||!this._needsSemicolonAfter(statement)||this.accept(TokenType.SemiColon)||this.markError(node,ParseError.SemiColonExpected));this.accept(TokenType.SemiColon)||this.accept(TokenType.CDO)||this.accept(TokenType.CDC);)hasMatch=!0,inRecovery=!1}while(hasMatch);if(this.peek(TokenType.EOF))break;inRecovery||(this.peek(TokenType.AtKeyword)?this.markError(node,ParseError.UnknownAtRule):this.markError(node,ParseError.RuleOrSelectorExpected),inRecovery=!0),this.consumeToken()}while(!this.peek(TokenType.EOF));return this.finish(node)},Parser.prototype._parseStylesheetStart=function(){return this._parseCharset()},Parser.prototype._parseStylesheetStatement=function(isNested){return void 0===isNested&&(isNested=!1),this.peek(TokenType.AtKeyword)?this._parseStylesheetAtStatement(isNested):this._parseRuleset(isNested)},Parser.prototype._parseStylesheetAtStatement=function(isNested){return void 0===isNested&&(isNested=!1),this._parseImport()||this._parseMedia(isNested)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(isNested)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},Parser.prototype._tryParseRuleset=function(isNested){var mark=this.mark();if(this._parseSelector(isNested)){for(;this.accept(TokenType.Comma)&&this._parseSelector(isNested););if(this.accept(TokenType.CurlyL))return this.restoreAtMark(mark),this._parseRuleset(isNested)}return this.restoreAtMark(mark),null},Parser.prototype._parseRuleset=function(isNested){void 0===isNested&&(isNested=!1);var node=this.create(RuleSet),selectors=node.getSelectors();if(!selectors.addChild(this._parseSelector(isNested)))return null;for(;this.accept(TokenType.Comma);)if(!selectors.addChild(this._parseSelector(isNested)))return this.finish(node,ParseError.SelectorExpected);return this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},Parser.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},Parser.prototype._parseRuleSetDeclaration=function(){return this.peek(TokenType.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},Parser.prototype._needsSemicolonAfter=function(node){switch(node.type){case NodeType.Keyframe:case NodeType.ViewPort:case NodeType.Media:case NodeType.Ruleset:case NodeType.Namespace:case NodeType.If:case NodeType.For:case NodeType.Each:case NodeType.While:case NodeType.MixinDeclaration:case NodeType.FunctionDeclaration:case NodeType.MixinContentDeclaration:return!1;case NodeType.ExtendsReference:case NodeType.MixinContentReference:case NodeType.ReturnStatement:case NodeType.MediaQuery:case NodeType.Debug:case NodeType.Import:case NodeType.AtApplyRule:case NodeType.CustomPropertyDeclaration:return!0;case NodeType.VariableDeclaration:return node.needsSemicolon;case NodeType.MixinReference:return!node.getContent();case NodeType.Declaration:return!node.getNestedProperties()}return!1},Parser.prototype._parseDeclarations=function(parseDeclaration){var node=this.create(Declarations);if(!this.accept(TokenType.CurlyL))return null;for(var decl=parseDeclaration();node.addChild(decl)&&!this.peek(TokenType.CurlyR);){if(this._needsSemicolonAfter(decl)&&!this.accept(TokenType.SemiColon))return this.finish(node,ParseError.SemiColonExpected,[TokenType.SemiColon,TokenType.CurlyR]);for(decl&&this.prevToken&&this.prevToken.type===TokenType.SemiColon&&(decl.semicolonPosition=this.prevToken.offset);this.accept(TokenType.SemiColon););decl=parseDeclaration()}return this.accept(TokenType.CurlyR)?this.finish(node):this.finish(node,ParseError.RightCurlyExpected,[TokenType.CurlyR,TokenType.SemiColon])},Parser.prototype._parseBody=function(node,parseDeclaration){return node.setDeclarations(this._parseDeclarations(parseDeclaration))?this.finish(node):this.finish(node,ParseError.LeftCurlyExpected,[TokenType.CurlyR,TokenType.SemiColon])},Parser.prototype._parseSelector=function(isNested){var node=this.create(Selector),hasContent=!1;for(isNested&&(hasContent=node.addChild(this._parseCombinator()));node.addChild(this._parseSimpleSelector());)hasContent=!0,node.addChild(this._parseCombinator());return hasContent?this.finish(node):null},Parser.prototype._parseDeclaration=function(stopTokens){var custonProperty=this._tryParseCustomPropertyDeclaration(stopTokens);if(custonProperty)return custonProperty;var node=this.create(Declaration);return node.setProperty(this._parseProperty())?this.accept(TokenType.Colon)?(this.prevToken&&(node.colonPosition=this.prevToken.offset),node.setValue(this._parseExpr())?(node.addChild(this._parsePrio()),this.peek(TokenType.SemiColon)&&(node.semicolonPosition=this.token.offset),this.finish(node)):this.finish(node,ParseError.PropertyValueExpected)):this.finish(node,ParseError.ColonExpected,[TokenType.Colon],stopTokens||[TokenType.SemiColon]):null},Parser.prototype._tryParseCustomPropertyDeclaration=function(stopTokens){if(!this.peekRegExp(TokenType.Ident,/^--/))return null;var node=this.create(CustomPropertyDeclaration);if(!node.setProperty(this._parseProperty()))return null;if(!this.accept(TokenType.Colon))return this.finish(node,ParseError.ColonExpected,[TokenType.Colon]);this.prevToken&&(node.colonPosition=this.prevToken.offset);var mark=this.mark();if(this.peek(TokenType.CurlyL)){var propertySet=this.create(CustomPropertySet),declarations=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(propertySet.setDeclarations(declarations)&&!declarations.isErroneous(!0)&&(propertySet.addChild(this._parsePrio()),this.peek(TokenType.SemiColon)))return this.finish(propertySet),node.setPropertySet(propertySet),node.semicolonPosition=this.token.offset,this.finish(node);this.restoreAtMark(mark)}var expression=this._parseExpr();return expression&&!expression.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,__spreadArray(__spreadArray([],stopTokens||[],!1),[TokenType.SemiColon,TokenType.EOF],!1)))?(node.setValue(expression),this.peek(TokenType.SemiColon)&&(node.semicolonPosition=this.token.offset),this.finish(node)):(this.restoreAtMark(mark),node.addChild(this._parseCustomPropertyValue(stopTokens)),node.addChild(this._parsePrio()),objects_isDefined(node.colonPosition)&&this.token.offset===node.colonPosition+1?this.finish(node,ParseError.PropertyValueExpected):this.finish(node))},Parser.prototype._parseCustomPropertyValue=function(stopTokens){var _this=this;void 0===stopTokens&&(stopTokens=[TokenType.CurlyR]);var node=this.create(cssNodes_Node),isTopLevel=function(){return 0===curlyDepth&&0===parensDepth&&0===bracketsDepth},onStopToken=function(){return-1!==stopTokens.indexOf(_this.token.type)},curlyDepth=0,parensDepth=0,bracketsDepth=0;done:for(;;){switch(this.token.type){case TokenType.SemiColon:case TokenType.Exclamation:if(isTopLevel())break done;break;case TokenType.CurlyL:curlyDepth++;break;case TokenType.CurlyR:if(--curlyDepth<0){if(onStopToken()&&0===parensDepth&&0===bracketsDepth)break done;return this.finish(node,ParseError.LeftCurlyExpected)}break;case TokenType.ParenthesisL:parensDepth++;break;case TokenType.ParenthesisR:if(--parensDepth<0){if(onStopToken()&&0===bracketsDepth&&0===curlyDepth)break done;return this.finish(node,ParseError.LeftParenthesisExpected)}break;case TokenType.BracketL:bracketsDepth++;break;case TokenType.BracketR:if(--bracketsDepth<0)return this.finish(node,ParseError.LeftSquareBracketExpected);break;case TokenType.BadString:break done;case TokenType.EOF:var error=ParseError.RightCurlyExpected;return bracketsDepth>0?error=ParseError.RightSquareBracketExpected:parensDepth>0&&(error=ParseError.RightParenthesisExpected),this.finish(node,error)}this.consumeToken()}return this.finish(node)},Parser.prototype._tryToParseDeclaration=function(stopTokens){var mark=this.mark();return this._parseProperty()&&this.accept(TokenType.Colon)?(this.restoreAtMark(mark),this._parseDeclaration(stopTokens)):(this.restoreAtMark(mark),null)},Parser.prototype._parseProperty=function(){var node=this.create(Property),mark=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(mark),null):node.setIdentifier(this._parsePropertyIdentifier())?this.finish(node):null},Parser.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},Parser.prototype._parseCharset=function(){if(!this.peek(TokenType.Charset))return null;var node=this.create(cssNodes_Node);return this.consumeToken(),this.accept(TokenType.String)?this.accept(TokenType.SemiColon)?this.finish(node):this.finish(node,ParseError.SemiColonExpected):this.finish(node,ParseError.IdentifierExpected)},Parser.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var node=this.create(Import);return this.consumeToken(),node.addChild(this._parseURILiteral())||node.addChild(this._parseStringLiteral())?(this.peek(TokenType.SemiColon)||this.peek(TokenType.EOF)||node.setMedialist(this._parseMediaQueryList()),this.finish(node)):this.finish(node,ParseError.URIOrStringExpected)},Parser.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var node=this.create(Namespace);return this.consumeToken(),node.addChild(this._parseURILiteral())||(node.addChild(this._parseIdent()),node.addChild(this._parseURILiteral())||node.addChild(this._parseStringLiteral()))?this.accept(TokenType.SemiColon)?this.finish(node):this.finish(node,ParseError.SemiColonExpected):this.finish(node,ParseError.URIExpected,[TokenType.SemiColon])},Parser.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var node=this.create(FontFace);return this.consumeToken(),this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},Parser.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var node=this.create(ViewPort);return this.consumeToken(),this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},Parser.prototype._parseKeyframe=function(){if(!this.peekRegExp(TokenType.AtKeyword,this.keyframeRegex))return null;var node=this.create(Keyframe),atNode=this.create(cssNodes_Node);return this.consumeToken(),node.setKeyword(this.finish(atNode)),atNode.matches("@-ms-keyframes")&&this.markError(atNode,ParseError.UnknownKeyword),node.setIdentifier(this._parseKeyframeIdent())?this._parseBody(node,this._parseKeyframeSelector.bind(this)):this.finish(node,ParseError.IdentifierExpected,[TokenType.CurlyR])},Parser.prototype._parseKeyframeIdent=function(){return this._parseIdent([ReferenceType.Keyframe])},Parser.prototype._parseKeyframeSelector=function(){var node=this.create(KeyframeSelector);if(!node.addChild(this._parseIdent())&&!this.accept(TokenType.Percentage))return null;for(;this.accept(TokenType.Comma);)if(!node.addChild(this._parseIdent())&&!this.accept(TokenType.Percentage))return this.finish(node,ParseError.PercentageExpected);return this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},Parser.prototype._tryParseKeyframeSelector=function(){var node=this.create(KeyframeSelector),pos=this.mark();if(!node.addChild(this._parseIdent())&&!this.accept(TokenType.Percentage))return null;for(;this.accept(TokenType.Comma);)if(!node.addChild(this._parseIdent())&&!this.accept(TokenType.Percentage))return this.restoreAtMark(pos),null;return this.peek(TokenType.CurlyL)?this._parseBody(node,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(pos),null)},Parser.prototype._parseSupports=function(isNested){if(void 0===isNested&&(isNested=!1),!this.peekKeyword("@supports"))return null;var node=this.create(Supports);return this.consumeToken(),node.addChild(this._parseSupportsCondition()),this._parseBody(node,this._parseSupportsDeclaration.bind(this,isNested))},Parser.prototype._parseSupportsDeclaration=function(isNested){return void 0===isNested&&(isNested=!1),isNested?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},Parser.prototype._parseSupportsCondition=function(){var node=this.create(SupportsCondition);if(this.acceptIdent("not"))node.addChild(this._parseSupportsConditionInParens());else if(node.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(TokenType.Ident,/^(and|or)$/i))for(var text=this.token.text.toLowerCase();this.acceptIdent(text);)node.addChild(this._parseSupportsConditionInParens());return this.finish(node)},Parser.prototype._parseSupportsConditionInParens=function(){var node=this.create(SupportsCondition);if(this.accept(TokenType.ParenthesisL))return this.prevToken&&(node.lParent=this.prevToken.offset),node.addChild(this._tryToParseDeclaration([TokenType.ParenthesisR]))||this._parseSupportsCondition()?this.accept(TokenType.ParenthesisR)?(this.prevToken&&(node.rParent=this.prevToken.offset),this.finish(node)):this.finish(node,ParseError.RightParenthesisExpected,[TokenType.ParenthesisR],[]):this.finish(node,ParseError.ConditionExpected);if(this.peek(TokenType.Ident)){var pos=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(TokenType.ParenthesisL)){for(var openParentCount=1;this.token.type!==TokenType.EOF&&0!==openParentCount;)this.token.type===TokenType.ParenthesisL?openParentCount++:this.token.type===TokenType.ParenthesisR&&openParentCount--,this.consumeToken();return this.finish(node)}this.restoreAtMark(pos)}return this.finish(node,ParseError.LeftParenthesisExpected,[],[TokenType.ParenthesisL])},Parser.prototype._parseMediaDeclaration=function(isNested){return void 0===isNested&&(isNested=!1),isNested?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},Parser.prototype._parseMedia=function(isNested){if(void 0===isNested&&(isNested=!1),!this.peekKeyword("@media"))return null;var node=this.create(Media);return this.consumeToken(),node.addChild(this._parseMediaQueryList())?this._parseBody(node,this._parseMediaDeclaration.bind(this,isNested)):this.finish(node,ParseError.MediaQueryExpected)},Parser.prototype._parseMediaQueryList=function(){var node=this.create(Medialist);if(!node.addChild(this._parseMediaQuery()))return this.finish(node,ParseError.MediaQueryExpected);for(;this.accept(TokenType.Comma);)if(!node.addChild(this._parseMediaQuery()))return this.finish(node,ParseError.MediaQueryExpected);return this.finish(node)},Parser.prototype._parseMediaQuery=function(){var node=this.create(MediaQuery),pos=this.mark();if(this.acceptIdent("not"),this.peek(TokenType.ParenthesisL))this.restoreAtMark(pos),node.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!node.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&node.addChild(this._parseMediaCondition())}return this.finish(node)},Parser.prototype._parseRatio=function(){var pos=this.mark(),node=this.create(RatioValue);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(node):this.finish(node,ParseError.NumberExpected):(this.restoreAtMark(pos),null):null},Parser.prototype._parseMediaCondition=function(){var node=this.create(MediaCondition);this.acceptIdent("not");for(var parseExpression=!0;parseExpression;){if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected,[],[TokenType.CurlyL]);if(this.peek(TokenType.ParenthesisL)||this.peekIdent("not")?node.addChild(this._parseMediaCondition()):node.addChild(this._parseMediaFeature()),!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected,[],[TokenType.CurlyL]);parseExpression=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(node)},Parser.prototype._parseMediaFeature=function(){var _this=this,resyncStopToken=[TokenType.ParenthesisR],node=this.create(MediaFeature),parseRangeOperator=function(){return _this.acceptDelim("<")||_this.acceptDelim(">")?(_this.hasWhitespace()||_this.acceptDelim("="),!0):!!_this.acceptDelim("=")};if(node.addChild(this._parseMediaFeatureName())){if(this.accept(TokenType.Colon)){if(!node.addChild(this._parseMediaFeatureValue()))return this.finish(node,ParseError.TermExpected,[],resyncStopToken)}else if(parseRangeOperator()){if(!node.addChild(this._parseMediaFeatureValue()))return this.finish(node,ParseError.TermExpected,[],resyncStopToken);if(parseRangeOperator()&&!node.addChild(this._parseMediaFeatureValue()))return this.finish(node,ParseError.TermExpected,[],resyncStopToken)}}else{if(!node.addChild(this._parseMediaFeatureValue()))return this.finish(node,ParseError.IdentifierExpected,[],resyncStopToken);if(!parseRangeOperator())return this.finish(node,ParseError.OperatorExpected,[],resyncStopToken);if(!node.addChild(this._parseMediaFeatureName()))return this.finish(node,ParseError.IdentifierExpected,[],resyncStopToken);if(parseRangeOperator()&&!node.addChild(this._parseMediaFeatureValue()))return this.finish(node,ParseError.TermExpected,[],resyncStopToken)}return this.finish(node)},Parser.prototype._parseMediaFeatureName=function(){return this._parseIdent()},Parser.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},Parser.prototype._parseMedium=function(){var node=this.create(cssNodes_Node);return node.addChild(this._parseIdent())?this.finish(node):null},Parser.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},Parser.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var node=this.create(Page);if(this.consumeToken(),node.addChild(this._parsePageSelector()))for(;this.accept(TokenType.Comma);)if(!node.addChild(this._parsePageSelector()))return this.finish(node,ParseError.IdentifierExpected);return this._parseBody(node,this._parsePageDeclaration.bind(this))},Parser.prototype._parsePageMarginBox=function(){if(!this.peek(TokenType.AtKeyword))return null;var node=this.create(PageBoxMarginBox);return this.acceptOneKeyword(pageBoxDirectives)||this.markError(node,ParseError.UnknownAtRule,[],[TokenType.CurlyL]),this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},Parser.prototype._parsePageSelector=function(){if(!this.peek(TokenType.Ident)&&!this.peek(TokenType.Colon))return null;var node=this.create(cssNodes_Node);return node.addChild(this._parseIdent()),this.accept(TokenType.Colon)&&!node.addChild(this._parseIdent())?this.finish(node,ParseError.IdentifierExpected):this.finish(node)},Parser.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var node=this.create(Document);return this.consumeToken(),this.resync([],[TokenType.CurlyL]),this._parseBody(node,this._parseStylesheetStatement.bind(this))},Parser.prototype._parseUnknownAtRule=function(){if(!this.peek(TokenType.AtKeyword))return null;var node=this.create(UnknownAtRule);node.addChild(this._parseUnknownAtRuleName());var curlyLCount=0,curlyDepth=0,parensDepth=0,bracketsDepth=0;done:for(;;){switch(this.token.type){case TokenType.SemiColon:if(0===curlyDepth&&0===parensDepth&&0===bracketsDepth)break done;break;case TokenType.EOF:return curlyDepth>0?this.finish(node,ParseError.RightCurlyExpected):bracketsDepth>0?this.finish(node,ParseError.RightSquareBracketExpected):parensDepth>0?this.finish(node,ParseError.RightParenthesisExpected):this.finish(node);case TokenType.CurlyL:curlyLCount++,curlyDepth++;break;case TokenType.CurlyR:if(curlyDepth--,curlyLCount>0&&0===curlyDepth){if(this.consumeToken(),bracketsDepth>0)return this.finish(node,ParseError.RightSquareBracketExpected);if(parensDepth>0)return this.finish(node,ParseError.RightParenthesisExpected);break done}if(curlyDepth<0){if(0===parensDepth&&0===bracketsDepth)break done;return this.finish(node,ParseError.LeftCurlyExpected)}break;case TokenType.ParenthesisL:parensDepth++;break;case TokenType.ParenthesisR:if(--parensDepth<0)return this.finish(node,ParseError.LeftParenthesisExpected);break;case TokenType.BracketL:bracketsDepth++;break;case TokenType.BracketR:if(--bracketsDepth<0)return this.finish(node,ParseError.LeftSquareBracketExpected)}this.consumeToken()}return node},Parser.prototype._parseUnknownAtRuleName=function(){var node=this.create(cssNodes_Node);return this.accept(TokenType.AtKeyword)?this.finish(node):node},Parser.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(TokenType.Dashmatch)||this.peek(TokenType.Includes)||this.peek(TokenType.SubstringOperator)||this.peek(TokenType.PrefixOperator)||this.peek(TokenType.SuffixOperator)||this.peekDelim("=")){var node=this.createNode(NodeType.Operator);return this.consumeToken(),this.finish(node)}return null},Parser.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var node=this.create(cssNodes_Node);return this.consumeToken(),this.finish(node)},Parser.prototype._parseCombinator=function(){if(this.peekDelim(">")){var node=this.create(cssNodes_Node);this.consumeToken();var mark=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return node.type=NodeType.SelectorCombinatorShadowPiercingDescendant,this.finish(node);this.restoreAtMark(mark)}return node.type=NodeType.SelectorCombinatorParent,this.finish(node)}if(this.peekDelim("+")){node=this.create(cssNodes_Node);return this.consumeToken(),node.type=NodeType.SelectorCombinatorSibling,this.finish(node)}if(this.peekDelim("~")){node=this.create(cssNodes_Node);return this.consumeToken(),node.type=NodeType.SelectorCombinatorAllSiblings,this.finish(node)}if(this.peekDelim("/")){node=this.create(cssNodes_Node);this.consumeToken();mark=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return node.type=NodeType.SelectorCombinatorShadowPiercingDescendant,this.finish(node);this.restoreAtMark(mark)}return null},Parser.prototype._parseSimpleSelector=function(){var node=this.create(SimpleSelector),c=0;for(node.addChild(this._parseElementName())&&c++;(0===c||!this.hasWhitespace())&&node.addChild(this._parseSimpleSelectorBody());)c++;return c>0?this.finish(node):null},Parser.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},Parser.prototype._parseSelectorIdent=function(){return this._parseIdent()},Parser.prototype._parseHash=function(){if(!this.peek(TokenType.Hash)&&!this.peekDelim("#"))return null;var node=this.createNode(NodeType.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!node.addChild(this._parseSelectorIdent()))return this.finish(node,ParseError.IdentifierExpected)}else this.consumeToken();return this.finish(node)},Parser.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var node=this.createNode(NodeType.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!node.addChild(this._parseSelectorIdent())?this.finish(node,ParseError.IdentifierExpected):this.finish(node)},Parser.prototype._parseElementName=function(){var pos=this.mark(),node=this.createNode(NodeType.ElementNameSelector);return node.addChild(this._parseNamespacePrefix()),node.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(node):(this.restoreAtMark(pos),null)},Parser.prototype._parseNamespacePrefix=function(){var pos=this.mark(),node=this.createNode(NodeType.NamespacePrefix);return!node.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(node):(this.restoreAtMark(pos),null)},Parser.prototype._parseAttrib=function(){if(!this.peek(TokenType.BracketL))return null;var node=this.create(AttributeSelector);return this.consumeToken(),node.setNamespacePrefix(this._parseNamespacePrefix()),node.setIdentifier(this._parseIdent())?(node.setOperator(this._parseOperator())&&(node.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(TokenType.BracketR)?this.finish(node):this.finish(node,ParseError.RightSquareBracketExpected)):this.finish(node,ParseError.IdentifierExpected)},Parser.prototype._parsePseudo=function(){var _this=this,node=this._tryParsePseudoIdentifier();if(node){if(!this.hasWhitespace()&&this.accept(TokenType.ParenthesisL)){if(node.addChild(this.try((function(){var selectors=_this.create(cssNodes_Node);if(!selectors.addChild(_this._parseSelector(!1)))return null;for(;_this.accept(TokenType.Comma)&&selectors.addChild(_this._parseSelector(!1)););return _this.peek(TokenType.ParenthesisR)?_this.finish(selectors):null}))||this._parseBinaryExpr()),!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected)}return this.finish(node)}return null},Parser.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(TokenType.Colon))return null;var pos=this.mark(),node=this.createNode(NodeType.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(pos),null):(this.accept(TokenType.Colon),this.hasWhitespace()||!node.addChild(this._parseIdent())?this.finish(node,ParseError.IdentifierExpected):this.finish(node))},Parser.prototype._tryParsePrio=function(){var mark=this.mark(),prio=this._parsePrio();return prio||(this.restoreAtMark(mark),null)},Parser.prototype._parsePrio=function(){if(!this.peek(TokenType.Exclamation))return null;var node=this.createNode(NodeType.Prio);return this.accept(TokenType.Exclamation)&&this.acceptIdent("important")?this.finish(node):null},Parser.prototype._parseExpr=function(stopOnComma){void 0===stopOnComma&&(stopOnComma=!1);var node=this.create(Expression);if(!node.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(TokenType.Comma)){if(stopOnComma)return this.finish(node);this.consumeToken()}if(!node.addChild(this._parseBinaryExpr()))break}return this.finish(node)},Parser.prototype._parseNamedLine=function(){if(!this.peek(TokenType.BracketL))return null;var node=this.createNode(NodeType.GridLine);for(this.consumeToken();node.addChild(this._parseIdent()););return this.accept(TokenType.BracketR)?this.finish(node):this.finish(node,ParseError.RightSquareBracketExpected)},Parser.prototype._parseBinaryExpr=function(preparsedLeft,preparsedOper){var node=this.create(BinaryExpression);if(!node.setLeft(preparsedLeft||this._parseTerm()))return null;if(!node.setOperator(preparsedOper||this._parseOperator()))return this.finish(node);if(!node.setRight(this._parseTerm()))return this.finish(node,ParseError.TermExpected);node=this.finish(node);var operator=this._parseOperator();return operator&&(node=this._parseBinaryExpr(node,operator)),this.finish(node)},Parser.prototype._parseTerm=function(){var node=this.create(Term);return node.setOperator(this._parseUnaryOperator()),node.setExpression(this._parseTermExpression())?this.finish(node):null},Parser.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},Parser.prototype._parseOperation=function(){if(!this.peek(TokenType.ParenthesisL))return null;var node=this.create(cssNodes_Node);return this.consumeToken(),node.addChild(this._parseExpr()),this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},Parser.prototype._parseNumeric=function(){if(this.peek(TokenType.Num)||this.peek(TokenType.Percentage)||this.peek(TokenType.Resolution)||this.peek(TokenType.Length)||this.peek(TokenType.EMS)||this.peek(TokenType.EXS)||this.peek(TokenType.Angle)||this.peek(TokenType.Time)||this.peek(TokenType.Dimension)||this.peek(TokenType.Freq)){var node=this.create(NumericValue);return this.consumeToken(),this.finish(node)}return null},Parser.prototype._parseStringLiteral=function(){if(!this.peek(TokenType.String)&&!this.peek(TokenType.BadString))return null;var node=this.createNode(NodeType.StringLiteral);return this.consumeToken(),this.finish(node)},Parser.prototype._parseURILiteral=function(){if(!this.peekRegExp(TokenType.Ident,/^url(-prefix)?$/i))return null;var pos=this.mark(),node=this.createNode(NodeType.URILiteral);return this.accept(TokenType.Ident),this.hasWhitespace()||!this.peek(TokenType.ParenthesisL)?(this.restoreAtMark(pos),null):(this.scanner.inURL=!0,this.consumeToken(),node.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected))},Parser.prototype._parseURLArgument=function(){var node=this.create(cssNodes_Node);return this.accept(TokenType.String)||this.accept(TokenType.BadString)||this.acceptUnquotedString()?this.finish(node):null},Parser.prototype._parseIdent=function(referenceTypes){if(!this.peek(TokenType.Ident))return null;var node=this.create(Identifier);return referenceTypes&&(node.referenceTypes=referenceTypes),node.isCustomProperty=this.peekRegExp(TokenType.Ident,/^--/),this.consumeToken(),this.finish(node)},Parser.prototype._parseFunction=function(){var pos=this.mark(),node=this.create(Function);if(!node.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(TokenType.ParenthesisL))return this.restoreAtMark(pos),null;if(node.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)node.getArguments().addChild(this._parseFunctionArgument())||this.markError(node,ParseError.ExpressionExpected);return this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},Parser.prototype._parseFunctionIdentifier=function(){if(!this.peek(TokenType.Ident))return null;var node=this.create(Identifier);if(node.referenceTypes=[ReferenceType.Function],this.acceptIdent("progid")){if(this.accept(TokenType.Colon))for(;this.accept(TokenType.Ident)&&this.acceptDelim("."););return this.finish(node)}return this.consumeToken(),this.finish(node)},Parser.prototype._parseFunctionArgument=function(){var node=this.create(FunctionArgument);return node.setValue(this._parseExpr(!0))?this.finish(node):null},Parser.prototype._parseHexColor=function(){if(this.peekRegExp(TokenType.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var node=this.create(HexColorValue);return this.consumeToken(),this.finish(node)}return null},Parser}();function includes(array,item){return-1!==array.indexOf(item)}function union(){for(var arrays=[],_i=0;_ioffset+length||this.offset===offset&&this.length===length?this.findInScope(offset,length):null},Scope.prototype.findInScope=function(offset,length){void 0===length&&(length=0);var end=offset+length,idx=function findFirst(array,p){var low=0,high=array.length;if(0===high)return 0;for(;lowend}));if(0===idx)return this;var res=this.children[idx-1];return res.offset<=offset&&res.offset+res.length>=offset+length?res.findInScope(offset,length):this},Scope.prototype.addSymbol=function(symbol){this.symbols.push(symbol)},Scope.prototype.getSymbol=function(name,type){for(var index=0;index0&&(result.arguments=args),result},Command.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.title)&&Is.string(candidate.command)}}(Command||(Command={})),function(TextEdit){TextEdit.replace=function replace(range,newText){return{range,newText}},TextEdit.insert=function insert(position,newText){return{range:{start:position,end:position},newText}},TextEdit.del=function del(range){return{range,newText:""}},TextEdit.is=function is(value){var candidate=value;return Is.objectLiteral(candidate)&&Is.string(candidate.newText)&&main_Range.is(candidate.range)}}(TextEdit||(TextEdit={})),function(ChangeAnnotation){ChangeAnnotation.create=function create(label,needsConfirmation,description){var result={label};return void 0!==needsConfirmation&&(result.needsConfirmation=needsConfirmation),void 0!==description&&(result.description=description),result},ChangeAnnotation.is=function is(value){var candidate=value;return void 0!==candidate&&Is.objectLiteral(candidate)&&Is.string(candidate.label)&&(Is.boolean(candidate.needsConfirmation)||void 0===candidate.needsConfirmation)&&(Is.string(candidate.description)||void 0===candidate.description)}}(ChangeAnnotation||(ChangeAnnotation={})),function(ChangeAnnotationIdentifier){ChangeAnnotationIdentifier.is=function is(value){return"string"==typeof value}}(ChangeAnnotationIdentifier||(ChangeAnnotationIdentifier={})),function(AnnotatedTextEdit){AnnotatedTextEdit.replace=function replace(range,newText,annotation){return{range,newText,annotationId:annotation}},AnnotatedTextEdit.insert=function insert(position,newText,annotation){return{range:{start:position,end:position},newText,annotationId:annotation}},AnnotatedTextEdit.del=function del(range,annotation){return{range,newText:"",annotationId:annotation}},AnnotatedTextEdit.is=function is(value){var candidate=value;return TextEdit.is(candidate)&&(ChangeAnnotation.is(candidate.annotationId)||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(AnnotatedTextEdit||(AnnotatedTextEdit={})),function(TextDocumentEdit){TextDocumentEdit.create=function create(textDocument,edits){return{textDocument,edits}},TextDocumentEdit.is=function is(value){var candidate=value;return Is.defined(candidate)&&OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument)&&Array.isArray(candidate.edits)}}(TextDocumentEdit||(TextDocumentEdit={})),function(CreateFile){CreateFile.create=function create(uri,options,annotation){var result={kind:"create",uri};return void 0===options||void 0===options.overwrite&&void 0===options.ignoreIfExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},CreateFile.is=function is(value){var candidate=value;return candidate&&"create"===candidate.kind&&Is.string(candidate.uri)&&(void 0===candidate.options||(void 0===candidate.options.overwrite||Is.boolean(candidate.options.overwrite))&&(void 0===candidate.options.ignoreIfExists||Is.boolean(candidate.options.ignoreIfExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(CreateFile||(CreateFile={})),function(RenameFile){RenameFile.create=function create(oldUri,newUri,options,annotation){var result={kind:"rename",oldUri,newUri};return void 0===options||void 0===options.overwrite&&void 0===options.ignoreIfExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},RenameFile.is=function is(value){var candidate=value;return candidate&&"rename"===candidate.kind&&Is.string(candidate.oldUri)&&Is.string(candidate.newUri)&&(void 0===candidate.options||(void 0===candidate.options.overwrite||Is.boolean(candidate.options.overwrite))&&(void 0===candidate.options.ignoreIfExists||Is.boolean(candidate.options.ignoreIfExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(RenameFile||(RenameFile={})),function(DeleteFile){DeleteFile.create=function create(uri,options,annotation){var result={kind:"delete",uri};return void 0===options||void 0===options.recursive&&void 0===options.ignoreIfNotExists||(result.options=options),void 0!==annotation&&(result.annotationId=annotation),result},DeleteFile.is=function is(value){var candidate=value;return candidate&&"delete"===candidate.kind&&Is.string(candidate.uri)&&(void 0===candidate.options||(void 0===candidate.options.recursive||Is.boolean(candidate.options.recursive))&&(void 0===candidate.options.ignoreIfNotExists||Is.boolean(candidate.options.ignoreIfNotExists)))&&(void 0===candidate.annotationId||ChangeAnnotationIdentifier.is(candidate.annotationId))}}(DeleteFile||(DeleteFile={})),function(WorkspaceEdit){WorkspaceEdit.is=function is(value){var candidate=value;return candidate&&(void 0!==candidate.changes||void 0!==candidate.documentChanges)&&(void 0===candidate.documentChanges||candidate.documentChanges.every((function(change){return Is.string(change.kind)?CreateFile.is(change)||RenameFile.is(change)||DeleteFile.is(change):TextDocumentEdit.is(change)})))}}(WorkspaceEdit||(WorkspaceEdit={}));var TextDocumentIdentifier,VersionedTextDocumentIdentifier,OptionalVersionedTextDocumentIdentifier,TextDocumentItem,MarkupKind,MarkupContent,main_CompletionItemKind,InsertTextFormat,main_CompletionItemTag,InsertReplaceEdit,InsertTextMode,CompletionItem,CompletionList,MarkedString,Hover,ParameterInformation,SignatureInformation,main_DocumentHighlightKind,DocumentHighlight,main_SymbolKind,main_SymbolTag,SymbolInformation,DocumentSymbol,CodeActionKind,CodeActionContext,CodeAction,CodeLens,FormattingOptions,DocumentLink,SelectionRange,TextEditChangeImpl=function(){function TextEditChangeImpl(edits,changeAnnotations){this.edits=edits,this.changeAnnotations=changeAnnotations}return TextEditChangeImpl.prototype.insert=function(position,newText,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.insert(position,newText):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.insert(position,newText,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.insert(position,newText,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.replace=function(range,newText,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.replace(range,newText):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.replace(range,newText,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.replace(range,newText,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.delete=function(range,annotation){var edit,id;if(void 0===annotation?edit=TextEdit.del(range):ChangeAnnotationIdentifier.is(annotation)?(id=annotation,edit=AnnotatedTextEdit.del(range,annotation)):(this.assertChangeAnnotations(this.changeAnnotations),id=this.changeAnnotations.manage(annotation),edit=AnnotatedTextEdit.del(range,id)),this.edits.push(edit),void 0!==id)return id},TextEditChangeImpl.prototype.add=function(edit){this.edits.push(edit)},TextEditChangeImpl.prototype.all=function(){return this.edits},TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)},TextEditChangeImpl.prototype.assertChangeAnnotations=function(value){if(void 0===value)throw new Error("Text edit change is not configured to manage change annotations.")},TextEditChangeImpl}(),ChangeAnnotations=function(){function ChangeAnnotations(annotations){this._annotations=void 0===annotations?Object.create(null):annotations,this._counter=0,this._size=0}return ChangeAnnotations.prototype.all=function(){return this._annotations},Object.defineProperty(ChangeAnnotations.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),ChangeAnnotations.prototype.manage=function(idOrAnnotation,annotation){var id;if(ChangeAnnotationIdentifier.is(idOrAnnotation)?id=idOrAnnotation:(id=this.nextId(),annotation=idOrAnnotation),void 0!==this._annotations[id])throw new Error("Id "+id+" is already in use.");if(void 0===annotation)throw new Error("No annotation provided for id "+id);return this._annotations[id]=annotation,this._size++,id},ChangeAnnotations.prototype.nextId=function(){return this._counter++,this._counter.toString()},ChangeAnnotations}();!function(){function WorkspaceChange(workspaceEdit){var _this=this;this._textEditChanges=Object.create(null),void 0!==workspaceEdit?(this._workspaceEdit=workspaceEdit,workspaceEdit.documentChanges?(this._changeAnnotations=new ChangeAnnotations(workspaceEdit.changeAnnotations),workspaceEdit.changeAnnotations=this._changeAnnotations.all(),workspaceEdit.documentChanges.forEach((function(change){if(TextDocumentEdit.is(change)){var textEditChange=new TextEditChangeImpl(change.edits,_this._changeAnnotations);_this._textEditChanges[change.textDocument.uri]=textEditChange}}))):workspaceEdit.changes&&Object.keys(workspaceEdit.changes).forEach((function(key){var textEditChange=new TextEditChangeImpl(workspaceEdit.changes[key]);_this._textEditChanges[key]=textEditChange}))):this._workspaceEdit={}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),WorkspaceChange.prototype.getTextEditChange=function(key){if(OptionalVersionedTextDocumentIdentifier.is(key)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var textDocument={uri:key.uri,version:key.version};if(!(result=this._textEditChanges[textDocument.uri])){var textDocumentEdit={textDocument,edits:edits=[]};this._workspaceEdit.documentChanges.push(textDocumentEdit),result=new TextEditChangeImpl(edits,this._changeAnnotations),this._textEditChanges[textDocument.uri]=result}return result}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var result;if(!(result=this._textEditChanges[key])){var edits=[];this._workspaceEdit.changes[key]=edits,result=new TextEditChangeImpl(edits),this._textEditChanges[key]=result}return result},WorkspaceChange.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ChangeAnnotations,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},WorkspaceChange.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},WorkspaceChange.prototype.createFile=function(uri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=CreateFile.create(uri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=CreateFile.create(uri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id},WorkspaceChange.prototype.renameFile=function(oldUri,newUri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=RenameFile.create(oldUri,newUri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=RenameFile.create(oldUri,newUri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id},WorkspaceChange.prototype.deleteFile=function(uri,optionsOrAnnotation,options){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var annotation,operation,id;if(ChangeAnnotation.is(optionsOrAnnotation)||ChangeAnnotationIdentifier.is(optionsOrAnnotation)?annotation=optionsOrAnnotation:options=optionsOrAnnotation,void 0===annotation?operation=DeleteFile.create(uri,options):(id=ChangeAnnotationIdentifier.is(annotation)?annotation:this._changeAnnotations.manage(annotation),operation=DeleteFile.create(uri,options,id)),this._workspaceEdit.documentChanges.push(operation),void 0!==id)return id}}();!function(TextDocumentIdentifier){TextDocumentIdentifier.create=function create(uri){return{uri}},TextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)}}(TextDocumentIdentifier||(TextDocumentIdentifier={})),function(VersionedTextDocumentIdentifier){VersionedTextDocumentIdentifier.create=function create(uri,version){return{uri,version}},VersionedTextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.integer(candidate.version)}}(VersionedTextDocumentIdentifier||(VersionedTextDocumentIdentifier={})),function(OptionalVersionedTextDocumentIdentifier){OptionalVersionedTextDocumentIdentifier.create=function create(uri,version){return{uri,version}},OptionalVersionedTextDocumentIdentifier.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&(null===candidate.version||Is.integer(candidate.version))}}(OptionalVersionedTextDocumentIdentifier||(OptionalVersionedTextDocumentIdentifier={})),function(TextDocumentItem){TextDocumentItem.create=function create(uri,languageId,version,text){return{uri,languageId,version,text}},TextDocumentItem.is=function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.string(candidate.languageId)&&Is.integer(candidate.version)&&Is.string(candidate.text)}}(TextDocumentItem||(TextDocumentItem={})),function(MarkupKind){MarkupKind.PlainText="plaintext",MarkupKind.Markdown="markdown"}(MarkupKind||(MarkupKind={})),function(MarkupKind){MarkupKind.is=function is(value){var candidate=value;return candidate===MarkupKind.PlainText||candidate===MarkupKind.Markdown}}(MarkupKind||(MarkupKind={})),function(MarkupContent){MarkupContent.is=function is(value){var candidate=value;return Is.objectLiteral(value)&&MarkupKind.is(candidate.kind)&&Is.string(candidate.value)}}(MarkupContent||(MarkupContent={})),function(CompletionItemKind){CompletionItemKind.Text=1,CompletionItemKind.Method=2,CompletionItemKind.Function=3,CompletionItemKind.Constructor=4,CompletionItemKind.Field=5,CompletionItemKind.Variable=6,CompletionItemKind.Class=7,CompletionItemKind.Interface=8,CompletionItemKind.Module=9,CompletionItemKind.Property=10,CompletionItemKind.Unit=11,CompletionItemKind.Value=12,CompletionItemKind.Enum=13,CompletionItemKind.Keyword=14,CompletionItemKind.Snippet=15,CompletionItemKind.Color=16,CompletionItemKind.File=17,CompletionItemKind.Reference=18,CompletionItemKind.Folder=19,CompletionItemKind.EnumMember=20,CompletionItemKind.Constant=21,CompletionItemKind.Struct=22,CompletionItemKind.Event=23,CompletionItemKind.Operator=24,CompletionItemKind.TypeParameter=25}(main_CompletionItemKind||(main_CompletionItemKind={})),function(InsertTextFormat){InsertTextFormat.PlainText=1,InsertTextFormat.Snippet=2}(InsertTextFormat||(InsertTextFormat={})),function(CompletionItemTag){CompletionItemTag.Deprecated=1}(main_CompletionItemTag||(main_CompletionItemTag={})),function(InsertReplaceEdit){InsertReplaceEdit.create=function create(newText,insert,replace){return{newText,insert,replace}},InsertReplaceEdit.is=function is(value){var candidate=value;return candidate&&Is.string(candidate.newText)&&main_Range.is(candidate.insert)&&main_Range.is(candidate.replace)}}(InsertReplaceEdit||(InsertReplaceEdit={})),function(InsertTextMode){InsertTextMode.asIs=1,InsertTextMode.adjustIndentation=2}(InsertTextMode||(InsertTextMode={})),function(CompletionItem){CompletionItem.create=function create(label){return{label}}}(CompletionItem||(CompletionItem={})),function(CompletionList){CompletionList.create=function create(items,isIncomplete){return{items:items||[],isIncomplete:!!isIncomplete}}}(CompletionList||(CompletionList={})),function(MarkedString){MarkedString.fromPlainText=function fromPlainText(plainText){return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},MarkedString.is=function is(value){var candidate=value;return Is.string(candidate)||Is.objectLiteral(candidate)&&Is.string(candidate.language)&&Is.string(candidate.value)}}(MarkedString||(MarkedString={})),function(Hover){Hover.is=function is(value){var candidate=value;return!!candidate&&Is.objectLiteral(candidate)&&(MarkupContent.is(candidate.contents)||MarkedString.is(candidate.contents)||Is.typedArray(candidate.contents,MarkedString.is))&&(void 0===value.range||main_Range.is(value.range))}}(Hover||(Hover={})),function(ParameterInformation){ParameterInformation.create=function create(label,documentation){return documentation?{label,documentation}:{label}}}(ParameterInformation||(ParameterInformation={})),function(SignatureInformation){SignatureInformation.create=function create(label,documentation){for(var parameters=[],_i=2;_i=0;i--){var e=sortedEdits[i],startOffset=document.offsetAt(e.range.start),endOffset=document.offsetAt(e.range.end);if(!(endOffset<=lastModifiedOffset))throw new Error("Overlapping edit");text=text.substring(0,startOffset)+e.newText+text.substring(endOffset,text.length),lastModifiedOffset=startOffset}return text}}(TextDocument||(TextDocument={}));var Is,FullTextDocument=function(){function FullTextDocument(uri,languageId,version,content){this._uri=uri,this._languageId=languageId,this._version=version,this._content=content,this._lineOffsets=void 0}return Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),FullTextDocument.prototype.getText=function(range){if(range){var start=this.offsetAt(range.start),end=this.offsetAt(range.end);return this._content.substring(start,end)}return this._content},FullTextDocument.prototype.update=function(event,version){this._content=event.text,this._version=version,this._lineOffsets=void 0},FullTextDocument.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var lineOffsets=[],text=this._content,isLineStart=!0,i=0;i0&&lineOffsets.push(text.length),this._lineOffsets=lineOffsets}return this._lineOffsets},FullTextDocument.prototype.positionAt=function(offset){offset=Math.max(Math.min(offset,this._content.length),0);var lineOffsets=this.getLineOffsets(),low=0,high=lineOffsets.length;if(0===high)return main_Position.create(0,offset);for(;lowoffset?high=mid:low=mid+1}var line=low-1;return main_Position.create(line,offset-lineOffsets[line])},FullTextDocument.prototype.offsetAt=function(position){var lineOffsets=this.getLineOffsets();if(position.line>=lineOffsets.length)return this._content.length;if(position.line<0)return 0;var lineOffset=lineOffsets[position.line],nextLineOffset=position.line+1offset?high=mid:low=mid+1}var line=low-1;return{line,character:offset-lineOffsets[line]}},FullTextDocument.prototype.offsetAt=function(position){var lineOffsets=this.getLineOffsets();if(position.line>=lineOffsets.length)return this._content.length;if(position.line<0)return 0;var lineOffset=lineOffsets[position.line],nextLineOffset=position.line+1end.line||start.line===end.line&&start.character>end.character?{start:end,end:start}:range}function getWellformedEdit(textEdit){var range=getWellformedRange(textEdit.range);return range!==textEdit.range?{newText:textEdit.newText,range}:textEdit}!function(TextDocument){TextDocument.create=function create(uri,languageId,version,content){return new main_FullTextDocument(uri,languageId,version,content)},TextDocument.update=function update(document,changes,version){if(document instanceof main_FullTextDocument)return document.update(changes,version),document;throw new Error("TextDocument.update: document must be created by TextDocument.create")},TextDocument.applyEdits=function applyEdits(document,edits){for(var text=document.getText(),sortedEdits=mergeSort(edits.map(getWellformedEdit),(function(a,b){var diff=a.range.start.line-b.range.start.line;return 0===diff?a.range.start.character-b.range.start.character:diff})),lastModifiedOffset=0,spans=[],_i=0,sortedEdits_1=sortedEdits;_ilastModifiedOffset&&spans.push(text.substring(lastModifiedOffset,startOffset)),e.newText.length&&spans.push(e.newText),lastModifiedOffset=document.offsetAt(e.range.end)}return spans.push(text.substr(lastModifiedOffset)),spans.join("")}}(main_TextDocument||(main_TextDocument={})),function(ClientCapabilities){ClientCapabilities.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[MarkupKind.Markdown,MarkupKind.PlainText]}},hover:{contentFormat:[MarkupKind.Markdown,MarkupKind.PlainText]}}}}(ClientCapabilities||(ClientCapabilities={})),function(FileType){FileType[FileType.Unknown=0]="Unknown",FileType[FileType.File=1]="File",FileType[FileType.Directory=2]="Directory",FileType[FileType.SymbolicLink=64]="SymbolicLink"}(FileType||(FileType={}));var LIB,vscode_uri_process=__webpack_require__("./node_modules/process/browser.js");LIB=(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,h=0;h<=t.length;++h){if(h2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",o=0):o=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=h,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=h,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,h):n=t.slice(i+1,h),o=h-i-1;i=h,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=vscode_uri_process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var o=1;of){if(47===r.charCodeAt(h+c))return r.slice(h+c+1);if(0===c)return r.slice(h+c)}else a>f&&(47===t.charCodeAt(o+c)?u=c:0===c&&(u=0));break}var l=t.charCodeAt(o+c);if(l!==r.charCodeAt(h+c))break;47===l&&(u=c)}var p="";for(c=o+u+1;c<=i;++c)c!==i&&47!==t.charCodeAt(c)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(h+u):(h+=u,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var h=r.length-1,s=-1;for(n=t.length-1;n>=0;--n){var f=t.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else-1===s&&(a=!1,s=n+1),h>=0&&(f===r.charCodeAt(h)?-1==--h&&(i=n):(h=-1,i=s))}return o===i?i=s:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,h=t.length-1;h>=0;--h){var s=t.charCodeAt(h);if(47!==s)-1===o&&(i=!1,o=h+1),46===s?-1===r?r=h:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=h+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,h=0,s=-1,f=!0,u=t.length-1,c=0;u>=n;--u)if(47!==(o=t.charCodeAt(u)))-1===s&&(f=!1,s=u+1),46===o?-1===a?a=u:1!==c&&(c=1):-1!==a&&(c=-1);else if(!f){h=u+1;break}return-1===a||-1===s||0===c||1===c&&a===s-1&&a===h+1?-1!==s&&(r.base=r.name=0===h&&i?t.slice(1,s):t.slice(h,s)):(0===h&&i?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(h,a),r.base=t.slice(h,s)),r.ext=t.slice(a,s)),h>0?r.dir=t.slice(0,h-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n},447:(t,e,r)=>{var n;if(r.r(e),r.d(e,{URI:()=>g,Utils:()=>O}),"object"==typeof vscode_uri_process)n="win32"===vscode_uri_process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;n=o.indexOf("Windows")>=0}var i,a,h=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=/^\w[\w\d+.-]*$/,f=/^\//,u=/^\/\//,c="",l="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function t(t,e,r,n,o,i){void 0===i&&(i=!1),"object"==typeof t?(this.scheme=t.scheme||c,this.authority=t.authority||c,this.path=t.path||c,this.query=t.query||c,this.fragment=t.fragment||c):(this.scheme=function(t,e){return t||e?t:"file"}(t,i),this.authority=e||c,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==l&&(e=l+e):e=l}return e}(this.scheme,r||c),this.query=n||c,this.fragment=o||c,function(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!s.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!f.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i))}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,n=t.path,o=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=c),void 0===r?r=this.authority:null===r&&(r=c),void 0===n?n=this.path:null===n&&(n=c),void 0===o?o=this.query:null===o&&(o=c),void 0===i?i=this.fragment:null===i&&(i=c),e===this.scheme&&r===this.authority&&n===this.path&&o===this.query&&i===this.fragment?this:new v(e,r,n,o,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=p.exec(t);return r?new v(r[2]||c,x(r[4]||c),x(r[5]||c),x(r[7]||c),x(r[9]||c),e):new v(c,c,c,c,c)},t.file=function(t){var e=c;if(n&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){var r=t.indexOf(l,2);-1===r?(e=t.substring(2),t=l):(e=t.substring(2,r),t=t.substring(r)||l)}return new v("file",e,t,c,c)},t.from=function(t){return new v(t.scheme,t.authority,t.path,t.query,t.fragment)},t.prototype.toString=function(t){return void 0===t&&(t=!1),A(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new v(e);return r._formatted=e.external,r._fsPath=e._sep===d?e.fsPath:null,r}return e},t}(),d=n?1:void 0,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return h(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=d),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(g),m=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(t,e){for(var r=void 0,n=-1,o=0;o=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||e&&47===i)-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),void 0!==r&&(r+=t.charAt(o));else{void 0===r&&(r=t.substr(0,o));var a=m[i];void 0!==a?(-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),r+=a):-1===n&&(n=o)}}return-1!==n&&(r+=encodeURIComponent(t.substring(n))),void 0!==r?r:t}function b(t){for(var e=void 0,r=0;r1&&"file"===t.scheme?"//"+t.authority+t.path:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n&&(r=r.replace(/\//g,"\\")),r}function A(t,e){var r=e?b:y,n="",o=t.scheme,i=t.authority,a=t.path,h=t.query,s=t.fragment;if(o&&(n+=o,n+=":"),(i||"file"===o)&&(n+=l,n+=l),i){var f=i.indexOf("@");if(-1!==f){var u=i.substr(0,f);i=i.substr(f+1),-1===(f=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,f),!1),n+=":",n+=r(u.substr(f+1),!1)),n+="@"}-1===(f=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,f),!1),n+=i.substr(f))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(c=a.charCodeAt(1))>=65&&c<=90&&(a="/"+String.fromCharCode(c+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var c;(c=a.charCodeAt(0))>=65&&c<=90&&(a=String.fromCharCode(c+32)+":"+a.substr(2))}n+=r(a,!0)}return h&&(n+="?",n+=r(h,!1)),s&&(n+="#",n+=e?s:y(s,!1)),n}function w(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+w(t.substr(3)):t}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(t){return t.match(_)?t.replace(_,(function(t){return w(t)})):t}var O,P=r(470),j=function(){for(var t=0,e=0,r=arguments.length;e{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(447)})();const{URI:vscode_uri_URI,Utils}=LIB;var resources_spreadArray=function(to,from,pack){if(pack||2===arguments.length)for(var ar,i=0,l=from.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(text.charAt(i));)i--;return text.substring(i+1,offset)}(document,this.offset),this.defaultReplaceRange=main_Range.create(main_Position.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=document,this.styleSheet=styleSheet,this.documentSettings=documentSettings;try{var result={isIncomplete:!1,items:[]};this.nodePath=getNodePath(this.styleSheet,this.offset);for(var i=this.nodePath.length-1;i>=0;i--){var node=this.nodePath[i];if(node instanceof Property)this.getCompletionsForDeclarationProperty(node.getParent(),result);else if(node instanceof Expression)node.parent instanceof Interpolation?this.getVariableProposals(null,result):this.getCompletionsForExpression(node,result);else if(node instanceof SimpleSelector){var parentRef=node.findAParent(NodeType.ExtendsReference,NodeType.Ruleset);if(parentRef)if(parentRef.type===NodeType.ExtendsReference)this.getCompletionsForExtendsReference(parentRef,node,result);else{var parentRuleSet=parentRef;this.getCompletionsForSelector(parentRuleSet,parentRuleSet&&parentRuleSet.isNested(),result)}}else if(node instanceof FunctionArgument)this.getCompletionsForFunctionArgument(node,node.getParent(),result);else if(node instanceof Declarations)this.getCompletionsForDeclarations(node,result);else if(node instanceof VariableDeclaration)this.getCompletionsForVariableDeclaration(node,result);else if(node instanceof RuleSet)this.getCompletionsForRuleSet(node,result);else if(node instanceof Interpolation)this.getCompletionsForInterpolation(node,result);else if(node instanceof FunctionDeclaration)this.getCompletionsForFunctionDeclaration(node,result);else if(node instanceof MixinReference)this.getCompletionsForMixinReference(node,result);else if(node instanceof Function)this.getCompletionsForFunctionArgument(null,node,result);else if(node instanceof Supports)this.getCompletionsForSupports(node,result);else if(node instanceof SupportsCondition)this.getCompletionsForSupportsCondition(node,result);else if(node instanceof ExtendsReference)this.getCompletionsForExtendsReference(node,null,result);else if(node.type===NodeType.URILiteral)this.getCompletionForUriLiteralValue(node,result);else if(null===node.parent)this.getCompletionForTopLevel(result);else{if(node.type!==NodeType.StringLiteral||!this.isImportPathParent(node.parent.type))continue;this.getCompletionForImportPath(node,result)}if(result.items.length>0||this.offset>node.offset)return this.finalize(result)}return this.getCompletionsForStylesheet(result),0===result.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,result),this.finalize(result)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},CSSCompletion.prototype.isImportPathParent=function(type){return type===NodeType.Import},CSSCompletion.prototype.finalize=function(result){return result},CSSCompletion.prototype.findInNodePath=function(){for(var types=[],_i=0;_i=0;i--){var node=this.nodePath[i];if(-1!==types.indexOf(node.type))return node}return null},CSSCompletion.prototype.getCompletionsForDeclarationProperty=function(declaration,result){return this.getPropertyProposals(declaration,result)},CSSCompletion.prototype.getPropertyProposals=function(declaration,result){var _this=this,triggerPropertyValueCompletion=this.isTriggerPropertyValueCompletionEnabled,completePropertyWithSemicolon=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((function(entry){var range,insertText,retrigger=!1;declaration?(range=_this.getCompletionRange(declaration.getProperty()),insertText=entry.name,objects_isDefined(declaration.colonPosition)||(insertText+=": ",retrigger=!0)):(range=_this.getCompletionRange(null),insertText=entry.name+": ",retrigger=!0),!declaration&&completePropertyWithSemicolon&&(insertText+="$0;"),declaration&&!declaration.semicolonPosition&&completePropertyWithSemicolon&&_this.offset>=_this.textDocument.offsetAt(range.end)&&(insertText+="$0;");var item={label:entry.name,documentation:getEntryDescription(entry,_this.doesSupportMarkdown()),tags:isDeprecated(entry)?[main_CompletionItemTag.Deprecated]:[],textEdit:TextEdit.replace(range,insertText),insertTextFormat:InsertTextFormat.Snippet,kind:main_CompletionItemKind.Property};entry.restrictions||(retrigger=!1),triggerPropertyValueCompletion&&retrigger&&(item.command=retriggerCommand);var sortTextSuffix=(255-("number"==typeof entry.relevance?Math.min(Math.max(entry.relevance,0),99):50)).toString(16),sortTextPrefix=startsWith(entry.name,"-")?SortTexts.VendorPrefixed:SortTexts.Normal;item.sortText=sortTextPrefix+"_"+sortTextSuffix,result.items.push(item)})),this.completionParticipants.forEach((function(participant){participant.onCssProperty&&participant.onCssProperty({propertyName:_this.currentWord,range:_this.defaultReplaceRange})})),result},Object.defineProperty(CSSCompletion.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var _a,_b;return null===(_b=null===(_a=this.documentSettings)||void 0===_a?void 0:_a.triggerPropertyValueCompletion)||void 0===_b||_b},enumerable:!1,configurable:!0}),Object.defineProperty(CSSCompletion.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var _a,_b;return null===(_b=null===(_a=this.documentSettings)||void 0===_a?void 0:_a.completePropertyWithSemicolon)||void 0===_b||_b},enumerable:!1,configurable:!0}),CSSCompletion.prototype.getCompletionsForDeclarationValue=function(node,result){for(var _this=this,propertyName=node.getFullPropertyName(),entry=this.cssDataManager.getProperty(propertyName),existingNode=node.getValue()||null;existingNode&&existingNode.hasChildren();)existingNode=existingNode.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(participant){participant.onCssPropertyValue&&participant.onCssPropertyValue({propertyName,propertyValue:_this.currentWord,range:_this.getCompletionRange(existingNode)})})),entry){if(entry.restrictions)for(var _i=0,_a=entry.restrictions;_i<_a.length;_i++){switch(_a[_i]){case"color":this.getColorProposals(entry,existingNode,result);break;case"position":this.getPositionProposals(entry,existingNode,result);break;case"repeat":this.getRepeatStyleProposals(entry,existingNode,result);break;case"line-style":this.getLineStyleProposals(entry,existingNode,result);break;case"line-width":this.getLineWidthProposals(entry,existingNode,result);break;case"geometry-box":this.getGeometryBoxProposals(entry,existingNode,result);break;case"box":this.getBoxProposals(entry,existingNode,result);break;case"image":this.getImageProposals(entry,existingNode,result);break;case"timing-function":this.getTimingFunctionProposals(entry,existingNode,result);break;case"shape":this.getBasicShapeProposals(entry,existingNode,result)}}this.getValueEnumProposals(entry,existingNode,result),this.getCSSWideKeywordProposals(entry,existingNode,result),this.getUnitProposals(entry,existingNode,result)}else for(var existingValues=function collectValues(styleSheet,declaration){var fullPropertyName=declaration.getFullPropertyName(),entries=new cssCompletion_Set;function visitValue(node){return(node instanceof Identifier||node instanceof NumericValue||node instanceof HexColorValue)&&entries.add(node.getText()),!0}function matchesProperty(decl){var propertyName=decl.getFullPropertyName();return fullPropertyName===propertyName}function vistNode(node){if(node instanceof Declaration&&node!==declaration&&matchesProperty(node)){var value=node.getValue();value&&value.accept(visitValue)}return!0}return styleSheet.accept(vistNode),entries}(this.styleSheet,node),_b=0,_c=existingValues.getEntries();_b<_c.length;_b++){var existingValue=_c[_b];result.items.push({label:existingValue,textEdit:TextEdit.replace(this.getCompletionRange(existingNode),existingValue),kind:main_CompletionItemKind.Value})}return this.getVariableProposals(existingNode,result),this.getTermProposals(entry,existingNode,result),result},CSSCompletion.prototype.getValueEnumProposals=function(entry,existingNode,result){if(entry.values)for(var _i=0,_a=entry.values;_i<_a.length;_i++){var value=_a[_i],insertString=value.name,insertTextFormat=void 0;if(endsWith(insertString,")")){var from=insertString.lastIndexOf("(");-1!==from&&(insertString=insertString.substr(0,from)+"($1)",insertTextFormat=SnippetFormat)}var sortText=SortTexts.Enums;startsWith(value.name,"-")&&(sortText+=SortTexts.VendorPrefixed);var item={label:value.name,documentation:getEntryDescription(value,this.doesSupportMarkdown()),tags:isDeprecated(entry)?[main_CompletionItemTag.Deprecated]:[],textEdit:TextEdit.replace(this.getCompletionRange(existingNode),insertString),sortText,kind:main_CompletionItemKind.Value,insertTextFormat};result.items.push(item)}return result},CSSCompletion.prototype.getCSSWideKeywordProposals=function(entry,existingNode,result){for(var keywords in cssWideKeywords)result.items.push({label:keywords,documentation:cssWideKeywords[keywords],textEdit:TextEdit.replace(this.getCompletionRange(existingNode),keywords),kind:main_CompletionItemKind.Value});for(var func in cssWideFunctions){var insertText=moveCursorInsideParenthesis(func);result.items.push({label:func,documentation:cssWideFunctions[func],textEdit:TextEdit.replace(this.getCompletionRange(existingNode),insertText),kind:main_CompletionItemKind.Function,insertTextFormat:SnippetFormat,command:startsWith(func,"var")?retriggerCommand:void 0})}return result},CSSCompletion.prototype.getCompletionsForInterpolation=function(node,result){return this.offset>=node.offset+2&&this.getVariableProposals(null,result),result},CSSCompletion.prototype.getVariableProposals=function(existingNode,result){for(var _i=0,symbols_1=this.getSymbolContext().findSymbolsAtOffset(this.offset,ReferenceType.Variable);_i0){var numMatch=this.currentWord.match(/^-?\d[\.\d+]*/);numMatch&&(currentWord=numMatch[0],result.isIncomplete=currentWord.length===this.currentWord.length)}else 0===this.currentWord.length&&(result.isIncomplete=!0);if(existingNode&&existingNode.parent&&existingNode.parent.type===NodeType.Term&&(existingNode=existingNode.getParent()),entry.restrictions)for(var _i=0,_a=entry.restrictions;_i<_a.length;_i++){var restriction=_a[_i],units=builtinData_units[restriction];if(units)for(var _b=0,units_1=units;_b=declarations.end?this.getCompletionForTopLevel(result):!declarations||this.offset<=declarations.offset?this.getCompletionsForSelector(ruleSet,ruleSet.isNested(),result):this.getCompletionsForDeclarations(ruleSet.getDeclarations(),result)},CSSCompletion.prototype.getCompletionsForSelector=function(ruleSet,isNested,result){var _this=this,existingNode=this.findInNodePath(NodeType.PseudoSelector,NodeType.IdentifierSelector,NodeType.ClassSelector,NodeType.ElementNameSelector);if(!existingNode&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=main_Range.create(main_Position.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(entry){var insertText=moveCursorInsideParenthesis(entry.name),item={label:entry.name,textEdit:TextEdit.replace(_this.getCompletionRange(existingNode),insertText),documentation:getEntryDescription(entry,_this.doesSupportMarkdown()),tags:isDeprecated(entry)?[main_CompletionItemTag.Deprecated]:[],kind:main_CompletionItemKind.Function,insertTextFormat:entry.name!==insertText?SnippetFormat:void 0};startsWith(entry.name,":-")&&(item.sortText=SortTexts.VendorPrefixed),result.items.push(item)})),this.cssDataManager.getPseudoElements().forEach((function(entry){var insertText=moveCursorInsideParenthesis(entry.name),item={label:entry.name,textEdit:TextEdit.replace(_this.getCompletionRange(existingNode),insertText),documentation:getEntryDescription(entry,_this.doesSupportMarkdown()),tags:isDeprecated(entry)?[main_CompletionItemTag.Deprecated]:[],kind:main_CompletionItemKind.Function,insertTextFormat:entry.name!==insertText?SnippetFormat:void 0};startsWith(entry.name,"::-")&&(item.sortText=SortTexts.VendorPrefixed),result.items.push(item)})),!isNested){for(var _i=0,_a=html5Tags;_i<_a.length;_i++){var entry=_a[_i];result.items.push({label:entry,textEdit:TextEdit.replace(this.getCompletionRange(existingNode),entry),kind:main_CompletionItemKind.Keyword})}for(var _b=0,_c=svgElements;_b<_c.length;_b++){entry=_c[_b];result.items.push({label:entry,textEdit:TextEdit.replace(this.getCompletionRange(existingNode),entry),kind:main_CompletionItemKind.Keyword})}}var visited={};visited[this.currentWord]=!0;var docText=this.textDocument.getText();if(this.styleSheet.accept((function(n){if(n.type===NodeType.SimpleSelector&&n.length>0){var selector=docText.substr(n.offset,n.length);return"."!==selector.charAt(0)||visited[selector]||(visited[selector]=!0,result.items.push({label:selector,textEdit:TextEdit.replace(_this.getCompletionRange(existingNode),selector),kind:main_CompletionItemKind.Keyword})),!1}return!0})),ruleSet&&ruleSet.isNested()){var selector=ruleSet.getSelectors().findFirstChildBeforeOffset(this.offset);selector&&0===ruleSet.getSelectors().getChildren().indexOf(selector)&&this.getPropertyProposals(null,result)}return result},CSSCompletion.prototype.getCompletionsForDeclarations=function(declarations,result){if(!declarations||this.offset===declarations.offset)return result;var node=declarations.findFirstChildBeforeOffset(this.offset);if(!node)return this.getCompletionsForDeclarationProperty(null,result);if(node instanceof AbstractDeclaration){var declaration=node;if(!objects_isDefined(declaration.colonPosition)||this.offset<=declaration.colonPosition)return this.getCompletionsForDeclarationProperty(declaration,result);if(objects_isDefined(declaration.semicolonPosition)&&declaration.semicolonPositiondeclaration.colonPosition&&this.getVariableProposals(declaration.getValue(),result),result},CSSCompletion.prototype.getCompletionsForExpression=function(expression,result){var parent=expression.getParent();if(parent instanceof FunctionArgument)return this.getCompletionsForFunctionArgument(parent,parent.getParent(),result),result;var declaration=expression.findParent(NodeType.Declaration);if(!declaration)return this.getTermProposals(void 0,null,result),result;var node=expression.findChildAtOffset(this.offset,!0);return node?node instanceof NumericValue||node instanceof Identifier?this.getCompletionsForDeclarationValue(declaration,result):result:this.getCompletionsForDeclarationValue(declaration,result)},CSSCompletion.prototype.getCompletionsForFunctionArgument=function(arg,func,result){var identifier=func.getIdentifier();return identifier&&identifier.matches("var")&&(func.getArguments().hasChildren()&&func.getArguments().getChild(0)!==arg||this.getVariableProposalsForCSSVarFunction(result)),result},CSSCompletion.prototype.getCompletionsForFunctionDeclaration=function(decl,result){var declarations=decl.getDeclarations();return declarations&&this.offset>declarations.offset&&this.offsetsupportsCondition.lParent&&(!objects_isDefined(supportsCondition.rParent)||this.offset<=supportsCondition.rParent)?this.getCompletionsForDeclarationProperty(null,result):result},CSSCompletion.prototype.getCompletionsForSupports=function(supports,result){var declarations=supports.getDeclarations();if(!declarations||this.offset<=declarations.offset){var child=supports.findFirstChildBeforeOffset(this.offset);return child instanceof SupportsCondition?this.getCompletionsForSupportsCondition(child,result):result}return this.getCompletionForTopLevel(result)},CSSCompletion.prototype.getCompletionsForExtendsReference=function(extendsRef,existingNode,result){return result},CSSCompletion.prototype.getCompletionForUriLiteralValue=function(uriLiteralNode,result){var uriValue,position,range;if(uriLiteralNode.hasChildren()){var uriValueNode=uriLiteralNode.getChild(0);uriValue=uriValueNode.getText(),position=this.position,range=this.getCompletionRange(uriValueNode)}else{uriValue="",position=this.position;var emptyURIValuePosition=this.textDocument.positionAt(uriLiteralNode.offset+4);range=main_Range.create(emptyURIValuePosition,emptyURIValuePosition)}return this.completionParticipants.forEach((function(participant){participant.onCssURILiteralValue&&participant.onCssURILiteralValue({uriValue,position,range})})),result},CSSCompletion.prototype.getCompletionForImportPath=function(importPathNode,result){var _this=this;return this.completionParticipants.forEach((function(participant){participant.onCssImportPath&&participant.onCssImportPath({pathValue:importPathNode.getText(),position:_this.position,range:_this.getCompletionRange(importPathNode)})})),result},CSSCompletion.prototype.hasCharacterAtPosition=function(offset,char){var text=this.textDocument.getText();return offset>=0&&offset"),this.writeLine(indent,content.join(""))}},MarkedStringPrinter}();!function(quotes){function remove(value){var match=value.match(/^['"](.*)["']$/);return match?match[1]:value}quotes.ensure=function ensure(value,which){return which+remove(value)+which},quotes.remove=remove}(quotes||(quotes={}));var Specificity=function Specificity(){this.id=0,this.attr=0,this.tag=0};function toElement(node,parentElement){for(var result=new Element,_i=0,_a=node.getChildren();_i<_a.length;_i++){var child=_a[_i];switch(child.type){case NodeType.SelectorCombinator:if(parentElement){var segments=child.getText().split("&");if(1===segments.length){result.addAttr("name",segments[0]);break}if(result=parentElement.cloneWithParent(),segments[0])result.findRoot().prepend(segments[0]);for(var i=1;i1){var clone=parentElement.cloneWithParent();result.addChild(clone.findRoot()),result=clone}result.append(segments[i])}}break;case NodeType.SelectorPlaceholder:if(child.matches("@at-root"))return result;case NodeType.ElementNameSelector:var text=child.getText();result.addAttr("name","*"===text?"element":selectorPrinting_unescape(text));break;case NodeType.ClassSelector:result.addAttr("class",selectorPrinting_unescape(child.getText().substring(1)));break;case NodeType.IdentifierSelector:result.addAttr("id",selectorPrinting_unescape(child.getText().substring(1)));break;case NodeType.MixinDeclaration:result.addAttr("class",child.getName());break;case NodeType.PseudoSelector:result.addAttr(selectorPrinting_unescape(child.getText()),"");break;case NodeType.AttributeSelector:var selector=child,identifier=selector.getIdentifier();if(identifier){var expression=selector.getValue(),operator=selector.getOperator(),value=void 0;if(expression&&operator)switch(selectorPrinting_unescape(operator.getText())){case"|=":value=quotes.remove(selectorPrinting_unescape(expression.getText()))+"-…";break;case"^=":value=quotes.remove(selectorPrinting_unescape(expression.getText()))+"…";break;case"$=":value="…"+quotes.remove(selectorPrinting_unescape(expression.getText()));break;case"~=":value=" … "+quotes.remove(selectorPrinting_unescape(expression.getText()))+" … ";break;case"*=":value="…"+quotes.remove(selectorPrinting_unescape(expression.getText()))+"…";break;default:value=quotes.remove(selectorPrinting_unescape(expression.getText()))}result.addAttr(selectorPrinting_unescape(identifier.getText()),value)}}}return result}function selectorPrinting_unescape(content){var scanner=new Scanner;scanner.setSource(content);var token=scanner.scanUnquotedString();return token?token.text:content}var SelectorPrinting=function(){function SelectorPrinting(cssDataManager){this.cssDataManager=cssDataManager}return SelectorPrinting.prototype.selectorToMarkedString=function(node){var root=function selectorToElement(node){if(node.matches("@at-root"))return null;var root=new RootElement,parentRuleSets=[],ruleSet=node.getParent();if(ruleSet instanceof RuleSet)for(var parent=ruleSet.getParent();parent&&!isNewSelectorContext(parent);){if(parent instanceof RuleSet){if(parent.getSelectors().matches("@at-root"))break;parentRuleSets.push(parent)}parent=parent.getParent()}for(var builder=new SelectorElementBuilder(root),i=parentRuleSets.length-1;i>=0;i--){var selector=parentRuleSets[i].getSelectors().getChild(0);selector&&builder.processSelector(selector)}return builder.processSelector(node),root}(node);if(root){var markedStrings=new MarkedStringPrinter('"').print(root);return markedStrings.push(this.selectorToSpecificityMarkedString(node)),markedStrings}return[]},SelectorPrinting.prototype.simpleSelectorToMarkedString=function(node){var element=toElement(node),markedStrings=new MarkedStringPrinter('"').print(element);return markedStrings.push(this.selectorToSpecificityMarkedString(node)),markedStrings},SelectorPrinting.prototype.isPseudoElementIdentifier=function(text){var match=text.match(/^::?([\w-]+)/);return!!match&&!!this.cssDataManager.getPseudoElement("::"+match[1])},SelectorPrinting.prototype.selectorToSpecificityMarkedString=function(node){var _this=this,calculateScore=function(node){for(var _i=0,_a=node.getChildren();_i<_a.length;_i++){var element=_a[_i];switch(element.type){case NodeType.IdentifierSelector:specificity.id++;break;case NodeType.ClassSelector:case NodeType.AttributeSelector:specificity.attr++;break;case NodeType.ElementNameSelector:if(element.matches("*"))break;specificity.tag++;break;case NodeType.PseudoSelector:var text=element.getText();if(_this.isPseudoElementIdentifier(text))specificity.tag++;else{if(text.match(/^:not/i))break;specificity.attr++}}element.getChildren().length>0&&calculateScore(element)}},specificity=new Specificity;return calculateScore(node),selectorPrinting_localize("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",specificity.id,specificity.attr,specificity.tag)},SelectorPrinting}(),SelectorElementBuilder=function(){function SelectorElementBuilder(element){this.prev=null,this.element=element}return SelectorElementBuilder.prototype.processSelector=function(selector){var parentElement=null;if(!(this.element instanceof RootElement)&&selector.getChildren().some((function(c){return c.hasChildren()&&c.getChild(0).type===NodeType.SelectorCombinator}))){var curr=this.element.findRoot();curr.parent instanceof RootElement&&(parentElement=this.element,this.element=curr.parent,this.element.removeChild(curr),this.prev=null)}for(var _i=0,_a=selector.getChildren();_i<_a.length;_i++){var selectorChild=_a[_i];if(selectorChild instanceof SimpleSelector){if(this.prev instanceof SimpleSelector){var labelElement=new LabelElement("…");this.element.addChild(labelElement),this.element=labelElement}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new LabelElement("⋮"));var thisElement=toElement(selectorChild,parentElement),root=thisElement.findRoot();this.element.addChild(root),this.element=thisElement}(selectorChild instanceof SimpleSelector||selectorChild.type===NodeType.SelectorCombinatorParent||selectorChild.type===NodeType.SelectorCombinatorShadowPiercingDescendant||selectorChild.type===NodeType.SelectorCombinatorSibling||selectorChild.type===NodeType.SelectorCombinatorAllSiblings)&&(this.prev=selectorChild)}},SelectorElementBuilder}();function isNewSelectorContext(node){switch(node.type){case NodeType.MixinDeclaration:case NodeType.Stylesheet:return!0}return!1}var CSSHover=function(){function CSSHover(clientCapabilities,cssDataManager){this.clientCapabilities=clientCapabilities,this.cssDataManager=cssDataManager,this.selectorPrinting=new SelectorPrinting(cssDataManager)}return CSSHover.prototype.configure=function(settings){this.defaultSettings=settings},CSSHover.prototype.doHover=function(document,position,stylesheet,settings){function getRange(node){return main_Range.create(document.positionAt(node.offset),document.positionAt(node.end))}void 0===settings&&(settings=this.defaultSettings);for(var nodepath=getNodePath(stylesheet,document.offsetAt(position)),hover=null,i=0;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0){switch(s=Math.min(l<=.5?chroma/(2*l):chroma/(2-2*l),1),max){case r:h=(g-b)/chroma+(gmaxLenDelta)return 0;var i,j,LCS=[],zeroArray=[];for(i=0;i=propertyName.length/2&&candidates.push({property:p.name,score})})),candidates.sort((function(a,b){return b.score-a.score||a.property.localeCompare(b.property)}));for(var maxActions=3,_i=0,candidates_1=candidates;_i=0;i--){var node=nodepath[i];if(node instanceof Declaration){var property=node.getProperty();if(property&&property.offset===offset&&property.end===end)return void this.getFixesForUnknownProperty(document,property,marker,result)}}},CSSCodeActions}(),lintUtil_Element=function Element(decl){this.fullPropertyName=decl.getFullPropertyName().toLowerCase(),this.node=decl};function setSide(model,side,value,property){var state=model[side];state.value=value,value&&(includes(state.properties,property)||state.properties.push(property))}function updateModelWithValue(model,side,value,property){"top"===side||"right"===side||"bottom"===side||"left"===side?setSide(model,side,value,property):function setAllSides(model,value,property){setSide(model,"top",value,property),setSide(model,"right",value,property),setSide(model,"bottom",value,property),setSide(model,"left",value,property)}(model,value,property)}function updateModelWithList(model,values,property){switch(values.length){case 1:updateModelWithValue(model,void 0,values[0],property);break;case 2:updateModelWithValue(model,"top",values[0],property),updateModelWithValue(model,"bottom",values[0],property),updateModelWithValue(model,"right",values[1],property),updateModelWithValue(model,"left",values[1],property);break;case 3:updateModelWithValue(model,"top",values[0],property),updateModelWithValue(model,"right",values[1],property),updateModelWithValue(model,"left",values[1],property),updateModelWithValue(model,"bottom",values[2],property);break;case 4:updateModelWithValue(model,"top",values[0],property),updateModelWithValue(model,"right",values[1],property),updateModelWithValue(model,"bottom",values[2],property),updateModelWithValue(model,"left",values[3],property)}}function matches(value,candidates){for(var _i=0,candidates_1=candidates;_i0)for(var elem=this.fetch(propertyTable,"float"),index=0;index0)for(elem=this.fetch(propertyTable,"vertical-align"),index=0;index1)for(var k=0;k")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var node=this.createNode(NodeType.Operator);return this.consumeToken(),this.finish(node)}return _super.prototype._parseOperator.call(this)},SCSSParser.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var node=this.create(cssNodes_Node);return this.consumeToken(),this.finish(node)}return _super.prototype._parseUnaryOperator.call(this)},SCSSParser.prototype._parseRuleSetDeclaration=function(){return this.peek(TokenType.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||_super.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||_super.prototype._parseRuleSetDeclaration.call(this)},SCSSParser.prototype._parseDeclaration=function(stopTokens){var custonProperty=this._tryParseCustomPropertyDeclaration(stopTokens);if(custonProperty)return custonProperty;var node=this.create(Declaration);if(!node.setProperty(this._parseProperty()))return null;if(!this.accept(TokenType.Colon))return this.finish(node,ParseError.ColonExpected,[TokenType.Colon],stopTokens||[TokenType.SemiColon]);this.prevToken&&(node.colonPosition=this.prevToken.offset);var hasContent=!1;if(node.setValue(this._parseExpr())&&(hasContent=!0,node.addChild(this._parsePrio())),this.peek(TokenType.CurlyL))node.setNestedProperties(this._parseNestedProperties());else if(!hasContent)return this.finish(node,ParseError.PropertyValueExpected);return this.peek(TokenType.SemiColon)&&(node.semicolonPosition=this.token.offset),this.finish(node)},SCSSParser.prototype._parseNestedProperties=function(){var node=this.create(NestedProperties);return this._parseBody(node,this._parseDeclaration.bind(this))},SCSSParser.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var node=this.create(ExtendsReference);if(this.consumeToken(),!node.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(node,ParseError.SelectorExpected);for(;this.accept(TokenType.Comma);)node.getSelectors().addChild(this._parseSimpleSelector());return this.accept(TokenType.Exclamation)&&!this.acceptIdent("optional")?this.finish(node,ParseError.UnknownKeyword):this.finish(node)}return null},SCSSParser.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||_super.prototype._parseSimpleSelectorBody.call(this)},SCSSParser.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var node=this.createNode(NodeType.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(TokenType.Num)||this.accept(TokenType.Dimension)||node.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(node)}return null},SCSSParser.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var node=this.createNode(NodeType.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(node)}if(this.peekKeyword("@at-root")){node=this.createNode(NodeType.SelectorPlaceholder);return this.consumeToken(),this.finish(node)}return null},SCSSParser.prototype._parseElementName=function(){var pos=this.mark(),node=_super.prototype._parseElementName.call(this);return node&&!this.hasWhitespace()&&this.peek(TokenType.ParenthesisL)?(this.restoreAtMark(pos),null):node},SCSSParser.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||_super.prototype._tryParsePseudoIdentifier.call(this)},SCSSParser.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var node=this.createNode(NodeType.Debug);return this.consumeToken(),node.addChild(this._parseExpr()),this.finish(node)},SCSSParser.prototype._parseControlStatement=function(parseStatement){return void 0===parseStatement&&(parseStatement=this._parseRuleSetDeclaration.bind(this)),this.peek(TokenType.AtKeyword)?this._parseIfStatement(parseStatement)||this._parseForStatement(parseStatement)||this._parseEachStatement(parseStatement)||this._parseWhileStatement(parseStatement):null},SCSSParser.prototype._parseIfStatement=function(parseStatement){return this.peekKeyword("@if")?this._internalParseIfStatement(parseStatement):null},SCSSParser.prototype._internalParseIfStatement=function(parseStatement){var node=this.create(IfStatement);if(this.consumeToken(),!node.setExpression(this._parseExpr(!0)))return this.finish(node,ParseError.ExpressionExpected);if(this._parseBody(node,parseStatement),this.acceptKeyword("@else"))if(this.peekIdent("if"))node.setElseClause(this._internalParseIfStatement(parseStatement));else if(this.peek(TokenType.CurlyL)){var elseNode=this.create(ElseStatement);this._parseBody(elseNode,parseStatement),node.setElseClause(elseNode)}return this.finish(node)},SCSSParser.prototype._parseForStatement=function(parseStatement){if(!this.peekKeyword("@for"))return null;var node=this.create(ForStatement);return this.consumeToken(),node.setVariable(this._parseVariable())?this.acceptIdent("from")?node.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?node.addChild(this._parseBinaryExpr())?this._parseBody(node,parseStatement):this.finish(node,ParseError.ExpressionExpected,[TokenType.CurlyR]):this.finish(node,SCSSParseError.ThroughOrToExpected,[TokenType.CurlyR]):this.finish(node,ParseError.ExpressionExpected,[TokenType.CurlyR]):this.finish(node,SCSSParseError.FromExpected,[TokenType.CurlyR]):this.finish(node,ParseError.VariableNameExpected,[TokenType.CurlyR])},SCSSParser.prototype._parseEachStatement=function(parseStatement){if(!this.peekKeyword("@each"))return null;var node=this.create(EachStatement);this.consumeToken();var variables=node.getVariables();if(!variables.addChild(this._parseVariable()))return this.finish(node,ParseError.VariableNameExpected,[TokenType.CurlyR]);for(;this.accept(TokenType.Comma);)if(!variables.addChild(this._parseVariable()))return this.finish(node,ParseError.VariableNameExpected,[TokenType.CurlyR]);return this.finish(variables),this.acceptIdent("in")?node.addChild(this._parseExpr())?this._parseBody(node,parseStatement):this.finish(node,ParseError.ExpressionExpected,[TokenType.CurlyR]):this.finish(node,SCSSParseError.InExpected,[TokenType.CurlyR])},SCSSParser.prototype._parseWhileStatement=function(parseStatement){if(!this.peekKeyword("@while"))return null;var node=this.create(WhileStatement);return this.consumeToken(),node.addChild(this._parseBinaryExpr())?this._parseBody(node,parseStatement):this.finish(node,ParseError.ExpressionExpected,[TokenType.CurlyR])},SCSSParser.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},SCSSParser.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var node=this.create(FunctionDeclaration);if(this.consumeToken(),!node.setIdentifier(this._parseIdent([ReferenceType.Function])))return this.finish(node,ParseError.IdentifierExpected,[TokenType.CurlyR]);if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected,[TokenType.CurlyR]);if(node.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(node,ParseError.VariableNameExpected);return this.accept(TokenType.ParenthesisR)?this._parseBody(node,this._parseFunctionBodyDeclaration.bind(this)):this.finish(node,ParseError.RightParenthesisExpected,[TokenType.CurlyR])},SCSSParser.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var node=this.createNode(NodeType.ReturnStatement);return this.consumeToken(),node.addChild(this._parseExpr())?this.finish(node):this.finish(node,ParseError.ExpressionExpected)},SCSSParser.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var node=this.create(MixinDeclaration);if(this.consumeToken(),!node.setIdentifier(this._parseIdent([ReferenceType.Mixin])))return this.finish(node,ParseError.IdentifierExpected,[TokenType.CurlyR]);if(this.accept(TokenType.ParenthesisL)){if(node.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(node,ParseError.VariableNameExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected,[TokenType.CurlyR])}return this._parseBody(node,this._parseRuleSetDeclaration.bind(this))},SCSSParser.prototype._parseParameterDeclaration=function(){var node=this.create(FunctionParameter);return node.setIdentifier(this._parseVariable())?(this.accept(Ellipsis),this.accept(TokenType.Colon)&&!node.setDefaultValue(this._parseExpr(!0))?this.finish(node,ParseError.VariableValueExpected,[],[TokenType.Comma,TokenType.ParenthesisR]):this.finish(node)):null},SCSSParser.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var node=this.create(MixinContentReference);if(this.consumeToken(),this.accept(TokenType.ParenthesisL)){if(node.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getArguments().addChild(this._parseFunctionArgument()))return this.finish(node,ParseError.ExpressionExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected)}return this.finish(node)},SCSSParser.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var node=this.create(MixinReference);this.consumeToken();var firstIdent=this._parseIdent([ReferenceType.Mixin]);if(!node.setIdentifier(firstIdent))return this.finish(node,ParseError.IdentifierExpected,[TokenType.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var secondIdent=this._parseIdent([ReferenceType.Mixin]);if(!secondIdent)return this.finish(node,ParseError.IdentifierExpected,[TokenType.CurlyR]);var moduleToken=this.create(Module);firstIdent.referenceTypes=[ReferenceType.Module],moduleToken.setIdentifier(firstIdent),node.setIdentifier(secondIdent),node.addChild(moduleToken)}if(this.accept(TokenType.ParenthesisL)){if(node.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getArguments().addChild(this._parseFunctionArgument()))return this.finish(node,ParseError.ExpressionExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(TokenType.CurlyL))&&node.setContent(this._parseMixinContentDeclaration()),this.finish(node)},SCSSParser.prototype._parseMixinContentDeclaration=function(){var node=this.create(MixinContentDeclaration);if(this.acceptIdent("using")){if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected,[TokenType.CurlyL]);if(node.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(node,ParseError.VariableNameExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected,[TokenType.CurlyL])}return this.peek(TokenType.CurlyL)&&this._parseBody(node,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(node)},SCSSParser.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},SCSSParser.prototype._parseFunctionArgument=function(){var node=this.create(FunctionArgument),pos=this.mark(),argument=this._parseVariable();if(argument)if(this.accept(TokenType.Colon))node.setIdentifier(argument);else{if(this.accept(Ellipsis))return node.setValue(argument),this.finish(node);this.restoreAtMark(pos)}return node.setValue(this._parseExpr(!0))?(this.accept(Ellipsis),node.addChild(this._parsePrio()),this.finish(node)):node.setValue(this._tryParsePrio())?this.finish(node):null},SCSSParser.prototype._parseURLArgument=function(){var pos=this.mark(),node=_super.prototype._parseURLArgument.call(this);if(!node||!this.peek(TokenType.ParenthesisR)){this.restoreAtMark(pos);var node_1=this.create(cssNodes_Node);return node_1.addChild(this._parseBinaryExpr()),this.finish(node_1)}return node},SCSSParser.prototype._parseOperation=function(){if(!this.peek(TokenType.ParenthesisL))return null;var node=this.create(cssNodes_Node);for(this.consumeToken();node.addChild(this._parseListElement());)this.accept(TokenType.Comma);return this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},SCSSParser.prototype._parseListElement=function(){var node=this.create(ListEntry),child=this._parseBinaryExpr();if(!child)return null;if(this.accept(TokenType.Colon)){if(node.setKey(child),!node.setValue(this._parseBinaryExpr()))return this.finish(node,ParseError.ExpressionExpected)}else node.setValue(child);return this.finish(node)},SCSSParser.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var node=this.create(Use);if(this.consumeToken(),!node.addChild(this._parseStringLiteral()))return this.finish(node,ParseError.StringLiteralExpected);if(!this.peek(TokenType.SemiColon)&&!this.peek(TokenType.EOF)){if(!this.peekRegExp(TokenType.Ident,/as|with/))return this.finish(node,ParseError.UnknownKeyword);if(this.acceptIdent("as")&&!node.setIdentifier(this._parseIdent([ReferenceType.Module]))&&!this.acceptDelim("*"))return this.finish(node,ParseError.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected,[TokenType.ParenthesisR]);if(!node.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(node,ParseError.VariableNameExpected);for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(node,ParseError.VariableNameExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected)}}return this.accept(TokenType.SemiColon)||this.accept(TokenType.EOF)?this.finish(node):this.finish(node,ParseError.SemiColonExpected)},SCSSParser.prototype._parseModuleConfigDeclaration=function(){var node=this.create(ModuleConfiguration);return node.setIdentifier(this._parseVariable())?this.accept(TokenType.Colon)&&node.setValue(this._parseExpr(!0))?!this.accept(TokenType.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(node):this.finish(node,ParseError.UnknownKeyword):this.finish(node,ParseError.VariableValueExpected,[],[TokenType.Comma,TokenType.ParenthesisR]):null},SCSSParser.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var node=this.create(Forward);if(this.consumeToken(),!node.addChild(this._parseStringLiteral()))return this.finish(node,ParseError.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected,[TokenType.ParenthesisR]);if(!node.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(node,ParseError.VariableNameExpected);for(;this.accept(TokenType.Comma)&&!this.peek(TokenType.ParenthesisR);)if(!node.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(node,ParseError.VariableNameExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected)}if(!this.peek(TokenType.SemiColon)&&!this.peek(TokenType.EOF)){if(!this.peekRegExp(TokenType.Ident,/as|hide|show/))return this.finish(node,ParseError.UnknownKeyword);if(this.acceptIdent("as")){var identifier=this._parseIdent([ReferenceType.Forward]);if(!node.setIdentifier(identifier))return this.finish(node,ParseError.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(node,ParseError.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!node.addChild(this._parseForwardVisibility()))return this.finish(node,ParseError.IdentifierOrVariableExpected)}return this.accept(TokenType.SemiColon)||this.accept(TokenType.EOF)?this.finish(node):this.finish(node,ParseError.SemiColonExpected)},SCSSParser.prototype._parseForwardVisibility=function(){var node=this.create(ForwardVisibility);for(node.setIdentifier(this._parseIdent());node.addChild(this._parseVariable()||this._parseIdent());)this.accept(TokenType.Comma);return node.getChildren().length>1?node:null},SCSSParser.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||_super.prototype._parseSupportsCondition.call(this)},SCSSParser}(Parser),scssCompletion_extends=function(){var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),scssCompletion_localize=loadMessageBundle(),SCSSCompletion=function(_super){function SCSSCompletion(lsServiceOptions,cssDataManager){var _this=_super.call(this,"$",lsServiceOptions,cssDataManager)||this;return addReferencesToDocumentation(SCSSCompletion.scssModuleLoaders),addReferencesToDocumentation(SCSSCompletion.scssModuleBuiltIns),_this}return scssCompletion_extends(SCSSCompletion,_super),SCSSCompletion.prototype.isImportPathParent=function(type){return type===NodeType.Forward||type===NodeType.Use||_super.prototype.isImportPathParent.call(this,type)},SCSSCompletion.prototype.getCompletionForImportPath=function(importPathNode,result){var parentType=importPathNode.getParent().type;if(parentType===NodeType.Forward||parentType===NodeType.Use)for(var _i=0,_a=SCSSCompletion.scssModuleBuiltIns;_i<_a.length;_i++){var p=_a[_i],item={label:p.label,documentation:p.documentation,textEdit:TextEdit.replace(this.getCompletionRange(importPathNode),"'"+p.label+"'"),kind:main_CompletionItemKind.Module};result.items.push(item)}return _super.prototype.getCompletionForImportPath.call(this,importPathNode,result)},SCSSCompletion.prototype.createReplaceFunction=function(){var tabStopCounter=1;return function(_match,p1){return"\\"+p1+": ${"+tabStopCounter+++":"+(SCSSCompletion.variableDefaults[p1]||"")+"}"}},SCSSCompletion.prototype.createFunctionProposals=function(proposals,existingNode,sortToEnd,result){for(var _i=0,proposals_1=proposals;_i0){var markdownDoc="string"==typeof i.documentation?{kind:"markdown",value:i.documentation}:{kind:"markdown",value:i.documentation.value};markdownDoc.value+="\n\n",markdownDoc.value+=i.references.map((function(r){return"["+r.name+"]("+r.url+")"})).join(" | "),i.documentation=markdownDoc}}))}var lessScanner_extends=function(){var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),lessScanner_FSL="/".charCodeAt(0),lessScanner_NWL="\n".charCodeAt(0),lessScanner_CAR="\r".charCodeAt(0),lessScanner_LFD="\f".charCodeAt(0),_TIC="`".charCodeAt(0),lessScanner_DOT=".".charCodeAt(0),lessScanner_customTokenValue=TokenType.CustomToken,lessScanner_Ellipsis=lessScanner_customTokenValue++,LESSScanner=function(_super){function LESSScanner(){return null!==_super&&_super.apply(this,arguments)||this}return lessScanner_extends(LESSScanner,_super),LESSScanner.prototype.scanNext=function(offset){var tokenType=this.escapedJavaScript();return null!==tokenType?this.finishToken(offset,tokenType):this.stream.advanceIfChars([lessScanner_DOT,lessScanner_DOT,lessScanner_DOT])?this.finishToken(offset,lessScanner_Ellipsis):_super.prototype.scanNext.call(this,offset)},LESSScanner.prototype.comment=function(){return!!_super.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([lessScanner_FSL,lessScanner_FSL]))&&(this.stream.advanceWhileChar((function(ch){switch(ch){case lessScanner_NWL:case lessScanner_CAR:case lessScanner_LFD:return!1;default:return!0}})),!0)},LESSScanner.prototype.escapedJavaScript=function(){return this.stream.peekChar()===_TIC?(this.stream.advance(1),this.stream.advanceWhileChar((function(ch){return ch!==_TIC})),this.stream.advanceIfChar(_TIC)?TokenType.EscapedJavaScript:TokenType.BadEscapedJavaScript):null},LESSScanner}(Scanner),lessParser_extends=function(){var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),LESSParser=function(_super){function LESSParser(){return _super.call(this,new LESSScanner)||this}return lessParser_extends(LESSParser,_super),LESSParser.prototype._parseStylesheetStatement=function(isNested){return void 0===isNested&&(isNested=!1),this.peek(TokenType.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||_super.prototype._parseStylesheetAtStatement.call(this,isNested):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},LESSParser.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var node=this.create(Import);if(this.consumeToken(),this.accept(TokenType.ParenthesisL)){if(!this.accept(TokenType.Ident))return this.finish(node,ParseError.IdentifierExpected,[TokenType.SemiColon]);do{if(!this.accept(TokenType.Comma))break}while(this.accept(TokenType.Ident));if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected,[TokenType.SemiColon])}return node.addChild(this._parseURILiteral())||node.addChild(this._parseStringLiteral())?(this.peek(TokenType.SemiColon)||this.peek(TokenType.EOF)||node.setMedialist(this._parseMediaQueryList()),this.finish(node)):this.finish(node,ParseError.URIOrStringExpected,[TokenType.SemiColon])},LESSParser.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var node=this.createNode(NodeType.Plugin);return this.consumeToken(),node.addChild(this._parseStringLiteral())?this.accept(TokenType.SemiColon)?this.finish(node):this.finish(node,ParseError.SemiColonExpected):this.finish(node,ParseError.StringLiteralExpected)},LESSParser.prototype._parseMediaQuery=function(){var node=_super.prototype._parseMediaQuery.call(this);if(!node){var node_1=this.create(MediaQuery);return node_1.addChild(this._parseVariable())?this.finish(node_1):null}return node},LESSParser.prototype._parseMediaDeclaration=function(isNested){return void 0===isNested&&(isNested=!1),this._tryParseRuleset(isNested)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(isNested)},LESSParser.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},LESSParser.prototype._parseVariableDeclaration=function(panic){void 0===panic&&(panic=[]);var node=this.create(VariableDeclaration),mark=this.mark();if(!node.setVariable(this._parseVariable(!0)))return null;if(!this.accept(TokenType.Colon))return this.restoreAtMark(mark),null;if(this.prevToken&&(node.colonPosition=this.prevToken.offset),node.setValue(this._parseDetachedRuleSet()))node.needsSemicolon=!1;else if(!node.setValue(this._parseExpr()))return this.finish(node,ParseError.VariableValueExpected,[],panic);return node.addChild(this._parsePrio()),this.peek(TokenType.SemiColon)&&(node.semicolonPosition=this.token.offset),this.finish(node)},LESSParser.prototype._parseDetachedRuleSet=function(){var mark=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(TokenType.ParenthesisL))return this.restoreAtMark(mark),null;var node=this.create(MixinDeclaration);if(node.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(TokenType.Comma)||this.accept(TokenType.SemiColon))&&!this.peek(TokenType.ParenthesisR);)node.getParameters().addChild(this._parseMixinParameter())||this.markError(node,ParseError.IdentifierExpected,[],[TokenType.ParenthesisR]);if(!this.accept(TokenType.ParenthesisR))return this.restoreAtMark(mark),null}if(!this.peek(TokenType.CurlyL))return null;var content=this.create(BodyDeclaration);return this._parseBody(content,this._parseDetachedRuleSetBody.bind(this)),this.finish(content)},LESSParser.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},LESSParser.prototype._addLookupChildren=function(node){if(!node.addChild(this._parseLookupValue()))return!1;for(var expectsValue=!1;this.peek(TokenType.BracketL)&&(expectsValue=!0),node.addChild(this._parseLookupValue());)expectsValue=!1;return!expectsValue},LESSParser.prototype._parseLookupValue=function(){var node=this.create(cssNodes_Node),mark=this.mark();return this.accept(TokenType.BracketL)&&((node.addChild(this._parseVariable(!1,!0))||node.addChild(this._parsePropertyIdentifier()))&&this.accept(TokenType.BracketR)||this.accept(TokenType.BracketR))?node:(this.restoreAtMark(mark),null)},LESSParser.prototype._parseVariable=function(declaration,insideLookup){void 0===declaration&&(declaration=!1),void 0===insideLookup&&(insideLookup=!1);var isPropertyReference=!declaration&&this.peekDelim("$");if(!this.peekDelim("@")&&!isPropertyReference&&!this.peek(TokenType.AtKeyword))return null;for(var node=this.create(Variable),mark=this.mark();this.acceptDelim("@")||!declaration&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(mark),null;return(this.accept(TokenType.AtKeyword)||this.accept(TokenType.Ident))&&(insideLookup||!this.peek(TokenType.BracketL)||this._addLookupChildren(node))?node:(this.restoreAtMark(mark),null)},LESSParser.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||_super.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},LESSParser.prototype._parseEscaped=function(){if(this.peek(TokenType.EscapedJavaScript)||this.peek(TokenType.BadEscapedJavaScript)){var node=this.createNode(NodeType.EscapedValue);return this.consumeToken(),this.finish(node)}if(this.peekDelim("~")){node=this.createNode(NodeType.EscapedValue);return this.consumeToken(),this.accept(TokenType.String)||this.accept(TokenType.EscapedJavaScript)?this.finish(node):this.finish(node,ParseError.TermExpected)}return null},LESSParser.prototype._parseOperator=function(){var node=this._parseGuardOperator();return node||_super.prototype._parseOperator.call(this)},LESSParser.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var node=this.createNode(NodeType.Operator);return this.consumeToken(),this.acceptDelim("="),node}if(this.peekDelim("=")){node=this.createNode(NodeType.Operator);return this.consumeToken(),this.acceptDelim("<"),node}if(this.peekDelim("<")){node=this.createNode(NodeType.Operator);return this.consumeToken(),this.acceptDelim("="),node}return null},LESSParser.prototype._parseRuleSetDeclaration=function(){return this.peek(TokenType.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||_super.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||_super.prototype._parseRuleSetDeclaration.call(this)},LESSParser.prototype._parseKeyframeIdent=function(){return this._parseIdent([ReferenceType.Keyframe])||this._parseVariable()},LESSParser.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||_super.prototype._parseKeyframeSelector.call(this)},LESSParser.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||_super.prototype._parseSimpleSelectorBody.call(this)},LESSParser.prototype._parseSelector=function(isNested){var node=this.create(Selector),hasContent=!1;for(isNested&&(hasContent=node.addChild(this._parseCombinator()));node.addChild(this._parseSimpleSelector());){hasContent=!0;var mark=this.mark();if(node.addChild(this._parseGuard())&&this.peek(TokenType.CurlyL))break;this.restoreAtMark(mark),node.addChild(this._parseCombinator())}return hasContent?this.finish(node):null},LESSParser.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var node=this.createNode(NodeType.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(TokenType.Num)||this.accept(TokenType.Dimension)||node.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(node)}return null},LESSParser.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var node=this.createNode(NodeType.SelectorInterpolation);return this._acceptInterpolatedIdent(node)?this.finish(node):null},LESSParser.prototype._parsePropertyIdentifier=function(inLookup){void 0===inLookup&&(inLookup=!1);var propertyRegex=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,propertyRegex))return null;var mark=this.mark(),node=this.create(Identifier);node.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");return(inLookup?node.isCustomProperty?node.addChild(this._parseIdent()):node.addChild(this._parseRegexp(propertyRegex)):node.isCustomProperty?this._acceptInterpolatedIdent(node):this._acceptInterpolatedIdent(node,propertyRegex))?(inLookup||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(node)):(this.restoreAtMark(mark),null)},LESSParser.prototype.peekInterpolatedIdent=function(){return this.peek(TokenType.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},LESSParser.prototype._acceptInterpolatedIdent=function(node,identRegex){for(var _this=this,hasContent=!1,indentInterpolation=function(){var pos=_this.mark();return _this.acceptDelim("-")&&(_this.hasWhitespace()||_this.acceptDelim("-"),_this.hasWhitespace())?(_this.restoreAtMark(pos),null):_this._parseInterpolation()},accept=identRegex?function(){return _this.acceptRegexp(identRegex)}:function(){return _this.accept(TokenType.Ident)};(accept()||node.addChild(this._parseInterpolation()||this.try(indentInterpolation)))&&(hasContent=!0,!this.hasWhitespace()););return hasContent},LESSParser.prototype._parseInterpolation=function(){var mark=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var node=this.createNode(NodeType.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(TokenType.CurlyL)?(this.restoreAtMark(mark),null):node.addChild(this._parseIdent())?this.accept(TokenType.CurlyR)?this.finish(node):this.finish(node,ParseError.RightCurlyExpected):this.finish(node,ParseError.IdentifierExpected)}return null},LESSParser.prototype._tryParseMixinDeclaration=function(){var mark=this.mark(),node=this.create(MixinDeclaration);if(!node.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(TokenType.ParenthesisL))return this.restoreAtMark(mark),null;if(node.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(TokenType.Comma)||this.accept(TokenType.SemiColon))&&!this.peek(TokenType.ParenthesisR);)node.getParameters().addChild(this._parseMixinParameter())||this.markError(node,ParseError.IdentifierExpected,[],[TokenType.ParenthesisR]);return this.accept(TokenType.ParenthesisR)?(node.setGuard(this._parseGuard()),this.peek(TokenType.CurlyL)?this._parseBody(node,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(mark),null)):(this.restoreAtMark(mark),null)},LESSParser.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},LESSParser.prototype._parseMixinDeclarationIdentifier=function(){var identifier;if(this.peekDelim("#")||this.peekDelim(".")){if(identifier=this.create(Identifier),this.consumeToken(),this.hasWhitespace()||!identifier.addChild(this._parseIdent()))return null}else{if(!this.peek(TokenType.Hash))return null;identifier=this.create(Identifier),this.consumeToken()}return identifier.referenceTypes=[ReferenceType.Mixin],this.finish(identifier)},LESSParser.prototype._parsePseudo=function(){if(!this.peek(TokenType.Colon))return null;var mark=this.mark(),node=this.create(ExtendsReference);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(node):(this.restoreAtMark(mark),_super.prototype._parsePseudo.call(this))},LESSParser.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var mark=this.mark(),node=this.create(ExtendsReference);return this.consumeToken(),!this.hasWhitespace()&&this.accept(TokenType.Colon)&&this.acceptIdent("extend")?this._completeExtends(node):(this.restoreAtMark(mark),null)},LESSParser.prototype._completeExtends=function(node){if(!this.accept(TokenType.ParenthesisL))return this.finish(node,ParseError.LeftParenthesisExpected);var selectors=node.getSelectors();if(!selectors.addChild(this._parseSelector(!0)))return this.finish(node,ParseError.SelectorExpected);for(;this.accept(TokenType.Comma);)if(!selectors.addChild(this._parseSelector(!0)))return this.finish(node,ParseError.SelectorExpected);return this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},LESSParser.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(TokenType.AtKeyword))return null;var mark=this.mark(),node=this.create(MixinReference);return!node.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(TokenType.ParenthesisL)?this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected):(this.restoreAtMark(mark),null)},LESSParser.prototype._tryParseMixinReference=function(atRoot){void 0===atRoot&&(atRoot=!0);for(var mark=this.mark(),node=this.create(MixinReference),identifier=this._parseMixinDeclarationIdentifier();identifier;){this.acceptDelim(">");var nextId=this._parseMixinDeclarationIdentifier();if(!nextId)break;node.getNamespaces().addChild(identifier),identifier=nextId}if(!node.setIdentifier(identifier))return this.restoreAtMark(mark),null;var hasArguments=!1;if(this.accept(TokenType.ParenthesisL)){if(hasArguments=!0,node.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(TokenType.Comma)||this.accept(TokenType.SemiColon))&&!this.peek(TokenType.ParenthesisR);)if(!node.getArguments().addChild(this._parseMixinArgument()))return this.finish(node,ParseError.ExpressionExpected);if(!this.accept(TokenType.ParenthesisR))return this.finish(node,ParseError.RightParenthesisExpected);identifier.referenceTypes=[ReferenceType.Mixin]}else identifier.referenceTypes=[ReferenceType.Mixin,ReferenceType.Rule];return this.peek(TokenType.BracketL)?atRoot||this._addLookupChildren(node):node.addChild(this._parsePrio()),hasArguments||this.peek(TokenType.SemiColon)||this.peek(TokenType.CurlyR)||this.peek(TokenType.EOF)?this.finish(node):(this.restoreAtMark(mark),null)},LESSParser.prototype._parseMixinArgument=function(){var node=this.create(FunctionArgument),pos=this.mark(),argument=this._parseVariable();return argument&&(this.accept(TokenType.Colon)?node.setIdentifier(argument):this.restoreAtMark(pos)),node.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(node):(this.restoreAtMark(pos),null)},LESSParser.prototype._parseMixinParameter=function(){var node=this.create(FunctionParameter);if(this.peekKeyword("@rest")){var restNode=this.create(cssNodes_Node);return this.consumeToken(),this.accept(lessScanner_Ellipsis)?(node.setIdentifier(this.finish(restNode)),this.finish(node)):this.finish(node,ParseError.DotExpected,[],[TokenType.Comma,TokenType.ParenthesisR])}if(this.peek(lessScanner_Ellipsis)){var varargsNode=this.create(cssNodes_Node);return this.consumeToken(),node.setIdentifier(this.finish(varargsNode)),this.finish(node)}var hasContent=!1;return node.setIdentifier(this._parseVariable())&&(this.accept(TokenType.Colon),hasContent=!0),node.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||hasContent?this.finish(node):null},LESSParser.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var node=this.create(LessGuard);if(this.consumeToken(),node.isNegated=this.acceptIdent("not"),!node.getConditions().addChild(this._parseGuardCondition()))return this.finish(node,ParseError.ConditionExpected);for(;this.acceptIdent("and")||this.accept(TokenType.Comma);)if(!node.getConditions().addChild(this._parseGuardCondition()))return this.finish(node,ParseError.ConditionExpected);return this.finish(node)},LESSParser.prototype._parseGuardCondition=function(){if(!this.peek(TokenType.ParenthesisL))return null;var node=this.create(GuardCondition);return this.consumeToken(),node.addChild(this._parseExpr()),this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},LESSParser.prototype._parseFunction=function(){var pos=this.mark(),node=this.create(Function);if(!node.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(TokenType.ParenthesisL))return this.restoreAtMark(pos),null;if(node.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(TokenType.Comma)||this.accept(TokenType.SemiColon))&&!this.peek(TokenType.ParenthesisR);)if(!node.getArguments().addChild(this._parseMixinArgument()))return this.finish(node,ParseError.ExpressionExpected);return this.accept(TokenType.ParenthesisR)?this.finish(node):this.finish(node,ParseError.RightParenthesisExpected)},LESSParser.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var node=this.create(Identifier);return node.referenceTypes=[ReferenceType.Function],this.consumeToken(),this.finish(node)}return _super.prototype._parseFunctionIdentifier.call(this)},LESSParser.prototype._parseURLArgument=function(){var pos=this.mark(),node=_super.prototype._parseURLArgument.call(this);if(!node||!this.peek(TokenType.ParenthesisR)){this.restoreAtMark(pos);var node_2=this.create(cssNodes_Node);return node_2.addChild(this._parseBinaryExpr()),this.finish(node_2)}return node},LESSParser}(Parser),lessCompletion_extends=function(){var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),lessCompletion_localize=loadMessageBundle(),LESSCompletion=function(_super){function LESSCompletion(lsOptions,cssDataManager){return _super.call(this,"@",lsOptions,cssDataManager)||this}return lessCompletion_extends(LESSCompletion,_super),LESSCompletion.prototype.createFunctionProposals=function(proposals,existingNode,sortToEnd,result){for(var _i=0,proposals_1=proposals;_i 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:lessCompletion_localize("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:lessCompletion_localize("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:lessCompletion_localize("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:lessCompletion_localize("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:lessCompletion_localize("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:lessCompletion_localize("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:lessCompletion_localize("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:lessCompletion_localize("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:lessCompletion_localize("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:lessCompletion_localize("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],LESSCompletion.colorProposals=[{name:"argb",example:"argb(@color);",description:lessCompletion_localize("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:lessCompletion_localize("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:lessCompletion_localize("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:lessCompletion_localize("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:lessCompletion_localize("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:lessCompletion_localize("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:lessCompletion_localize("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:lessCompletion_localize("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:lessCompletion_localize("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:lessCompletion_localize("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:lessCompletion_localize("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:lessCompletion_localize("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:lessCompletion_localize("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:lessCompletion_localize("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:lessCompletion_localize("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:lessCompletion_localize("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:lessCompletion_localize("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:lessCompletion_localize("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:lessCompletion_localize("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:lessCompletion_localize("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:lessCompletion_localize("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:lessCompletion_localize("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:lessCompletion_localize("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:lessCompletion_localize("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:lessCompletion_localize("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:lessCompletion_localize("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:lessCompletion_localize("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],LESSCompletion}(CSSCompletion);function getFoldingRanges(document,context){var ranges=function computeFoldingRanges(document){function getStartLine(t){return document.positionAt(t.offset).line}function getEndLine(t){return document.positionAt(t.offset+t.len).line}function getScanner(){switch(document.languageId){case"scss":return new SCSSScanner;case"less":return new LESSScanner;default:return new Scanner}}function tokenToRange(t,kind){var startLine=getStartLine(t),endLine=getEndLine(t);return startLine!==endLine?{startLine,endLine,kind}:null}var ranges=[],delimiterStack=[],scanner=getScanner();scanner.ignoreComment=!1,scanner.setSource(document.getText());var token=scanner.scan(),prevToken=null,_loop_1=function(){switch(token.type){case TokenType.CurlyL:case InterpolationFunction:delimiterStack.push({line:getStartLine(token),type:"brace",isStart:!0});break;case TokenType.CurlyR:if(0!==delimiterStack.length){if(!(prevDelimiter=popPrevStartDelimiterOfType(delimiterStack,"brace")))break;var endLine=getEndLine(token);"brace"===prevDelimiter.type&&(prevToken&&getEndLine(prevToken)!==endLine&&endLine--,prevDelimiter.line!==endLine&&ranges.push({startLine:prevDelimiter.line,endLine,kind:void 0}))}break;case TokenType.Comment:var commentRegionMarkerToDelimiter_1=function(marker){return"#region"===marker?{line:getStartLine(token),type:"comment",isStart:!0}:{line:getEndLine(token),type:"comment",isStart:!1}},getCurrDelimiter=function(token){var matches=token.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(matches)return commentRegionMarkerToDelimiter_1(matches[1]);if("scss"===document.languageId||"less"===document.languageId){var matches_1=token.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(matches_1)return commentRegionMarkerToDelimiter_1(matches_1[1])}return null},currDelimiter=getCurrDelimiter(token);if(currDelimiter)if(currDelimiter.isStart)delimiterStack.push(currDelimiter);else{var prevDelimiter;if(!(prevDelimiter=popPrevStartDelimiterOfType(delimiterStack,"comment")))break;"comment"===prevDelimiter.type&&prevDelimiter.line!==currDelimiter.line&&ranges.push({startLine:prevDelimiter.line,endLine:currDelimiter.line,kind:"region"})}else{var range=tokenToRange(token,"comment");range&&ranges.push(range)}}prevToken=token,token=scanner.scan()};for(;token.type!==TokenType.EOF;)_loop_1();return ranges}(document);return function limitFoldingRanges(ranges,context){var maxRanges=context&&context.rangeLimit||Number.MAX_VALUE,sortedRanges=ranges.sort((function(r1,r2){var diff=r1.startLine-r2.startLine;return 0===diff&&(diff=r1.endLine-r2.endLine),diff})),validRanges=[],prevEndLine=-1;return sortedRanges.forEach((function(r){r.startLine=0;i--)if(stack[i].type===type&&stack[i].isStart)return stack.splice(i,1)[0];return null}var webCustomData_cssData={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:61,description:"Aligns a flex container’s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:51,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element’s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:70,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"