@pstdio/ui 0.45.0-nightly.20261021030241 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EquationComponent-DDd5UoIP.js → EquationComponent-BtOgXA3g.js} +3 -5
- package/dist/{EquationComponent-DDd5UoIP.js.map → EquationComponent-BtOgXA3g.js.map} +1 -1
- package/dist/{MermaidComponent-CTWuGAqI.js → MermaidComponent--W7gDFCk.js} +4 -5
- package/dist/{MermaidComponent-CTWuGAqI.js.map → MermaidComponent--W7gDFCk.js.map} +1 -1
- package/dist/activity-timeline-D-IDENMg.js +349 -0
- package/dist/activity-timeline-D-IDENMg.js.map +1 -0
- package/dist/{apply-theme-preference-B0vCu8zY.d.ts → apply-theme-preference-Wdm8bz5f.d.ts} +0 -2
- package/dist/{browser-storage-C_ipoNwP.js → browser-storage-CIj_9R9x.js} +2 -3
- package/dist/{browser-storage-C_ipoNwP.js.map → browser-storage-CIj_9R9x.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -40
- package/dist/chat-ui.js +219 -280
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-fields-tMtZmuhS.d.ts → collection-view-fields-CBlYAPxD.d.ts} +1 -9
- package/dist/{collection-view-grouping-BQMfKdQG.js → collection-view-grouping-BHuFPVAV.js} +3 -4
- package/dist/{collection-view-grouping-BQMfKdQG.js.map → collection-view-grouping-BHuFPVAV.js.map} +1 -1
- package/dist/{collection-view-search-DS9U9WAl.js → collection-view-search-CLvyY0cg.js} +21 -35
- package/dist/{collection-view-search-DS9U9WAl.js.map → collection-view-search-CLvyY0cg.js.map} +1 -1
- package/dist/collection-view.d.ts +1 -15
- package/dist/collection-view.js +3 -4
- package/dist/collection-view.js.map +1 -1
- package/dist/{data-table-stat-chart-content-waJAm_nt.js → data-table-stat-chart-content-CJVgiHlL.js} +2 -3
- package/dist/{data-table-stat-chart-content-waJAm_nt.js.map → data-table-stat-chart-content-CJVgiHlL.js.map} +1 -1
- package/dist/data-table.d.ts +2 -14
- package/dist/data-table.js +16 -22
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-bubble-DewUd_2w.js → diff-bubble-DietCcSc.js} +2 -3
- package/dist/{diff-bubble-DewUd_2w.js.map → diff-bubble-DietCcSc.js.map} +1 -1
- package/dist/{diff-drawer-ByJsQg8F.js → diff-drawer-COlghuX8.js} +11 -25
- package/dist/{diff-drawer-ByJsQg8F.js.map → diff-drawer-COlghuX8.js.map} +1 -1
- package/dist/{diff-editor-CGpeyoCE.js → diff-editor-BMBk4KXR.js} +3 -4
- package/dist/{diff-editor-CGpeyoCE.js.map → diff-editor-BMBk4KXR.js.map} +1 -1
- package/dist/{diff-size-Dydn_Uw5.js → diff-size-BR8D-bcL.js} +2 -3
- package/dist/{diff-size-Dydn_Uw5.js.map → diff-size-BR8D-bcL.js.map} +1 -1
- package/dist/{diff-viewer-ChEyTNpa.js → diff-viewer-nCYtig03.js} +10 -15
- package/dist/{diff-viewer-ChEyTNpa.js.map → diff-viewer-nCYtig03.js.map} +1 -1
- package/dist/diff.d.ts +0 -22
- package/dist/diff.js +8 -9
- package/dist/{display-sort-control-BUMkmlIu.js → display-sort-control-DXXkOgUC.js} +6 -7
- package/dist/{display-sort-control-BUMkmlIu.js.map → display-sort-control-DXXkOgUC.js.map} +1 -1
- package/dist/{drop-indicator-HjlBSIeV.js → drop-indicator-66rhST1K.js} +2 -3
- package/dist/{drop-indicator-HjlBSIeV.js.map → drop-indicator-66rhST1K.js.map} +1 -1
- package/dist/{edit-mode-data-table-MKEjfFUw.js → edit-mode-data-table-lvGsQ1Da.js} +17 -27
- package/dist/{edit-mode-data-table-MKEjfFUw.js.map → edit-mode-data-table-lvGsQ1Da.js.map} +1 -1
- package/dist/{empty-state-3mVV_pV-.js → empty-state-J96iLli9.js} +2 -3
- package/dist/{empty-state-3mVV_pV-.js.map → empty-state-J96iLli9.js.map} +1 -1
- package/dist/{file-change-badge-0QFNv82B.js → file-change-badge-5_T5hnWQ.js} +2 -3
- package/dist/{file-change-badge-0QFNv82B.js.map → file-change-badge-5_T5hnWQ.js.map} +1 -1
- package/dist/{host-storage-28AkEy1N.js → host-storage-CtscVB4w.js} +3 -4
- package/dist/{host-storage-28AkEy1N.js.map → host-storage-CtscVB4w.js.map} +1 -1
- package/dist/{host-storage-J0089Hyk.d.ts → host-storage-SnBKPpbc.d.ts} +0 -2
- package/dist/{icon-options-DpzDAnlu.js → icon-options-DJmsp8bw.js} +2 -4
- package/dist/{icon-options-DpzDAnlu.js.map → icon-options-DJmsp8bw.js.map} +1 -1
- package/dist/{index-3H4B61XK.d.ts → index-B0bZ__Yf.d.ts} +1 -5
- package/dist/{index-DlmvvQ6x.d.ts → index-CYiWcIGu.d.ts} +0 -18
- package/dist/{index-C0PaeiBy.d.ts → index-DYCXgPCg.d.ts} +2 -34
- package/dist/{index-eV_0Gjzo.d.ts → index-DzVOXj8n.d.ts} +1 -37
- package/dist/index.d.ts +6 -156
- package/dist/index.js +973 -958
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -2
- package/dist/kanban-renderer.js +24 -44
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-BDDAVuVd.js → list-row-Dqb5Xfjf.js} +12 -39
- package/dist/{list-row-BDDAVuVd.js.map → list-row-Dqb5Xfjf.js.map} +1 -1
- package/dist/{markdown-editor-BPGIS9ku.js → markdown-editor-D419iTD2.js} +65 -159
- package/dist/markdown-editor-D419iTD2.js.map +1 -0
- package/dist/{mermaid-renderer-BtW_13Sz.js → mermaid-renderer-B8LpF3rD.js} +6 -12
- package/dist/{mermaid-renderer-BtW_13Sz.js.map → mermaid-renderer-B8LpF3rD.js.map} +1 -1
- package/dist/mermaid.d.ts +0 -2
- package/dist/mermaid.js +1 -2
- package/dist/{monaco-browser-CLRPSE4-.js → monaco-browser-BBIyiPtL.js} +2 -3
- package/dist/{monaco-browser-CLRPSE4-.js.map → monaco-browser-BBIyiPtL.js.map} +1 -1
- package/dist/{number-input-QDqWYzTR.js → number-input-DzRvKj64.js} +3 -4
- package/dist/{number-input-QDqWYzTR.js.map → number-input-DzRvKj64.js.map} +1 -1
- package/dist/{param-editor-Bva0M7Ns.js → param-editor-DyIO1rSf.js} +8 -14
- package/dist/{param-editor-Bva0M7Ns.js.map → param-editor-DyIO1rSf.js.map} +1 -1
- package/dist/{param-editor-field-BPBlweVg.js → param-editor-field-Bt7NP9OH.js} +682 -676
- package/dist/param-editor-field-Bt7NP9OH.js.map +1 -0
- package/dist/param-editor.d.ts +0 -66
- package/dist/param-editor.js +3 -3
- package/dist/prism-CQBZiF5P.js +391 -0
- package/dist/prism-CQBZiF5P.js.map +1 -0
- package/dist/{queued-follow-up-Bj_vtMgd.js → queued-follow-up-Bl8TC36-.js} +2 -3
- package/dist/{queued-follow-up-Bj_vtMgd.js.map → queued-follow-up-Bl8TC36-.js.map} +1 -1
- package/dist/{radio-CiFrDN6O.js → radio-BPnviQ4h.js} +2 -3
- package/dist/{radio-CiFrDN6O.js.map → radio-BPnviQ4h.js.map} +1 -1
- package/dist/{resolve-icon-component-Dy0pOuj5.js → resolve-icon-component-BrIOFsnC.js} +3 -4
- package/dist/{resolve-icon-component-Dy0pOuj5.js.map → resolve-icon-component-BrIOFsnC.js.map} +1 -1
- package/dist/{resource-badge-DGwekS-G.d.ts → resource-badge-C73K0Vg9.d.ts} +0 -4
- package/dist/{rich-text-CH2psble.js → rich-text-DBpBdWtn.js} +75 -104
- package/dist/{rich-text-CH2psble.js.map → rich-text-DBpBdWtn.js.map} +1 -1
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{scroll-area-IeoRS73V.js → scroll-area-BfAlvhjh.js} +3 -5
- package/dist/{scroll-area-IeoRS73V.js.map → scroll-area-BfAlvhjh.js.map} +1 -1
- package/dist/split-panel-motion-context-B8QvAyTv.js +6 -0
- package/dist/{split-panel-motion-context-YB0sduVv.js.map → split-panel-motion-context-B8QvAyTv.js.map} +1 -1
- package/dist/terminal.d.ts +1 -11
- package/dist/terminal.js +7 -15
- package/dist/terminal.js.map +1 -1
- package/dist/{theme-kKuLN2jb.js → theme-BMHkV5Ry.js} +2 -3
- package/dist/{theme-kKuLN2jb.js.map → theme-BMHkV5Ry.js.map} +1 -1
- package/dist/{theme-preference-BV4cbJNB.js → theme-preference-Bdi0s7vE.js} +10 -19
- package/dist/{theme-preference-BV4cbJNB.js.map → theme-preference-Bdi0s7vE.js.map} +1 -1
- package/dist/{theme-BsStBWWL.js → theme-rmCwx-aG.js} +30 -14
- package/dist/theme-rmCwx-aG.js.map +1 -0
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +2 -2
- package/dist/{tree-list-aNC_UTGS.js → tree-list-Bg8U7ZYc.js} +31 -65
- package/dist/{tree-list-aNC_UTGS.js.map → tree-list-Bg8U7ZYc.js.map} +1 -1
- package/dist/{use-virtualizer-CqDYJolY.js → use-virtualizer-B6ABIiNI.js} +2 -3
- package/dist/{use-virtualizer-CqDYJolY.js.map → use-virtualizer-B6ABIiNI.js.map} +1 -1
- package/dist/{workspace-badge-BMjS8ii4.d.ts → workspace-badge-DI6ZpW9Z.d.ts} +0 -6
- package/dist/{workspace-badge-DqQKSUJw.js → workspace-badge-Dqi-Sh_Q.js} +3 -4
- package/dist/{workspace-badge-DqQKSUJw.js.map → workspace-badge-Dqi-Sh_Q.js.map} +1 -1
- package/dist-monaco/assets/{css.worker-DFdt6_zu.js → css.worker-D55UB6Ki.js} +7 -7
- package/dist-monaco/assets/editor.worker-C3R1XRkp.js +26 -0
- package/dist-monaco/assets/{html.worker-JUzsMP-j.js → html.worker-CFLR1M2C.js} +7 -7
- package/dist-monaco/assets/json.worker-DJ19GkSR.js +58 -0
- package/dist-monaco/assets/{ts.worker-CmEKzkmF.js → ts.worker-DJNYEI7I.js} +32 -32
- package/dist-monaco/monaco.js +188 -188
- package/package.json +2 -2
- package/dist/alert-CO-uOKLm.js +0 -409
- package/dist/alert-CO-uOKLm.js.map +0 -1
- package/dist/markdown-editor-BPGIS9ku.js.map +0 -1
- package/dist/param-editor-field-BPBlweVg.js.map +0 -1
- package/dist/prism-E3-NXX_t.js +0 -335
- package/dist/prism-E3-NXX_t.js.map +0 -1
- package/dist/split-panel-motion-context-YB0sduVv.js +0 -7
- package/dist/theme-BsStBWWL.js.map +0 -1
- package/dist-monaco/assets/editor.worker-O-CH8JUO.js +0 -26
- package/dist-monaco/assets/json.worker-B4dEhy0e.js +0 -58
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){r(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){let{name:t,message:r,cause:i}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack,noTelemetry:a.isErrorNoTelemetry(e),cause:i?n(i):void 0,code:e.code}}return e}function r(e){return e instanceof i||e instanceof Error&&e.name===`Canceled`&&e.message===`Canceled`}var i=class extends Error{constructor(){super(`Canceled`),this.name=this.message}},a=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},o=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function s(e,t=`Unreachable`){throw Error(t)}function c(e,t=`unexpected state`){if(!e)throw typeof t==`string`?new o(`Assertion Failed: ${t}`):t}function l(e){e()||(e(),t(new o(`Assertion Failed`)))}function u(e,t){let n=0;for(;n<e.length-1;){let r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}function d(e){return typeof e==`string`}function f(e){return!!e&&typeof e[Symbol.iterator]==`function`}var p;(function(e){function t(e){return!!e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function*s(e){for(let t=e.length-1;t>=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){let n=0;for(let r of e)if(!t(r,n++))return!1;return!0}e.every=d;function p(e,t){for(let n of e)if(t(n))return n}e.find=p;function*m(e,t){for(let n of e)t(n)&&(yield n)}e.filter=m;function*h(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=h;function*g(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=g;function*_(...e){for(let t of e)f(t)?yield*t:yield t}e.concat=_;function v(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=v;function y(e){let t=0;for(let n of e)t++;return t}e.length=y;function*b(e,t,n=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=b;function x(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=x;async function S(e){let t=[];for await(let n of e)t.push(n);return t}e.asyncToArray=S;async function C(e){let t=[];for await(let n of e)t=t.concat(n);return t}e.asyncToArrayFlat=C})(p||={});function m(e){if(p.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){return _(()=>m(e))}var g=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw Error(`Unbound disposable context: Need to use an arrow function to preserve the value of this`);this._isDisposed=!0,this._fn()}}};function _(e){return new g(e)}var v=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=/* @__PURE__ */ new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===y.None)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn((/* @__PURE__ */ 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(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}},y=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new v,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},b=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},x=class{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let e=this._first;for(;e!==b.Undefined;){let t=e.next;e.prev=b.Undefined,e.next=b.Undefined,e=t}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new b(e);if(this._first===b.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==b.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==b.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==b.Undefined&&e.next!==b.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===b.Undefined&&e.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):e.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):e.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==b.Undefined;)yield e.element,e=e.next}};let S=globalThis.performance.now.bind(globalThis.performance);var C=class e{static create(t){return new e(t)}constructor(e){this._now=e===!1?Date.now:S,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},w;(function(e){e.None=()=>y.None;function t(e,t){return f(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(t,n){return e.once(e.filter(t,n))}e.onceIf=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(h(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,t){let n,r=new oe({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new oe({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(l&&clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=null,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=f;function p(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=p;function m(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=m;function g(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=g;function _(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new oe({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=_;function b(e,t){return(n,r,i)=>{let a=t(new S);return e(function(e){let t=a.evaluate(e);t!==x&&n.call(r,t)},void 0,i)}}e.chain=b;let x=Symbol(`HaltChainable`);class S{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:x),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:x}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===x)break;return e}}function C(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new oe({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=C;function w(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new oe({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=w;function ee(e,t){let r,i=new Promise((i,a)=>{let o=n(e)(i,null,t);r=()=>o.dispose()});return i.cancel=r,i}e.toPromise=ee;function te(e,t){return e(e=>t.fire(e))}e.forward=te;function ne(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=ne;class re{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new oe(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ie(e,t){return new re(e,t).emitter.event}e.fromObservable=ie;function ae(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof v?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=ae})(w||={});var ee=class e{static{this.all=/* @__PURE__ */ new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new C,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},te=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=/* @__PURE__ */ new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);let a=new re(i,e);this._errorHandler(a)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}},ne=class e{static create(){return new e((/* @__PURE__ */ Error()).stack??``)}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
6
6
|
`).slice(2).join(`
|
|
7
|
-
`))}},re=class extends Error{constructor(e,t){super(e),this.name=`ListenerLeakError`,this.stack=t}},ie=class extends Error{constructor(e,t){super(e),this.name=`ListenerRefusalError`,this.stack=t}},ae=class{constructor(e){this.value=e}},oe=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new te(e?.onListenerError??t,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new ee(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let n=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],r=new ie(`${e}. HINT: Stack shows most frequent listener (${n[1]}-times)`,n[0]);return(this._options?.onListenerError||t)(r),y.None}if(this._disposed)return y.None;n&&(e=e.bind(n));let i=new ae(e),a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=ne.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof ae?(this._deliveryQueue??=new se,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=_(()=>{a?.(),this._removeListener(i)});return r instanceof v?r.add(o):Array.isArray(r)&&r.push(o),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*2<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&e<this._deliveryQueue.end&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,n){if(!e)return;let r=this._options?.onListenerError||t;if(!r){e.value(n);return}try{e.value(n)}catch(e){r(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners){if(this._listeners instanceof ae)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}}this._perfMon?.stop()}hasListeners(){return this._size>0}},se=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function ce(){return globalThis._VSCODE_NLS_MESSAGES}function le(){return globalThis._VSCODE_NLS_LANGUAGE}let ue=le()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function de(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),ue&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function T(e,t,...n){return de(typeof e==`number`?fe(e,t):t,n)}function fe(e,t){let n=ce()?.[e];if(typeof n!=`string`){if(typeof t==`string`)return t;throw Error(`!!! NLS MISSING: ${e} !!!`)}return n}let pe=!1,me=!1,he=!1,ge=!1,_e,ve=globalThis,ye;ve.vscode!==void 0&&ve.vscode.process!==void 0?ye=ve.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(ye=process);let be=typeof ye?.versions?.electron==`string`&&ye?.type===`renderer`;if(typeof ye==`object`){pe=ye.platform===`win32`,me=ye.platform===`darwin`,he=ye.platform===`linux`,he&&ye.env.SNAP&&ye.env.SNAP_REVISION,ye.env.CI||ye.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ye.env.GITHUB_WORKSPACE;let e=ye.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,t.resolvedLanguage,t.languagePack?.translationsConfigFile}catch{}}else typeof navigator==`object`&&!be?(_e=navigator.userAgent,pe=_e.indexOf(`Windows`)>=0,me=_e.indexOf(`Macintosh`)>=0,(_e.indexOf(`Macintosh`)>=0||_e.indexOf(`iPad`)>=0||_e.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,he=_e.indexOf(`Linux`)>=0,_e?.indexOf(`Mobi`),ge=!0,le(),navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);let xe=pe,Se=me;ge&&typeof ve.importScripts==`function`&&ve.origin;let Ce=_e,we=typeof ve.postMessage==`function`&&!ve.importScripts;(()=>{if(we){let e=[];ve.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),ve.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();let Te=!!(Ce&&Ce.indexOf(`Chrome`)>=0);Ce&&Ce.indexOf(`Firefox`),!Te&&Ce&&Ce.indexOf(`Safari`),Ce&&Ce.indexOf(`Edg/`),Ce&&Ce.indexOf(`Android`);function Ee(e){return e}var De=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=Ee):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Oe;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(Oe||={});var ke=class{constructor(e){this.executor=e,this._state=Oe.Uninitialized}get value(){if(this._state===Oe.Uninitialized){this._state=Oe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Oe.Completed}}else if(this._state===Oe.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ae(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function je(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function Me(e){return e.split(/\r\n|\r|\n/)}function Ne(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Pe(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function Fe(e){return e>=65&&e<=90}function Ie(e,t){let n=Math.min(e.length,t.length),r=0;for(;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Le(e,t){let n=Math.min(e.length,t.length),r,i=e.length-1,a=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(a-r))return r;return n}function Re(e){return 55296<=e&&e<=56319}function ze(e){return 56320<=e&&e<=57343}function Be(e,t){return(e-55296<<10)+(t-56320)+65536}function Ve(e,t,n){let r=e.charCodeAt(n);if(Re(r)&&n+1<t){let t=e.charCodeAt(n+1);if(ze(t))return Be(r,t)}return r}let He=/^[\t\n\r\x20-\x7E]*$/;function Ue(e){return He.test(e)}(class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||=new e,e._INSTANCE}constructor(){this._data=We()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,n=t.length/3,r=1;for(;r<=n;)if(e<t[3*r])r=2*r;else if(e>t[3*r+1])r=2*r+1;else return t[3*r+2];return 0}});function We(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,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,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,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,129008,129008,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,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,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,2192,2193,1,2250,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,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,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,6862,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,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,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,9775,9775,14,9784,9785,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,9874,14,9876,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,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,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,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,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,118528,118573,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,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}var Ge=class e{static{this.ambiguousCharacterData=new ke(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}`))}static{this.cache=new De({getCacheKey:JSON.stringify},t=>{function n(e){let t=/* @__PURE__ */ new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function r(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function i(e,t){if(!e)return t;let n=/* @__PURE__ */ new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let a=this.ambiguousCharacterData.value,o=t.filter(e=>!e.startsWith(`_`)&&Object.hasOwn(a,e));o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new ke(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Ke=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};let qe=`default`;var Je=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}},Ye=class{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}},Xe=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}},Ze=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},Qe=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},$e=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=/* @__PURE__ */ new Map,this._pendingEvents=/* @__PURE__ */ new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new Je(this._workerId,r,e,t,n))})}listen(e,t,n){let r=null,i=new oe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Xe(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Qe(this._workerId,r)),r=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(this._workerId===-1||e.vsWorker===this._workerId)&&this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(n,r)=>(typeof r==`string`&&!n[r]&&(tt(r)?n[r]=t=>this.listen(e,r,t):et(r)?n[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(n[r]=async(...n)=>(await t?.(),this.sendMessage(e,r,n)))),n[r])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn(`Got reply to unknown seq`);return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let t=/* @__PURE__ */ Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,n=t}t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new Ye(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Ye(this._workerId,t,void 0,n(e)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new Ze(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn(`Got event for unknown req`);return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn(`Got unsubscribe for unknown req`);return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n<e.args.length;n++){let r=e.args[n];r instanceof ArrayBuffer&&t.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}};function et(e){return e[0]===`o`&&e[1]===`n`&&Fe(e.charCodeAt(2))}function tt(e){return/^onDynamic/.test(e)&&Fe(e.charCodeAt(9))}var nt=class{constructor(e,t){this._localChannels=/* @__PURE__ */ new Map,this._remoteChannels=/* @__PURE__ */ new Map,this._protocol=new $e({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===qe&&t===`$initialize`)return this.initialize(n[0]);let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(/* @__PURE__ */ Error(`Missing channel ${e} on worker thread`));let i=r[t];if(typeof i!=`function`)return Promise.reject(/* @__PURE__ */ Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)throw Error(`Missing channel ${e} on worker thread`);if(tt(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);let i=e.call(r,n);if(typeof i!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);return i}if(et(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing event ${t} on request handler.`);return e}throw Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){let t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}};let rt=!1;function it(e){if(rt)throw Error(`WebWorker already initialized!`);rt=!0;let t=new nt(e=>globalThis.postMessage(e),t=>e(t));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}var at=class{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};let ot=typeof Buffer<`u`;new ke(()=>/* @__PURE__ */ new Uint8Array(256));let st;var ct=class e{static wrap(t){return ot&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return ot?this.buffer.toString():(st||=new TextDecoder,st.decode(this.buffer))}};let lt=`0123456789abcdef`;function ut({buffer:e}){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=lt[r>>>4],t+=lt[r&15]}return t}function dt(e,t){return(t<<5)-t+e|0}function ft(e,t){t=dt(149417,t);for(let n=0,r=e.length;n<r;n++)t=dt(e.charCodeAt(n),t);return t}function pt(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function mt(e,t=32){return e instanceof ArrayBuffer?ut(ct.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}(class e{static{this._bigBlock32=/* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=/* @__PURE__ */ new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(Re(a)){if(o+1<t){let t=e.charCodeAt(o+1);ze(t)?(o++,s=Be(a,t)):s=65533}else{i=a;break}}else ze(a)&&(s=65533);if(r=this._push(n,r,s),o++,o<t)a=e.charCodeAt(o);else break}this._buffLen=r,this._leftoverHighSurrogate=i}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}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()),mt(this._h0)+mt(this._h1)+mt(this._h2)+mt(this._h3)+mt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,pt(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=pt(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=pt(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}});var ht=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}};function gt(e,t,n){return new bt(new ht(e),new ht(t)).ComputeDiff(n).changes}var _t=class{static Assert(e,t){if(!e)throw Error(t)}},vt=class{static Copy(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}static Copy2(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}},yt=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new at(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(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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}},bt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,a,o]=e._getElements(t),[s,c,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]==`string`}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=ft(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t]:!1}ElementsAreStrictEqual(t,n){return this.ElementsAreEqual(t,n)?e._getStrictElement(this._originalSequence,t)===e._getStrictElement(this._modifiedSequence,n):!1}static _getStrictElement(e,t){return typeof e.getStrictElement==`function`?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t]:!1}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t]:!1}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){let a=[!1],o=this.ComputeDiffRecursive(e,t,n,r,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),i=[new at(e,0,n,r-n+1)]):e<=t?(_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[new at(e,t-e+1,n,0)]):(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[]),i}let a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,r,a,o,i),c=a[0],l=o[0];if(s!==null)return s;if(!i[0]){let a=this.ComputeDiffRecursive(e,c,n,l,i),o=[];return o=i[0]?[new at(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(a,o)}return[new at(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=null,b=new yt,x=t,S=n,C=f[0]-h[0]-r,w=-1073741824,ee=this.m_forwardHistory.length-1;do{let t=C+e;t===x||t<S&&c[t-1]<c[t+1]?(u=c[t+1],p=u-C-r,u<w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p),C=t+1-e):(u=c[t-1]+1,p=u-C-r,u<w&&b.MarkNextChange(),w=u-1,b.AddOriginalElement(u,p+1),C=t-1-e),ee>=0&&(c=this.m_forwardHistory[ee],e=c[0],x=1,S=c.length-1)}while(--ee>=-1);if(v=b.getReverseChanges(),_[0]){let e=f[0]+1,t=h[0]+1;if(v!==null&&v.length>0){let n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new at(e,d-e+1,t,m-t+1)]}else{b=new yt,x=a,S=o,C=f[0]-h[0]-s,w=1073741824,ee=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=C+i;e===x||e<S&&l[e-1]>=l[e+1]?(u=l[e+1]-1,p=u-C-s,u>w&&b.MarkNextChange(),w=u+1,b.AddOriginalElement(u+1,p+1),C=e+1-i):(u=l[e-1],p=u-C-s,u>w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p+1),C=e-1-i),ee>=0&&(l=this.m_reverseHistory[ee],i=l[0],x=1,S=l.length-1)}while(--ee>=-1);y=b.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,f=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=t-e+(r-n),m=p+1,h=new Int32Array(m),g=new Int32Array(m),_=r-n,v=t-e,y=e-n,b=t-r,x=(v-_)%2==0;h[_]=e,g[v]=t,o[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,C=0;l=this.ClipDiagonalBound(_-S,S,_,m),u=this.ClipDiagonalBound(_+S,S,_,m);for(let e=l;e<=u;e+=2){s=e===l||e<u&&h[e-1]<h[e+1]?h[e+1]:h[e-1]+1,c=s-(e-_)-y;let n=s;for(;s<t&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(h[e]=s,s+c>p+C&&(p=s,C=c),!x&&Math.abs(e-v)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,n<=g[e]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}let w=(p-e+(C-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,w))return o[0]=!0,i[0]=p,a[0]=C,w>0&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):(e++,n++,[new at(e,t-e+1,n,r-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),f=this.ClipDiagonalBound(v+S,S,v,m);for(let p=d;p<=f;p+=2){s=p===d||p<f&&g[p-1]>=g[p+1]?g[p+1]-1:g[p-1],c=s-(p-v)-b;let m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(g[p]=s,x&&Math.abs(p-_)<=S&&s<=h[p])return i[0]=s,a[0]=c,m>=h[p]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=_-l+1,vt.Copy2(h,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-d+2),e[0]=v-d+1,vt.Copy2(g,d,e,1,f-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){let n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,a=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}let s=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)){e[t]=s[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){let n=e[t],r=0,i=0;if(t>0){let n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}let a=n.originalLength>0,o=n.modifiedLength>0,s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){let t=n.originalStart-e,l=n.modifiedStart-e;if(t<r||l<i||a&&!this.OriginalElementsAreEqual(t,t+n.originalLength)||o&&!this.ModifiedElementsAreEqual(l,l+n.modifiedLength))break;let u=(t===r&&l===i?5:0)+this._boundaryScore(t,n.originalLength,l,n.modifiedLength);u>c&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;let l=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],l)){e[t-1]=l[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){let n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,a=n.originalStart,o=r.originalStart+r.originalLength,s=o-a,c=n.modifiedStart,l=r.modifiedStart+r.modifiedLength,u=l-c;if(i<5&&s<20&&u<20){let e=this._findBetterContiguousSequence(a,s,c,u,i);if(e){let[t,a]=e;(t!==n.originalStart+n.originalLength||a!==n.modifiedStart+n.modifiedLength)&&(n.originalLength=t-n.originalStart,n.modifiedLength=a-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=a+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;let a=e+t-i+1,o=n+r-i+1,s=0,c=0,l=0;for(let t=e;t<a;t++)for(let e=n;e<o;e++){let n=this._contiguousSequenceScore(t,e,i);n>0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return+!!this._OriginalRegionIsBoundary(e,t)+ +!!this._ModifiedRegionIsBoundary(n,r)}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let r=Array(e.length+t.length-1);return vt.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],vt.Copy(t,1,r,e.length,t.length-1),r}{let n=Array(e.length+t.length);return vt.Copy(e,0,n,0,e.length),vt.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(_t.Assert(e.originalStart<=t.originalStart,`Left change is not less than or equal to right change`),_t.Assert(e.modifiedStart<=t.modifiedStart,`Left change is not less than or equal to right change`),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){let r=e.originalStart,i=e.originalLength,a=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new at(r,i,a,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;let i=n,a=r-n-1,o=t%2==0;return e<0?o===(i%2==0)?0:1:o===(a%2==0)?r-1:r-2}},E=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let n=e.lineNumber|0,r=t.lineNumber|0;return n===r?(e.column|0)-(t.column|0):n-r}clone(){return new e(this.lineNumber,this.column)}toString(){return`(`+this.lineNumber+`,`+this.column+`)`}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(e){return!!e&&typeof e.lineNumber==`number`&&typeof e.column==`number`}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},D=class e{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return r<s?(r=s,i=c):r===s&&(i=Math.max(i,c)),a>l?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new E(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new E(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static areOnlyIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber-1||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn-1||t.endLineNumber<e.startLineNumber-1||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,t){if(e&&t){let n=e.startLineNumber|0,r=t.startLineNumber|0;if(n===r){let n=e.startColumn|0,r=t.startColumn|0;if(n===r){let n=e.endLineNumber|0,r=t.endLineNumber|0;return n===r?(e.endColumn|0)-(t.endColumn|0):n-r}return n-r}return n-r}return!!e-+!!t}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function xt(e){return e<0?0:e>255?255:e|0}function St(e){return e<0?0:e>4294967295?4294967295:e|0}var Ct=class e{constructor(t){let n=xt(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=/* @__PURE__ */ new Map}static _createAsciiMap(e){let t=/* @__PURE__ */ new Uint8Array(256);return t.fill(e),t}set(e,t){let n=xt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},wt=class{constructor(e,t,n){let r=new Uint8Array(e*t);for(let i=0,a=e*t;i<a;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}},Tt=class{constructor(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++){let[i,a,o]=e[r];a>t&&(t=a),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new wt(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,i,a]=e[t];r.set(n,i,a)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}};let Et=null;function Dt(){return Et===null&&(Et=new Tt([[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]])),Et}let Ot=null;function kt(){if(Ot===null){Ot=new Ct(0);for(let e=0;e<36;e++)Ot.set(` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`.charCodeAt(e),1);for(let e=0;e<4;e++)Ot.set(`.,;:`.charCodeAt(e),2)}return Ot}var At=class e{static _createLink(e,t,n,r,i){let a=i-1;do{let n=t.charCodeAt(a);if(e.get(n)!==2)break;a--}while(a>r);if(r>0){let e=t.charCodeAt(r-1),n=t.charCodeAt(a);(e===40&&n===41||e===91&&n===93||e===123&&n===125)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}}static computeLinks(t,n=Dt()){let r=kt(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){let o=t.getLineContent(a),s=o.length,c=0,l=0,u=0,d=1,f=!1,p=!1,m=!1,h=!1;for(;c<s;){let t=!1,s=o.charCodeAt(c);if(d===13){let n;switch(s){case 40:f=!0,n=0;break;case 41:n=+!f;break;case 91:m=!0,p=!0,n=0;break;case 93:m=!1,n=+!p;break;case 123:h=!0,n=0;break;case 125:n=+!h;break;case 39:case 34:case 96:n=u===s?1:u===39||u===34||u===96?0:1;break;case 42:n=+(u===42);break;case 32:n=+!m;break;default:n=r.get(s)}n===1&&(i.push(e._createLink(r,o,a,l,c)),t=!0)}else if(d===12){let e;s===91?(p=!0,e=0):e=r.get(s),e===1?t=!0:d=13}else d=n.nextState(d,s),d===0&&(t=!0);t&&(d=1,f=!1,p=!1,h=!1,l=c+1,u=s),c++}d===13&&i.push(e._createLink(r,o,a,l,s))}return i}};function jt(e){return!e||typeof e.getLineCount!=`function`||typeof e.getLineContent!=`function`?[]:At.computeLinks(e)}var Mt=class e{constructor(){this._defaultValueSet=[[`true`,`false`],[`True`,`False`],[`Private`,`Public`,`Friend`,`ReadOnly`,`Partial`,`Protected`,`WriteOnly`],[`public`,`protected`,`private`]]}static{this.INSTANCE=new e}navigateValueSet(e,t,n,r,i){if(e&&t){let n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){let e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return n===null?this.textReplace(e,t):n}numberReplace(e,t){let n=10**(e.length-(e.lastIndexOf(`.`)+1)),r=Number(e),i=parseFloat(e);return!isNaN(r)&&!isNaN(i)&&r===i?r===0&&!t?null:(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,a=e.length;r===null&&i<a;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};let Nt=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Pt;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Ft?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:w.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nt})})(Pt||={});var Ft=class{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?Nt:(this._emitter||=new oe,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},It=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Ft,this._token}cancel(){this._token?this._token instanceof Ft&&this._token.cancel():this._token=Pt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Ft&&this._token.dispose():this._token=Pt.None}},Lt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}};let Rt=new Lt,zt=new Lt,Bt=new Lt,Vt=Array(230),Ht=Object.create(null),Ut=Object.create(null),Wt=[];for(let e=0;e<=193;e++)Wt[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Ht[a]=i,Ut[a.toLowerCase()]=i,e&&(Wt[i]=o)),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);Rt.define(o,s),zt.define(o,u||s),Bt.define(o,d||u||s)}c&&(Vt[c]=o)}})();var Gt;(function(e){function t(e){return Rt.keyCodeToStr(e)}e.toString=t;function n(e){return Rt.strToKeyCode(e)}e.fromString=n;function r(e){return zt.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Bt.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return zt.strToKeyCode(e)||Bt.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Rt.keyCodeToStr(e)}e.toElectronAccelerator=o})(Gt||={});function Kt(e,t){return(e|(t&65535)<<16>>>0)>>>0}let qt,Jt=globalThis.vscode;if(Jt!==void 0&&Jt.process!==void 0){let e=Jt.process;qt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else qt=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return xe?`win32`:Se?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};let Yt=qt.cwd,Xt=qt.env,Zt=qt.platform;var Qt=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function $t(e,t){if(typeof e!=`object`||!e)throw new Qt(t,`Object`,e)}function O(e,t){if(typeof e!=`string`)throw new Qt(t,`string`,e)}let en=Zt===`win32`;function k(e){return e===47||e===92}function tn(e){return e===47}function nn(e){return e>=65&&e<=90||e>=97&&e<=122}function rn(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function an(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function on(e,t){$t(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${an(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let sn={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],O(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=Yt():(a=Xt[`=${t}`]||Yt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===92)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)k(u)&&(s=1,l=!0);else if(k(u)){if(l=!0,k(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!k(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&k(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!k(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else nn(u)&&a.charCodeAt(1)===58&&(c=a.slice(0,2),s=2,o>2&&k(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=rn(n,!r,`\\`,k),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return tn(a)?`\\`:e;if(k(a)){if(i=!0,k(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!k(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!k(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else nn(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&k(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?rn(e.slice(n),!i,`\\`,k):``;if(o.length===0&&!i&&(o=`.`),o.length>0&&k(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&nn(o.charCodeAt(0))&&o.charCodeAt(1)===58)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||k(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){O(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return k(n)||t>2&&nn(n)&&e.charCodeAt(1)===58&&k(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];O(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&k(n.charCodeAt(0))){++i;let e=n.length;e>1&&k(n.charCodeAt(1))&&(++i,e>2&&(k(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&k(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return sn.normalize(t)},relative(e,t){if(O(e,`from`),O(t,`to`),e===t)return``;let n=sn.resolve(e),r=sn.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=i<a?i:a,s=0;for(;s<o&&e[s].toLowerCase()===t[s].toLowerCase();s++);return s===0?r:s===o?a>o?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;i<e.length&&e.charCodeAt(i)===92;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===92;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===92;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===92;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===92&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=sn.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(nn(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return t},dirname(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return k(i)?e:`.`;if(k(i)){if(n=r=1,k(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!k(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else nn(i)&&e.charCodeAt(1)===58&&(n=t>2&&k(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(k(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&nn(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(k(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(k(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===58&&nn(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(k(t)){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),t===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:on.bind(null,`\\`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return k(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(k(i)){if(r=1,k(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!k(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&k(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!k(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(nn(i)&&e.charCodeAt(1)===58){if(n<=2)return t.root=t.dir=e,t;if(r=2,k(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){if(i=e.charCodeAt(l),k(i)){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),i===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},cn=(()=>{if(en){let e=/\\/g;return()=>{let t=Yt().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>Yt()})(),ln={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];O(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===47)}if(!n){let e=cn();t=`${e}/${t}`,n=e.charCodeAt(0)===47}return t=rn(t,!n,`/`,tn),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=rn(e,!t,`/`,tn),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return O(e,`path`),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n<e.length;++n){let r=e[n];O(r,`path`),r.length>0&&t.push(r)}return t.length===0?`.`:ln.normalize(t.join(`/`))},relative(e,t){if(O(e,`from`),O(t,`to`),e===t||(e=ln.resolve(e),t=ln.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===47&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===47)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===47?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===47)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:on.bind(null,`/`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===47,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===47){if(!s){a=c+1;break}continue}o===-1&&(s=!1,o=c+1),t===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};ln.win32=sn.win32=sn,ln.posix=sn.posix=ln,en?sn.normalize:ln.normalize,en?sn.resolve:ln.resolve,en?sn.relative:ln.relative,en?sn.dirname:ln.dirname,en?sn.basename:ln.basename,en?sn.extname:ln.extname,en?sn.sep:ln.sep;let un=/^\w[\w\d+.-]*$/,dn=/^\//,fn=/^\/\//;function pn(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!un.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!dn.test(e.path))throw 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(fn.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function mn(e,t){return!e&&!t?`file`:e}function hn(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==gn&&(t=gn+t):t=gn}return t}let gn=`/`,_n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var vn=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1:typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=mn(e,a),this.authority=t||``,this.path=hn(this.scheme,n||``),this.query=r||``,this.fragment=i||``,pn(this,a))}get fsPath(){return wn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new bn(t,n,r,i,a)}static parse(e,t=!1){let n=_n.exec(e);return n?new bn(n[2]||``,On(n[4]||``),On(n[5]||``),On(n[7]||``),On(n[9]||``),t):new bn(``,``,``,``,``)}static file(e){let t=``;if(xe&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new bn(`file`,t,e,``,``)}static from(e,t){return new bn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=xe&&t.scheme===`file`?e.file(sn.join(wn(t,!0),...n)).path:ln.join(t.path,...n),t.with({path:r})}toString(e=!1){return Tn(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new bn(t);return e._formatted=t.external??null,e._fsPath=t._sep===yn?t.fsPath??null:null,e}}};let yn=xe?1:void 0;var bn=class extends vn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=wn(this,!1),this._fsPath}toString(e=!1){return e?Tn(this,!0):(this._formatted||=Tn(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=yn),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};let xn={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 Sn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=xn[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function Cn(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=xn[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function wn(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,xe&&(n=n.replace(/\//g,`\\`)),n}function Tn(e,t){let n=t?Cn:Sn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:Sn(c,!1,!1)),r}function En(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+En(e.substr(3)):e}}let Dn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function On(e){return e.match(Dn)?e.replace(Dn,e=>En(e)):e}var kn=class e extends D{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new E(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new E(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber==`number`&&typeof e.selectionStartColumn==`number`&&typeof e.positionLineNumber==`number`&&typeof e.positionColumn==`number`}static createWithDirection(t,n,r,i,a){return a===0?new e(t,n,r,i):new e(r,i,t,n)}};let An=Object.create(null);function A(e,t){if(d(t)){let n=An[t];if(n===void 0)throw Error(`${e} references an unknown codicon: ${t}`);t=n}return An[e]=t,{id:e}}let jn={add:A(`add`,6e4),plus:A(`plus`,6e4),gistNew:A(`gist-new`,6e4),repoCreate:A(`repo-create`,6e4),lightbulb:A(`lightbulb`,60001),lightBulb:A(`light-bulb`,60001),repo:A(`repo`,60002),repoDelete:A(`repo-delete`,60002),gistFork:A(`gist-fork`,60003),repoForked:A(`repo-forked`,60003),gitPullRequest:A(`git-pull-request`,60004),gitPullRequestAbandoned:A(`git-pull-request-abandoned`,60004),recordKeys:A(`record-keys`,60005),keyboard:A(`keyboard`,60005),tag:A(`tag`,60006),gitPullRequestLabel:A(`git-pull-request-label`,60006),tagAdd:A(`tag-add`,60006),tagRemove:A(`tag-remove`,60006),person:A(`person`,60007),personFollow:A(`person-follow`,60007),personOutline:A(`person-outline`,60007),personFilled:A(`person-filled`,60007),sourceControl:A(`source-control`,60008),mirror:A(`mirror`,60009),mirrorPublic:A(`mirror-public`,60009),star:A(`star`,60010),starAdd:A(`star-add`,60010),starDelete:A(`star-delete`,60010),starEmpty:A(`star-empty`,60010),comment:A(`comment`,60011),commentAdd:A(`comment-add`,60011),alert:A(`alert`,60012),warning:A(`warning`,60012),search:A(`search`,60013),searchSave:A(`search-save`,60013),logOut:A(`log-out`,60014),signOut:A(`sign-out`,60014),logIn:A(`log-in`,60015),signIn:A(`sign-in`,60015),eye:A(`eye`,60016),eyeUnwatch:A(`eye-unwatch`,60016),eyeWatch:A(`eye-watch`,60016),circleFilled:A(`circle-filled`,60017),primitiveDot:A(`primitive-dot`,60017),closeDirty:A(`close-dirty`,60017),debugBreakpoint:A(`debug-breakpoint`,60017),debugBreakpointDisabled:A(`debug-breakpoint-disabled`,60017),debugHint:A(`debug-hint`,60017),terminalDecorationSuccess:A(`terminal-decoration-success`,60017),primitiveSquare:A(`primitive-square`,60018),edit:A(`edit`,60019),pencil:A(`pencil`,60019),info:A(`info`,60020),issueOpened:A(`issue-opened`,60020),gistPrivate:A(`gist-private`,60021),gitForkPrivate:A(`git-fork-private`,60021),lock:A(`lock`,60021),mirrorPrivate:A(`mirror-private`,60021),close:A(`close`,60022),removeClose:A(`remove-close`,60022),x:A(`x`,60022),repoSync:A(`repo-sync`,60023),sync:A(`sync`,60023),clone:A(`clone`,60024),desktopDownload:A(`desktop-download`,60024),beaker:A(`beaker`,60025),microscope:A(`microscope`,60025),vm:A(`vm`,60026),deviceDesktop:A(`device-desktop`,60026),file:A(`file`,60027),more:A(`more`,60028),ellipsis:A(`ellipsis`,60028),kebabHorizontal:A(`kebab-horizontal`,60028),mailReply:A(`mail-reply`,60029),reply:A(`reply`,60029),organization:A(`organization`,60030),organizationFilled:A(`organization-filled`,60030),organizationOutline:A(`organization-outline`,60030),newFile:A(`new-file`,60031),fileAdd:A(`file-add`,60031),newFolder:A(`new-folder`,60032),fileDirectoryCreate:A(`file-directory-create`,60032),trash:A(`trash`,60033),trashcan:A(`trashcan`,60033),history:A(`history`,60034),clock:A(`clock`,60034),folder:A(`folder`,60035),fileDirectory:A(`file-directory`,60035),symbolFolder:A(`symbol-folder`,60035),logoGithub:A(`logo-github`,60036),markGithub:A(`mark-github`,60036),github:A(`github`,60036),terminal:A(`terminal`,60037),console:A(`console`,60037),repl:A(`repl`,60037),zap:A(`zap`,60038),symbolEvent:A(`symbol-event`,60038),error:A(`error`,60039),stop:A(`stop`,60039),variable:A(`variable`,60040),symbolVariable:A(`symbol-variable`,60040),array:A(`array`,60042),symbolArray:A(`symbol-array`,60042),symbolModule:A(`symbol-module`,60043),symbolPackage:A(`symbol-package`,60043),symbolNamespace:A(`symbol-namespace`,60043),symbolObject:A(`symbol-object`,60043),symbolMethod:A(`symbol-method`,60044),symbolFunction:A(`symbol-function`,60044),symbolConstructor:A(`symbol-constructor`,60044),symbolBoolean:A(`symbol-boolean`,60047),symbolNull:A(`symbol-null`,60047),symbolNumeric:A(`symbol-numeric`,60048),symbolNumber:A(`symbol-number`,60048),symbolStructure:A(`symbol-structure`,60049),symbolStruct:A(`symbol-struct`,60049),symbolParameter:A(`symbol-parameter`,60050),symbolTypeParameter:A(`symbol-type-parameter`,60050),symbolKey:A(`symbol-key`,60051),symbolText:A(`symbol-text`,60051),symbolReference:A(`symbol-reference`,60052),goToFile:A(`go-to-file`,60052),symbolEnum:A(`symbol-enum`,60053),symbolValue:A(`symbol-value`,60053),symbolRuler:A(`symbol-ruler`,60054),symbolUnit:A(`symbol-unit`,60054),activateBreakpoints:A(`activate-breakpoints`,60055),archive:A(`archive`,60056),arrowBoth:A(`arrow-both`,60057),arrowDown:A(`arrow-down`,60058),arrowLeft:A(`arrow-left`,60059),arrowRight:A(`arrow-right`,60060),arrowSmallDown:A(`arrow-small-down`,60061),arrowSmallLeft:A(`arrow-small-left`,60062),arrowSmallRight:A(`arrow-small-right`,60063),arrowSmallUp:A(`arrow-small-up`,60064),arrowUp:A(`arrow-up`,60065),bell:A(`bell`,60066),bold:A(`bold`,60067),book:A(`book`,60068),bookmark:A(`bookmark`,60069),debugBreakpointConditionalUnverified:A(`debug-breakpoint-conditional-unverified`,60070),debugBreakpointConditional:A(`debug-breakpoint-conditional`,60071),debugBreakpointConditionalDisabled:A(`debug-breakpoint-conditional-disabled`,60071),debugBreakpointDataUnverified:A(`debug-breakpoint-data-unverified`,60072),debugBreakpointData:A(`debug-breakpoint-data`,60073),debugBreakpointDataDisabled:A(`debug-breakpoint-data-disabled`,60073),debugBreakpointLogUnverified:A(`debug-breakpoint-log-unverified`,60074),debugBreakpointLog:A(`debug-breakpoint-log`,60075),debugBreakpointLogDisabled:A(`debug-breakpoint-log-disabled`,60075),briefcase:A(`briefcase`,60076),broadcast:A(`broadcast`,60077),browser:A(`browser`,60078),bug:A(`bug`,60079),calendar:A(`calendar`,60080),caseSensitive:A(`case-sensitive`,60081),check:A(`check`,60082),checklist:A(`checklist`,60083),chevronDown:A(`chevron-down`,60084),chevronLeft:A(`chevron-left`,60085),chevronRight:A(`chevron-right`,60086),chevronUp:A(`chevron-up`,60087),chromeClose:A(`chrome-close`,60088),chromeMaximize:A(`chrome-maximize`,60089),chromeMinimize:A(`chrome-minimize`,60090),chromeRestore:A(`chrome-restore`,60091),circleOutline:A(`circle-outline`,60092),circle:A(`circle`,60092),debugBreakpointUnverified:A(`debug-breakpoint-unverified`,60092),terminalDecorationIncomplete:A(`terminal-decoration-incomplete`,60092),circleSlash:A(`circle-slash`,60093),circuitBoard:A(`circuit-board`,60094),clearAll:A(`clear-all`,60095),clippy:A(`clippy`,60096),closeAll:A(`close-all`,60097),cloudDownload:A(`cloud-download`,60098),cloudUpload:A(`cloud-upload`,60099),code:A(`code`,60100),collapseAll:A(`collapse-all`,60101),colorMode:A(`color-mode`,60102),commentDiscussion:A(`comment-discussion`,60103),creditCard:A(`credit-card`,60105),dash:A(`dash`,60108),dashboard:A(`dashboard`,60109),database:A(`database`,60110),debugContinue:A(`debug-continue`,60111),debugDisconnect:A(`debug-disconnect`,60112),debugPause:A(`debug-pause`,60113),debugRestart:A(`debug-restart`,60114),debugStart:A(`debug-start`,60115),debugStepInto:A(`debug-step-into`,60116),debugStepOut:A(`debug-step-out`,60117),debugStepOver:A(`debug-step-over`,60118),debugStop:A(`debug-stop`,60119),debug:A(`debug`,60120),deviceCameraVideo:A(`device-camera-video`,60121),deviceCamera:A(`device-camera`,60122),deviceMobile:A(`device-mobile`,60123),diffAdded:A(`diff-added`,60124),diffIgnored:A(`diff-ignored`,60125),diffModified:A(`diff-modified`,60126),diffRemoved:A(`diff-removed`,60127),diffRenamed:A(`diff-renamed`,60128),diff:A(`diff`,60129),diffSidebyside:A(`diff-sidebyside`,60129),discard:A(`discard`,60130),editorLayout:A(`editor-layout`,60131),emptyWindow:A(`empty-window`,60132),exclude:A(`exclude`,60133),extensions:A(`extensions`,60134),eyeClosed:A(`eye-closed`,60135),fileBinary:A(`file-binary`,60136),fileCode:A(`file-code`,60137),fileMedia:A(`file-media`,60138),filePdf:A(`file-pdf`,60139),fileSubmodule:A(`file-submodule`,60140),fileSymlinkDirectory:A(`file-symlink-directory`,60141),fileSymlinkFile:A(`file-symlink-file`,60142),fileZip:A(`file-zip`,60143),files:A(`files`,60144),filter:A(`filter`,60145),flame:A(`flame`,60146),foldDown:A(`fold-down`,60147),foldUp:A(`fold-up`,60148),fold:A(`fold`,60149),folderActive:A(`folder-active`,60150),folderOpened:A(`folder-opened`,60151),gear:A(`gear`,60152),gift:A(`gift`,60153),gistSecret:A(`gist-secret`,60154),gist:A(`gist`,60155),gitCommit:A(`git-commit`,60156),gitCompare:A(`git-compare`,60157),compareChanges:A(`compare-changes`,60157),gitMerge:A(`git-merge`,60158),githubAction:A(`github-action`,60159),githubAlt:A(`github-alt`,60160),globe:A(`globe`,60161),grabber:A(`grabber`,60162),graph:A(`graph`,60163),gripper:A(`gripper`,60164),heart:A(`heart`,60165),home:A(`home`,60166),horizontalRule:A(`horizontal-rule`,60167),hubot:A(`hubot`,60168),inbox:A(`inbox`,60169),issueReopened:A(`issue-reopened`,60171),issues:A(`issues`,60172),italic:A(`italic`,60173),jersey:A(`jersey`,60174),json:A(`json`,60175),kebabVertical:A(`kebab-vertical`,60176),key:A(`key`,60177),law:A(`law`,60178),lightbulbAutofix:A(`lightbulb-autofix`,60179),linkExternal:A(`link-external`,60180),link:A(`link`,60181),listOrdered:A(`list-ordered`,60182),listUnordered:A(`list-unordered`,60183),liveShare:A(`live-share`,60184),loading:A(`loading`,60185),location:A(`location`,60186),mailRead:A(`mail-read`,60187),mail:A(`mail`,60188),markdown:A(`markdown`,60189),megaphone:A(`megaphone`,60190),mention:A(`mention`,60191),milestone:A(`milestone`,60192),gitPullRequestMilestone:A(`git-pull-request-milestone`,60192),mortarBoard:A(`mortar-board`,60193),move:A(`move`,60194),multipleWindows:A(`multiple-windows`,60195),mute:A(`mute`,60196),noNewline:A(`no-newline`,60197),note:A(`note`,60198),octoface:A(`octoface`,60199),openPreview:A(`open-preview`,60200),package:A(`package`,60201),paintcan:A(`paintcan`,60202),pin:A(`pin`,60203),play:A(`play`,60204),run:A(`run`,60204),plug:A(`plug`,60205),preserveCase:A(`preserve-case`,60206),preview:A(`preview`,60207),project:A(`project`,60208),pulse:A(`pulse`,60209),question:A(`question`,60210),quote:A(`quote`,60211),radioTower:A(`radio-tower`,60212),reactions:A(`reactions`,60213),references:A(`references`,60214),refresh:A(`refresh`,60215),regex:A(`regex`,60216),remoteExplorer:A(`remote-explorer`,60217),remote:A(`remote`,60218),remove:A(`remove`,60219),replaceAll:A(`replace-all`,60220),replace:A(`replace`,60221),repoClone:A(`repo-clone`,60222),repoForcePush:A(`repo-force-push`,60223),repoPull:A(`repo-pull`,60224),repoPush:A(`repo-push`,60225),report:A(`report`,60226),requestChanges:A(`request-changes`,60227),rocket:A(`rocket`,60228),rootFolderOpened:A(`root-folder-opened`,60229),rootFolder:A(`root-folder`,60230),rss:A(`rss`,60231),ruby:A(`ruby`,60232),saveAll:A(`save-all`,60233),saveAs:A(`save-as`,60234),save:A(`save`,60235),screenFull:A(`screen-full`,60236),screenNormal:A(`screen-normal`,60237),searchStop:A(`search-stop`,60238),server:A(`server`,60240),settingsGear:A(`settings-gear`,60241),settings:A(`settings`,60242),shield:A(`shield`,60243),smiley:A(`smiley`,60244),sortPrecedence:A(`sort-precedence`,60245),splitHorizontal:A(`split-horizontal`,60246),splitVertical:A(`split-vertical`,60247),squirrel:A(`squirrel`,60248),starFull:A(`star-full`,60249),starHalf:A(`star-half`,60250),symbolClass:A(`symbol-class`,60251),symbolColor:A(`symbol-color`,60252),symbolConstant:A(`symbol-constant`,60253),symbolEnumMember:A(`symbol-enum-member`,60254),symbolField:A(`symbol-field`,60255),symbolFile:A(`symbol-file`,60256),symbolInterface:A(`symbol-interface`,60257),symbolKeyword:A(`symbol-keyword`,60258),symbolMisc:A(`symbol-misc`,60259),symbolOperator:A(`symbol-operator`,60260),symbolProperty:A(`symbol-property`,60261),wrench:A(`wrench`,60261),wrenchSubaction:A(`wrench-subaction`,60261),symbolSnippet:A(`symbol-snippet`,60262),tasklist:A(`tasklist`,60263),telescope:A(`telescope`,60264),textSize:A(`text-size`,60265),threeBars:A(`three-bars`,60266),thumbsdown:A(`thumbsdown`,60267),thumbsup:A(`thumbsup`,60268),tools:A(`tools`,60269),triangleDown:A(`triangle-down`,60270),triangleLeft:A(`triangle-left`,60271),triangleRight:A(`triangle-right`,60272),triangleUp:A(`triangle-up`,60273),twitter:A(`twitter`,60274),unfold:A(`unfold`,60275),unlock:A(`unlock`,60276),unmute:A(`unmute`,60277),unverified:A(`unverified`,60278),verified:A(`verified`,60279),versions:A(`versions`,60280),vmActive:A(`vm-active`,60281),vmOutline:A(`vm-outline`,60282),vmRunning:A(`vm-running`,60283),watch:A(`watch`,60284),whitespace:A(`whitespace`,60285),wholeWord:A(`whole-word`,60286),window:A(`window`,60287),wordWrap:A(`word-wrap`,60288),zoomIn:A(`zoom-in`,60289),zoomOut:A(`zoom-out`,60290),listFilter:A(`list-filter`,60291),listFlat:A(`list-flat`,60292),listSelection:A(`list-selection`,60293),selection:A(`selection`,60293),listTree:A(`list-tree`,60294),debugBreakpointFunctionUnverified:A(`debug-breakpoint-function-unverified`,60295),debugBreakpointFunction:A(`debug-breakpoint-function`,60296),debugBreakpointFunctionDisabled:A(`debug-breakpoint-function-disabled`,60296),debugStackframeActive:A(`debug-stackframe-active`,60297),circleSmallFilled:A(`circle-small-filled`,60298),debugStackframeDot:A(`debug-stackframe-dot`,60298),terminalDecorationMark:A(`terminal-decoration-mark`,60298),debugStackframe:A(`debug-stackframe`,60299),debugStackframeFocused:A(`debug-stackframe-focused`,60299),debugBreakpointUnsupported:A(`debug-breakpoint-unsupported`,60300),symbolString:A(`symbol-string`,60301),debugReverseContinue:A(`debug-reverse-continue`,60302),debugStepBack:A(`debug-step-back`,60303),debugRestartFrame:A(`debug-restart-frame`,60304),debugAlt:A(`debug-alt`,60305),callIncoming:A(`call-incoming`,60306),callOutgoing:A(`call-outgoing`,60307),menu:A(`menu`,60308),expandAll:A(`expand-all`,60309),feedback:A(`feedback`,60310),gitPullRequestReviewer:A(`git-pull-request-reviewer`,60310),groupByRefType:A(`group-by-ref-type`,60311),ungroupByRefType:A(`ungroup-by-ref-type`,60312),account:A(`account`,60313),gitPullRequestAssignee:A(`git-pull-request-assignee`,60313),bellDot:A(`bell-dot`,60314),debugConsole:A(`debug-console`,60315),library:A(`library`,60316),output:A(`output`,60317),runAll:A(`run-all`,60318),syncIgnored:A(`sync-ignored`,60319),pinned:A(`pinned`,60320),githubInverted:A(`github-inverted`,60321),serverProcess:A(`server-process`,60322),serverEnvironment:A(`server-environment`,60323),pass:A(`pass`,60324),issueClosed:A(`issue-closed`,60324),stopCircle:A(`stop-circle`,60325),playCircle:A(`play-circle`,60326),record:A(`record`,60327),debugAltSmall:A(`debug-alt-small`,60328),vmConnect:A(`vm-connect`,60329),cloud:A(`cloud`,60330),merge:A(`merge`,60331),export:A(`export`,60332),graphLeft:A(`graph-left`,60333),magnet:A(`magnet`,60334),notebook:A(`notebook`,60335),redo:A(`redo`,60336),checkAll:A(`check-all`,60337),pinnedDirty:A(`pinned-dirty`,60338),passFilled:A(`pass-filled`,60339),circleLargeFilled:A(`circle-large-filled`,60340),circleLarge:A(`circle-large`,60341),circleLargeOutline:A(`circle-large-outline`,60341),combine:A(`combine`,60342),gather:A(`gather`,60342),table:A(`table`,60343),variableGroup:A(`variable-group`,60344),typeHierarchy:A(`type-hierarchy`,60345),typeHierarchySub:A(`type-hierarchy-sub`,60346),typeHierarchySuper:A(`type-hierarchy-super`,60347),gitPullRequestCreate:A(`git-pull-request-create`,60348),runAbove:A(`run-above`,60349),runBelow:A(`run-below`,60350),notebookTemplate:A(`notebook-template`,60351),debugRerun:A(`debug-rerun`,60352),workspaceTrusted:A(`workspace-trusted`,60353),workspaceUntrusted:A(`workspace-untrusted`,60354),workspaceUnknown:A(`workspace-unknown`,60355),terminalCmd:A(`terminal-cmd`,60356),terminalDebian:A(`terminal-debian`,60357),terminalLinux:A(`terminal-linux`,60358),terminalPowershell:A(`terminal-powershell`,60359),terminalTmux:A(`terminal-tmux`,60360),terminalUbuntu:A(`terminal-ubuntu`,60361),terminalBash:A(`terminal-bash`,60362),arrowSwap:A(`arrow-swap`,60363),copy:A(`copy`,60364),personAdd:A(`person-add`,60365),filterFilled:A(`filter-filled`,60366),wand:A(`wand`,60367),debugLineByLine:A(`debug-line-by-line`,60368),inspect:A(`inspect`,60369),layers:A(`layers`,60370),layersDot:A(`layers-dot`,60371),layersActive:A(`layers-active`,60372),compass:A(`compass`,60373),compassDot:A(`compass-dot`,60374),compassActive:A(`compass-active`,60375),azure:A(`azure`,60376),issueDraft:A(`issue-draft`,60377),gitPullRequestClosed:A(`git-pull-request-closed`,60378),gitPullRequestDraft:A(`git-pull-request-draft`,60379),debugAll:A(`debug-all`,60380),debugCoverage:A(`debug-coverage`,60381),runErrors:A(`run-errors`,60382),folderLibrary:A(`folder-library`,60383),debugContinueSmall:A(`debug-continue-small`,60384),beakerStop:A(`beaker-stop`,60385),graphLine:A(`graph-line`,60386),graphScatter:A(`graph-scatter`,60387),pieChart:A(`pie-chart`,60388),bracket:A(`bracket`,60175),bracketDot:A(`bracket-dot`,60389),bracketError:A(`bracket-error`,60390),lockSmall:A(`lock-small`,60391),azureDevops:A(`azure-devops`,60392),verifiedFilled:A(`verified-filled`,60393),newline:A(`newline`,60394),layout:A(`layout`,60395),layoutActivitybarLeft:A(`layout-activitybar-left`,60396),layoutActivitybarRight:A(`layout-activitybar-right`,60397),layoutPanelLeft:A(`layout-panel-left`,60398),layoutPanelCenter:A(`layout-panel-center`,60399),layoutPanelJustify:A(`layout-panel-justify`,60400),layoutPanelRight:A(`layout-panel-right`,60401),layoutPanel:A(`layout-panel`,60402),layoutSidebarLeft:A(`layout-sidebar-left`,60403),layoutSidebarRight:A(`layout-sidebar-right`,60404),layoutStatusbar:A(`layout-statusbar`,60405),layoutMenubar:A(`layout-menubar`,60406),layoutCentered:A(`layout-centered`,60407),target:A(`target`,60408),indent:A(`indent`,60409),recordSmall:A(`record-small`,60410),errorSmall:A(`error-small`,60411),terminalDecorationError:A(`terminal-decoration-error`,60411),arrowCircleDown:A(`arrow-circle-down`,60412),arrowCircleLeft:A(`arrow-circle-left`,60413),arrowCircleRight:A(`arrow-circle-right`,60414),arrowCircleUp:A(`arrow-circle-up`,60415),layoutSidebarRightOff:A(`layout-sidebar-right-off`,60416),layoutPanelOff:A(`layout-panel-off`,60417),layoutSidebarLeftOff:A(`layout-sidebar-left-off`,60418),blank:A(`blank`,60419),heartFilled:A(`heart-filled`,60420),map:A(`map`,60421),mapHorizontal:A(`map-horizontal`,60421),foldHorizontal:A(`fold-horizontal`,60421),mapFilled:A(`map-filled`,60422),mapHorizontalFilled:A(`map-horizontal-filled`,60422),foldHorizontalFilled:A(`fold-horizontal-filled`,60422),circleSmall:A(`circle-small`,60423),bellSlash:A(`bell-slash`,60424),bellSlashDot:A(`bell-slash-dot`,60425),commentUnresolved:A(`comment-unresolved`,60426),gitPullRequestGoToChanges:A(`git-pull-request-go-to-changes`,60427),gitPullRequestNewChanges:A(`git-pull-request-new-changes`,60428),searchFuzzy:A(`search-fuzzy`,60429),commentDraft:A(`comment-draft`,60430),send:A(`send`,60431),sparkle:A(`sparkle`,60432),insert:A(`insert`,60433),mic:A(`mic`,60434),thumbsdownFilled:A(`thumbsdown-filled`,60435),thumbsupFilled:A(`thumbsup-filled`,60436),coffee:A(`coffee`,60437),snake:A(`snake`,60438),game:A(`game`,60439),vr:A(`vr`,60440),chip:A(`chip`,60441),piano:A(`piano`,60442),music:A(`music`,60443),micFilled:A(`mic-filled`,60444),repoFetch:A(`repo-fetch`,60445),copilot:A(`copilot`,60446),lightbulbSparkle:A(`lightbulb-sparkle`,60447),robot:A(`robot`,60448),sparkleFilled:A(`sparkle-filled`,60449),diffSingle:A(`diff-single`,60450),diffMultiple:A(`diff-multiple`,60451),surroundWith:A(`surround-with`,60452),share:A(`share`,60453),gitStash:A(`git-stash`,60454),gitStashApply:A(`git-stash-apply`,60455),gitStashPop:A(`git-stash-pop`,60456),vscode:A(`vscode`,60457),vscodeInsiders:A(`vscode-insiders`,60458),codeOss:A(`code-oss`,60459),runCoverage:A(`run-coverage`,60460),runAllCoverage:A(`run-all-coverage`,60461),coverage:A(`coverage`,60462),githubProject:A(`github-project`,60463),mapVertical:A(`map-vertical`,60464),foldVertical:A(`fold-vertical`,60464),mapVerticalFilled:A(`map-vertical-filled`,60465),foldVerticalFilled:A(`fold-vertical-filled`,60465),goToSearch:A(`go-to-search`,60466),percentage:A(`percentage`,60467),sortPercentage:A(`sort-percentage`,60467),attach:A(`attach`,60468),goToEditingSession:A(`go-to-editing-session`,60469),editSession:A(`edit-session`,60470),codeReview:A(`code-review`,60471),copilotWarning:A(`copilot-warning`,60472),python:A(`python`,60473),copilotLarge:A(`copilot-large`,60474),copilotWarningLarge:A(`copilot-warning-large`,60475),keyboardTab:A(`keyboard-tab`,60476),copilotBlocked:A(`copilot-blocked`,60477),copilotNotConnected:A(`copilot-not-connected`,60478),flag:A(`flag`,60479),lightbulbEmpty:A(`lightbulb-empty`,60480),symbolMethodArrow:A(`symbol-method-arrow`,60481),copilotUnavailable:A(`copilot-unavailable`,60482),repoPinned:A(`repo-pinned`,60483),keyboardTabAbove:A(`keyboard-tab-above`,60484),keyboardTabBelow:A(`keyboard-tab-below`,60485),gitPullRequestDone:A(`git-pull-request-done`,60486),mcp:A(`mcp`,60487),extensionsLarge:A(`extensions-large`,60488),layoutPanelDock:A(`layout-panel-dock`,60489),layoutSidebarLeftDock:A(`layout-sidebar-left-dock`,60490),layoutSidebarRightDock:A(`layout-sidebar-right-dock`,60491),copilotInProgress:A(`copilot-in-progress`,60492),copilotError:A(`copilot-error`,60493),copilotSuccess:A(`copilot-success`,60494),chatSparkle:A(`chat-sparkle`,60495),searchSparkle:A(`search-sparkle`,60496),editSparkle:A(`edit-sparkle`,60497),copilotSnooze:A(`copilot-snooze`,60498),sendToRemoteAgent:A(`send-to-remote-agent`,60499),commentDiscussionSparkle:A(`comment-discussion-sparkle`,60500),chatSparkleWarning:A(`chat-sparkle-warning`,60501),chatSparkleError:A(`chat-sparkle-error`,60502),collection:A(`collection`,60503),newCollection:A(`new-collection`,60504),thinking:A(`thinking`,60505),build:A(`build`,60506),commentDiscussionQuote:A(`comment-discussion-quote`,60507),cursor:A(`cursor`,60508),eraser:A(`eraser`,60509),fileText:A(`file-text`,60510),gitLens:A(`git-lens`,60511),quotes:A(`quotes`,60512),rename:A(`rename`,60513),runWithDeps:A(`run-with-deps`,60514),debugConnected:A(`debug-connected`,60515),strikethrough:A(`strikethrough`,60516),openInProduct:A(`open-in-product`,60517),indexZero:A(`index-zero`,60518),agent:A(`agent`,60519),editCode:A(`edit-code`,60520),repoSelected:A(`repo-selected`,60521),skip:A(`skip`,60522),mergeInto:A(`merge-into`,60523),gitBranchChanges:A(`git-branch-changes`,60524),gitBranchStagedChanges:A(`git-branch-staged-changes`,60525),gitBranchConflicts:A(`git-branch-conflicts`,60526),gitBranch:A(`git-branch`,60527),gitBranchCreate:A(`git-branch-create`,60527),gitBranchDelete:A(`git-branch-delete`,60527),searchLarge:A(`search-large`,60528),terminalGitBash:A(`terminal-git-bash`,60529)},Mn={dialogError:A(`dialog-error`,`error`),dialogWarning:A(`dialog-warning`,`warning`),dialogInfo:A(`dialog-info`,`info`),dialogClose:A(`dialog-close`,`close`),treeItemExpanded:A(`tree-item-expanded`,`chevron-down`),treeFilterOnTypeOn:A(`tree-filter-on-type-on`,`list-filter`),treeFilterOnTypeOff:A(`tree-filter-on-type-off`,`list-selection`),treeFilterClear:A(`tree-filter-clear`,`close`),treeItemLoading:A(`tree-item-loading`,`loading`),menuSelection:A(`menu-selection`,`check`),menuSubmenu:A(`menu-submenu`,`chevron-right`),menuBarMore:A(`menubar-more`,`more`),scrollbarButtonLeft:A(`scrollbar-button-left`,`triangle-left`),scrollbarButtonRight:A(`scrollbar-button-right`,`triangle-right`),scrollbarButtonUp:A(`scrollbar-button-up`,`triangle-up`),scrollbarButtonDown:A(`scrollbar-button-down`,`triangle-down`),toolBarMore:A(`toolbar-more`,`more`),quickInputBack:A(`quick-input-back`,`arrow-left`),dropDownButton:A(`drop-down-button`,60084),symbolCustomColor:A(`symbol-customcolor`,60252),exportIcon:A(`export`,60332),workspaceUnspecified:A(`workspace-unspecified`,60355),newLine:A(`newline`,60394),thumbsDownFilled:A(`thumbsdown-filled`,60435),thumbsUpFilled:A(`thumbsup-filled`,60436),gitFetch:A(`git-fetch`,60445),lightbulbSparkleAutofix:A(`lightbulb-sparkle-autofix`,60447),debugBreakpointPending:A(`debug-breakpoint-pending`,60377)},j={...jn,...Mn};var Nn=class{constructor(){this._tokenizationSupports=/* @__PURE__ */ new Map,this._factories=/* @__PURE__ */ new Map,this._onDidChange=new oe,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),_(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new Pn(this,e,t);return this._factories.set(e,n),_(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Pn=class extends y{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||=this._create(),this._resolvePromise}async _create(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}},Fn=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return`(`+this.offset+`, `+this.type+`)`}},In;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(In||={});var Ln;(function(e){let t=/* @__PURE__ */ new Map;t.set(0,j.symbolMethod),t.set(1,j.symbolFunction),t.set(2,j.symbolConstructor),t.set(3,j.symbolField),t.set(4,j.symbolVariable),t.set(5,j.symbolClass),t.set(6,j.symbolStruct),t.set(7,j.symbolInterface),t.set(8,j.symbolModule),t.set(9,j.symbolProperty),t.set(10,j.symbolEvent),t.set(11,j.symbolOperator),t.set(12,j.symbolUnit),t.set(13,j.symbolValue),t.set(15,j.symbolEnum),t.set(14,j.symbolConstant),t.set(15,j.symbolEnum),t.set(16,j.symbolEnumMember),t.set(17,j.symbolKeyword),t.set(28,j.symbolSnippet),t.set(18,j.symbolText),t.set(19,j.symbolColor),t.set(20,j.symbolFile),t.set(21,j.symbolReference),t.set(22,j.symbolCustomColor),t.set(23,j.symbolFolder),t.set(24,j.symbolTypeParameter),t.set(25,j.account),t.set(26,j.issues),t.set(27,j.tools);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for CompletionItemKind `+e),j.symbolProperty),n}e.toIcon=n;function r(e){switch(e){case 0:return T(728,`Method`);case 1:return T(729,`Function`);case 2:return T(730,`Constructor`);case 3:return T(731,`Field`);case 4:return T(732,`Variable`);case 5:return T(733,`Class`);case 6:return T(734,`Struct`);case 7:return T(735,`Interface`);case 8:return T(736,`Module`);case 9:return T(737,`Property`);case 10:return T(738,`Event`);case 11:return T(739,`Operator`);case 12:return T(740,`Unit`);case 13:return T(741,`Value`);case 14:return T(742,`Constant`);case 15:return T(743,`Enum`);case 16:return T(744,`Enum Member`);case 17:return T(745,`Keyword`);case 18:return T(746,`Text`);case 19:return T(747,`Color`);case 20:return T(748,`File`);case 21:return T(749,`Reference`);case 22:return T(750,`Custom Color`);case 23:return T(751,`Folder`);case 24:return T(752,`Type Parameter`);case 25:return T(753,`User`);case 26:return T(754,`Issue`);case 27:return T(755,`Tool`);case 28:return T(756,`Snippet`);default:return``}}e.toLabel=r;let i=/* @__PURE__ */ new Map;i.set(`method`,0),i.set(`function`,1),i.set(`constructor`,2),i.set(`field`,3),i.set(`variable`,4),i.set(`class`,5),i.set(`struct`,6),i.set(`interface`,7),i.set(`module`,8),i.set(`property`,9),i.set(`event`,10),i.set(`operator`,11),i.set(`unit`,12),i.set(`value`,13),i.set(`constant`,14),i.set(`enum`,15),i.set(`enum-member`,16),i.set(`enumMember`,16),i.set(`keyword`,17),i.set(`snippet`,28),i.set(`text`,18),i.set(`color`,19),i.set(`file`,20),i.set(`reference`,21),i.set(`customcolor`,22),i.set(`folder`,23),i.set(`type-parameter`,24),i.set(`typeParameter`,24),i.set(`account`,25),i.set(`issue`,26),i.set(`tool`,27);function a(e,t){let n=i.get(e);return n===void 0&&!t&&(n=9),n}e.fromString=a})(Ln||={});var Rn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(Rn||={});var zn;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(zn||={});var Bn;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(Bn||={});var Vn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.PasteAs=1]=`PasteAs`})(Vn||={});var Hn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Hn||={});var Un;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(Un||={}),T(757,`array`),T(758,`boolean`),T(759,`class`),T(760,`constant`),T(761,`constructor`),T(762,`enumeration`),T(763,`enumeration member`),T(764,`event`),T(765,`field`),T(766,`file`),T(767,`function`),T(768,`interface`),T(769,`key`),T(770,`method`),T(771,`module`),T(772,`namespace`),T(773,`null`),T(774,`number`),T(775,`object`),T(776,`operator`),T(777,`package`),T(778,`property`),T(779,`string`),T(780,`struct`),T(781,`type parameter`),T(782,`variable`);var Wn;(function(e){let t=/* @__PURE__ */ new Map;t.set(0,j.symbolFile),t.set(1,j.symbolModule),t.set(2,j.symbolNamespace),t.set(3,j.symbolPackage),t.set(4,j.symbolClass),t.set(5,j.symbolMethod),t.set(6,j.symbolProperty),t.set(7,j.symbolField),t.set(8,j.symbolConstructor),t.set(9,j.symbolEnum),t.set(10,j.symbolInterface),t.set(11,j.symbolFunction),t.set(12,j.symbolVariable),t.set(13,j.symbolConstant),t.set(14,j.symbolString),t.set(15,j.symbolNumber),t.set(16,j.symbolBoolean),t.set(17,j.symbolArray),t.set(18,j.symbolObject),t.set(19,j.symbolKey),t.set(20,j.symbolNull),t.set(21,j.symbolEnumMember),t.set(22,j.symbolStruct),t.set(23,j.symbolEvent),t.set(24,j.symbolOperator),t.set(25,j.symbolTypeParameter);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for SymbolKind `+e),j.symbolProperty),n}e.toIcon=n;let r=/* @__PURE__ */ new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(e){let t=r.get(e);return t===void 0&&(console.info(`No completion kind found for SymbolKind `+e),t=20),t}e.toCompletionKind=i})(Wn||={}),class e{static{this.Comment=new e(`comment`)}static{this.Imports=new e(`imports`)}static{this.Region=new e(`region`)}static fromValue(t){switch(t){case`comment`:return e.Comment;case`imports`:return e.Imports;case`region`:return e.Region}return new e(t)}constructor(e){this.value=e}};var Gn;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Gn||={});var Kn;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(Kn||={});var qn;(function(e){function t(e){return!e||typeof e!=`object`?!1:typeof e.id==`string`&&typeof e.title==`string`}e.is=t})(qn||={});var Jn;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(Jn||={}),new Nn;var Yn;(function(e){e[e.Unknown=0]=`Unknown`,e[e.Disabled=1]=`Disabled`,e[e.Enabled=2]=`Enabled`})(Yn||={});var Xn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.Auto=2]=`Auto`})(Xn||={});var Zn;(function(e){e[e.None=0]=`None`,e[e.KeepWhitespace=1]=`KeepWhitespace`,e[e.InsertAsSnippet=4]=`InsertAsSnippet`})(Zn||={});var Qn;(function(e){e[e.Method=0]=`Method`,e[e.Function=1]=`Function`,e[e.Constructor=2]=`Constructor`,e[e.Field=3]=`Field`,e[e.Variable=4]=`Variable`,e[e.Class=5]=`Class`,e[e.Struct=6]=`Struct`,e[e.Interface=7]=`Interface`,e[e.Module=8]=`Module`,e[e.Property=9]=`Property`,e[e.Event=10]=`Event`,e[e.Operator=11]=`Operator`,e[e.Unit=12]=`Unit`,e[e.Value=13]=`Value`,e[e.Constant=14]=`Constant`,e[e.Enum=15]=`Enum`,e[e.EnumMember=16]=`EnumMember`,e[e.Keyword=17]=`Keyword`,e[e.Text=18]=`Text`,e[e.Color=19]=`Color`,e[e.File=20]=`File`,e[e.Reference=21]=`Reference`,e[e.Customcolor=22]=`Customcolor`,e[e.Folder=23]=`Folder`,e[e.TypeParameter=24]=`TypeParameter`,e[e.User=25]=`User`,e[e.Issue=26]=`Issue`,e[e.Tool=27]=`Tool`,e[e.Snippet=28]=`Snippet`})(Qn||={});var $n;(function(e){e[e.Deprecated=1]=`Deprecated`})($n||={});var er;(function(e){e[e.Invoke=0]=`Invoke`,e[e.TriggerCharacter=1]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=2]=`TriggerForIncompleteCompletions`})(er||={});var tr;(function(e){e[e.EXACT=0]=`EXACT`,e[e.ABOVE=1]=`ABOVE`,e[e.BELOW=2]=`BELOW`})(tr||={});var nr;(function(e){e[e.NotSet=0]=`NotSet`,e[e.ContentFlush=1]=`ContentFlush`,e[e.RecoverFromMarkers=2]=`RecoverFromMarkers`,e[e.Explicit=3]=`Explicit`,e[e.Paste=4]=`Paste`,e[e.Undo=5]=`Undo`,e[e.Redo=6]=`Redo`})(nr||={});var rr;(function(e){e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(rr||={});var ir;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(ir||={});var ar;(function(e){e[e.None=0]=`None`,e[e.Keep=1]=`Keep`,e[e.Brackets=2]=`Brackets`,e[e.Advanced=3]=`Advanced`,e[e.Full=4]=`Full`})(ar||={});var or;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]=`acceptSuggestionOnCommitCharacter`,e[e.acceptSuggestionOnEnter=1]=`acceptSuggestionOnEnter`,e[e.accessibilitySupport=2]=`accessibilitySupport`,e[e.accessibilityPageSize=3]=`accessibilityPageSize`,e[e.allowOverflow=4]=`allowOverflow`,e[e.allowVariableLineHeights=5]=`allowVariableLineHeights`,e[e.allowVariableFonts=6]=`allowVariableFonts`,e[e.allowVariableFontsInAccessibilityMode=7]=`allowVariableFontsInAccessibilityMode`,e[e.ariaLabel=8]=`ariaLabel`,e[e.ariaRequired=9]=`ariaRequired`,e[e.autoClosingBrackets=10]=`autoClosingBrackets`,e[e.autoClosingComments=11]=`autoClosingComments`,e[e.screenReaderAnnounceInlineSuggestion=12]=`screenReaderAnnounceInlineSuggestion`,e[e.autoClosingDelete=13]=`autoClosingDelete`,e[e.autoClosingOvertype=14]=`autoClosingOvertype`,e[e.autoClosingQuotes=15]=`autoClosingQuotes`,e[e.autoIndent=16]=`autoIndent`,e[e.autoIndentOnPaste=17]=`autoIndentOnPaste`,e[e.autoIndentOnPasteWithinString=18]=`autoIndentOnPasteWithinString`,e[e.automaticLayout=19]=`automaticLayout`,e[e.autoSurround=20]=`autoSurround`,e[e.bracketPairColorization=21]=`bracketPairColorization`,e[e.guides=22]=`guides`,e[e.codeLens=23]=`codeLens`,e[e.codeLensFontFamily=24]=`codeLensFontFamily`,e[e.codeLensFontSize=25]=`codeLensFontSize`,e[e.colorDecorators=26]=`colorDecorators`,e[e.colorDecoratorsLimit=27]=`colorDecoratorsLimit`,e[e.columnSelection=28]=`columnSelection`,e[e.comments=29]=`comments`,e[e.contextmenu=30]=`contextmenu`,e[e.copyWithSyntaxHighlighting=31]=`copyWithSyntaxHighlighting`,e[e.cursorBlinking=32]=`cursorBlinking`,e[e.cursorSmoothCaretAnimation=33]=`cursorSmoothCaretAnimation`,e[e.cursorStyle=34]=`cursorStyle`,e[e.cursorSurroundingLines=35]=`cursorSurroundingLines`,e[e.cursorSurroundingLinesStyle=36]=`cursorSurroundingLinesStyle`,e[e.cursorWidth=37]=`cursorWidth`,e[e.cursorHeight=38]=`cursorHeight`,e[e.disableLayerHinting=39]=`disableLayerHinting`,e[e.disableMonospaceOptimizations=40]=`disableMonospaceOptimizations`,e[e.domReadOnly=41]=`domReadOnly`,e[e.dragAndDrop=42]=`dragAndDrop`,e[e.dropIntoEditor=43]=`dropIntoEditor`,e[e.editContext=44]=`editContext`,e[e.emptySelectionClipboard=45]=`emptySelectionClipboard`,e[e.experimentalGpuAcceleration=46]=`experimentalGpuAcceleration`,e[e.experimentalWhitespaceRendering=47]=`experimentalWhitespaceRendering`,e[e.extraEditorClassName=48]=`extraEditorClassName`,e[e.fastScrollSensitivity=49]=`fastScrollSensitivity`,e[e.find=50]=`find`,e[e.fixedOverflowWidgets=51]=`fixedOverflowWidgets`,e[e.folding=52]=`folding`,e[e.foldingStrategy=53]=`foldingStrategy`,e[e.foldingHighlight=54]=`foldingHighlight`,e[e.foldingImportsByDefault=55]=`foldingImportsByDefault`,e[e.foldingMaximumRegions=56]=`foldingMaximumRegions`,e[e.unfoldOnClickAfterEndOfLine=57]=`unfoldOnClickAfterEndOfLine`,e[e.fontFamily=58]=`fontFamily`,e[e.fontInfo=59]=`fontInfo`,e[e.fontLigatures=60]=`fontLigatures`,e[e.fontSize=61]=`fontSize`,e[e.fontWeight=62]=`fontWeight`,e[e.fontVariations=63]=`fontVariations`,e[e.formatOnPaste=64]=`formatOnPaste`,e[e.formatOnType=65]=`formatOnType`,e[e.glyphMargin=66]=`glyphMargin`,e[e.gotoLocation=67]=`gotoLocation`,e[e.hideCursorInOverviewRuler=68]=`hideCursorInOverviewRuler`,e[e.hover=69]=`hover`,e[e.inDiffEditor=70]=`inDiffEditor`,e[e.inlineSuggest=71]=`inlineSuggest`,e[e.letterSpacing=72]=`letterSpacing`,e[e.lightbulb=73]=`lightbulb`,e[e.lineDecorationsWidth=74]=`lineDecorationsWidth`,e[e.lineHeight=75]=`lineHeight`,e[e.lineNumbers=76]=`lineNumbers`,e[e.lineNumbersMinChars=77]=`lineNumbersMinChars`,e[e.linkedEditing=78]=`linkedEditing`,e[e.links=79]=`links`,e[e.matchBrackets=80]=`matchBrackets`,e[e.minimap=81]=`minimap`,e[e.mouseStyle=82]=`mouseStyle`,e[e.mouseWheelScrollSensitivity=83]=`mouseWheelScrollSensitivity`,e[e.mouseWheelZoom=84]=`mouseWheelZoom`,e[e.multiCursorMergeOverlapping=85]=`multiCursorMergeOverlapping`,e[e.multiCursorModifier=86]=`multiCursorModifier`,e[e.mouseMiddleClickAction=87]=`mouseMiddleClickAction`,e[e.multiCursorPaste=88]=`multiCursorPaste`,e[e.multiCursorLimit=89]=`multiCursorLimit`,e[e.occurrencesHighlight=90]=`occurrencesHighlight`,e[e.occurrencesHighlightDelay=91]=`occurrencesHighlightDelay`,e[e.overtypeCursorStyle=92]=`overtypeCursorStyle`,e[e.overtypeOnPaste=93]=`overtypeOnPaste`,e[e.overviewRulerBorder=94]=`overviewRulerBorder`,e[e.overviewRulerLanes=95]=`overviewRulerLanes`,e[e.padding=96]=`padding`,e[e.pasteAs=97]=`pasteAs`,e[e.parameterHints=98]=`parameterHints`,e[e.peekWidgetDefaultFocus=99]=`peekWidgetDefaultFocus`,e[e.placeholder=100]=`placeholder`,e[e.definitionLinkOpensInPeek=101]=`definitionLinkOpensInPeek`,e[e.quickSuggestions=102]=`quickSuggestions`,e[e.quickSuggestionsDelay=103]=`quickSuggestionsDelay`,e[e.readOnly=104]=`readOnly`,e[e.readOnlyMessage=105]=`readOnlyMessage`,e[e.renameOnType=106]=`renameOnType`,e[e.renderRichScreenReaderContent=107]=`renderRichScreenReaderContent`,e[e.renderControlCharacters=108]=`renderControlCharacters`,e[e.renderFinalNewline=109]=`renderFinalNewline`,e[e.renderLineHighlight=110]=`renderLineHighlight`,e[e.renderLineHighlightOnlyWhenFocus=111]=`renderLineHighlightOnlyWhenFocus`,e[e.renderValidationDecorations=112]=`renderValidationDecorations`,e[e.renderWhitespace=113]=`renderWhitespace`,e[e.revealHorizontalRightPadding=114]=`revealHorizontalRightPadding`,e[e.roundedSelection=115]=`roundedSelection`,e[e.rulers=116]=`rulers`,e[e.scrollbar=117]=`scrollbar`,e[e.scrollBeyondLastColumn=118]=`scrollBeyondLastColumn`,e[e.scrollBeyondLastLine=119]=`scrollBeyondLastLine`,e[e.scrollPredominantAxis=120]=`scrollPredominantAxis`,e[e.selectionClipboard=121]=`selectionClipboard`,e[e.selectionHighlight=122]=`selectionHighlight`,e[e.selectionHighlightMaxLength=123]=`selectionHighlightMaxLength`,e[e.selectionHighlightMultiline=124]=`selectionHighlightMultiline`,e[e.selectOnLineNumbers=125]=`selectOnLineNumbers`,e[e.showFoldingControls=126]=`showFoldingControls`,e[e.showUnused=127]=`showUnused`,e[e.snippetSuggestions=128]=`snippetSuggestions`,e[e.smartSelect=129]=`smartSelect`,e[e.smoothScrolling=130]=`smoothScrolling`,e[e.stickyScroll=131]=`stickyScroll`,e[e.stickyTabStops=132]=`stickyTabStops`,e[e.stopRenderingLineAfter=133]=`stopRenderingLineAfter`,e[e.suggest=134]=`suggest`,e[e.suggestFontSize=135]=`suggestFontSize`,e[e.suggestLineHeight=136]=`suggestLineHeight`,e[e.suggestOnTriggerCharacters=137]=`suggestOnTriggerCharacters`,e[e.suggestSelection=138]=`suggestSelection`,e[e.tabCompletion=139]=`tabCompletion`,e[e.tabIndex=140]=`tabIndex`,e[e.trimWhitespaceOnDelete=141]=`trimWhitespaceOnDelete`,e[e.unicodeHighlighting=142]=`unicodeHighlighting`,e[e.unusualLineTerminators=143]=`unusualLineTerminators`,e[e.useShadowDOM=144]=`useShadowDOM`,e[e.useTabStops=145]=`useTabStops`,e[e.wordBreak=146]=`wordBreak`,e[e.wordSegmenterLocales=147]=`wordSegmenterLocales`,e[e.wordSeparators=148]=`wordSeparators`,e[e.wordWrap=149]=`wordWrap`,e[e.wordWrapBreakAfterCharacters=150]=`wordWrapBreakAfterCharacters`,e[e.wordWrapBreakBeforeCharacters=151]=`wordWrapBreakBeforeCharacters`,e[e.wordWrapColumn=152]=`wordWrapColumn`,e[e.wordWrapOverride1=153]=`wordWrapOverride1`,e[e.wordWrapOverride2=154]=`wordWrapOverride2`,e[e.wrappingIndent=155]=`wrappingIndent`,e[e.wrappingStrategy=156]=`wrappingStrategy`,e[e.showDeprecated=157]=`showDeprecated`,e[e.inertialScroll=158]=`inertialScroll`,e[e.inlayHints=159]=`inlayHints`,e[e.wrapOnEscapedLineFeeds=160]=`wrapOnEscapedLineFeeds`,e[e.effectiveCursorStyle=161]=`effectiveCursorStyle`,e[e.editorClassName=162]=`editorClassName`,e[e.pixelRatio=163]=`pixelRatio`,e[e.tabFocusMode=164]=`tabFocusMode`,e[e.layoutInfo=165]=`layoutInfo`,e[e.wrappingInfo=166]=`wrappingInfo`,e[e.defaultColorDecorators=167]=`defaultColorDecorators`,e[e.colorDecoratorsActivatedOn=168]=`colorDecoratorsActivatedOn`,e[e.inlineCompletionsAccessibilityVerbose=169]=`inlineCompletionsAccessibilityVerbose`,e[e.effectiveEditContext=170]=`effectiveEditContext`,e[e.scrollOnMiddleClick=171]=`scrollOnMiddleClick`,e[e.effectiveAllowVariableFonts=172]=`effectiveAllowVariableFonts`})(or||={});var sr;(function(e){e[e.TextDefined=0]=`TextDefined`,e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(sr||={});var cr;(function(e){e[e.LF=0]=`LF`,e[e.CRLF=1]=`CRLF`})(cr||={});var lr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(lr||={});var ur;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(ur||={});var dr;(function(e){e[e.None=0]=`None`,e[e.Indent=1]=`Indent`,e[e.IndentOutdent=2]=`IndentOutdent`,e[e.Outdent=3]=`Outdent`})(dr||={});var fr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(fr||={});var pr;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(pr||={});var mr;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(mr||={});var hr;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(hr||={});var gr;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(gr||={});var _r;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(_r||={});var vr;(function(e){e[e.Hint=1]=`Hint`,e[e.Info=2]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=8]=`Error`})(vr||={});var yr;(function(e){e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`})(yr||={});var br;(function(e){e[e.Inline=1]=`Inline`,e[e.Gutter=2]=`Gutter`})(br||={});var xr;(function(e){e[e.Normal=1]=`Normal`,e[e.Underlined=2]=`Underlined`})(xr||={});var Sr;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.TEXTAREA=1]=`TEXTAREA`,e[e.GUTTER_GLYPH_MARGIN=2]=`GUTTER_GLYPH_MARGIN`,e[e.GUTTER_LINE_NUMBERS=3]=`GUTTER_LINE_NUMBERS`,e[e.GUTTER_LINE_DECORATIONS=4]=`GUTTER_LINE_DECORATIONS`,e[e.GUTTER_VIEW_ZONE=5]=`GUTTER_VIEW_ZONE`,e[e.CONTENT_TEXT=6]=`CONTENT_TEXT`,e[e.CONTENT_EMPTY=7]=`CONTENT_EMPTY`,e[e.CONTENT_VIEW_ZONE=8]=`CONTENT_VIEW_ZONE`,e[e.CONTENT_WIDGET=9]=`CONTENT_WIDGET`,e[e.OVERVIEW_RULER=10]=`OVERVIEW_RULER`,e[e.SCROLLBAR=11]=`SCROLLBAR`,e[e.OVERLAY_WIDGET=12]=`OVERLAY_WIDGET`,e[e.OUTSIDE_EDITOR=13]=`OUTSIDE_EDITOR`})(Sr||={});var Cr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Cr||={});var wr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(wr||={});var Tr;(function(e){e[e.TOP_RIGHT_CORNER=0]=`TOP_RIGHT_CORNER`,e[e.BOTTOM_RIGHT_CORNER=1]=`BOTTOM_RIGHT_CORNER`,e[e.TOP_CENTER=2]=`TOP_CENTER`})(Tr||={});var Er;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(Er||={});var Dr;(function(e){e[e.Word=0]=`Word`,e[e.Line=1]=`Line`,e[e.Suggest=2]=`Suggest`})(Dr||={});var Or;(function(e){e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e[e.None=2]=`None`,e[e.LeftOfInjectedText=3]=`LeftOfInjectedText`,e[e.RightOfInjectedText=4]=`RightOfInjectedText`})(Or||={});var kr;(function(e){e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Relative=2]=`Relative`,e[e.Interval=3]=`Interval`,e[e.Custom=4]=`Custom`})(kr||={});var Ar;(function(e){e[e.None=0]=`None`,e[e.Text=1]=`Text`,e[e.Blocks=2]=`Blocks`})(Ar||={});var jr;(function(e){e[e.Smooth=0]=`Smooth`,e[e.Immediate=1]=`Immediate`})(jr||={});var Mr;(function(e){e[e.Auto=1]=`Auto`,e[e.Hidden=2]=`Hidden`,e[e.Visible=3]=`Visible`})(Mr||={});var Nr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Nr||={});var Pr;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(Pr||={});var Fr;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Fr||={});var Ir;(function(e){e[e.File=0]=`File`,e[e.Module=1]=`Module`,e[e.Namespace=2]=`Namespace`,e[e.Package=3]=`Package`,e[e.Class=4]=`Class`,e[e.Method=5]=`Method`,e[e.Property=6]=`Property`,e[e.Field=7]=`Field`,e[e.Constructor=8]=`Constructor`,e[e.Enum=9]=`Enum`,e[e.Interface=10]=`Interface`,e[e.Function=11]=`Function`,e[e.Variable=12]=`Variable`,e[e.Constant=13]=`Constant`,e[e.String=14]=`String`,e[e.Number=15]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Array=17]=`Array`,e[e.Object=18]=`Object`,e[e.Key=19]=`Key`,e[e.Null=20]=`Null`,e[e.EnumMember=21]=`EnumMember`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`})(Ir||={});var Lr;(function(e){e[e.Deprecated=1]=`Deprecated`})(Lr||={});var Rr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Rr||={});var zr;(function(e){e[e.Hidden=0]=`Hidden`,e[e.Blink=1]=`Blink`,e[e.Smooth=2]=`Smooth`,e[e.Phase=3]=`Phase`,e[e.Expand=4]=`Expand`,e[e.Solid=5]=`Solid`})(zr||={});var Br;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(Br||={});var Vr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]=`AlwaysGrowsWhenTypingAtEdges`,e[e.NeverGrowsWhenTypingAtEdges=1]=`NeverGrowsWhenTypingAtEdges`,e[e.GrowsOnlyWhenTypingBefore=2]=`GrowsOnlyWhenTypingBefore`,e[e.GrowsOnlyWhenTypingAfter=3]=`GrowsOnlyWhenTypingAfter`})(Vr||={});var Hr;(function(e){e[e.None=0]=`None`,e[e.Same=1]=`Same`,e[e.Indent=2]=`Indent`,e[e.DeepIndent=3]=`DeepIndent`})(Hr||={});var Ur=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return Kt(e,t)}};function Wr(){return{editor:void 0,languages:void 0,CancellationTokenSource:It,Emitter:oe,KeyCode:_r,KeyMod:Ur,Position:E,Range:D,Selection:kn,SelectionDirection:Nr,MarkerSeverity:vr,MarkerTag:yr,Uri:vn,Token:Fn}}var Gr,Kr,qr=class{constructor(e,t){this.uri=e,this.value=t}};function Jr(e){return Array.isArray(e)}(class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[Gr]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(Jr(t)){this.map=/* @__PURE__ */ new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=/* @__PURE__ */ new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new qr(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(Gr=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}});var Yr=class{constructor(){this[Kr]=`LinkedMap`,this._map=/* @__PURE__ */ new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(Kr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(t===1||t===2){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},Xr=class extends Yr{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Zr=class extends Xr{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Qr=class{constructor(){this.map=/* @__PURE__ */ new Map}add(e,t){let n=this.map.get(e);n||(n=/* @__PURE__ */ new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}};new Zr(10);var $r;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})($r||={});var ei;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(ei||={});var ti;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(ti||={});var ni;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(ni||={});function ri(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r===10)return!0;if(r===92){if(t++,t>=n)break;let r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function ii(e,t,n,r,i){if(r===0)return!0;let a=t.charCodeAt(r-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r);if(e.get(n)!==0)return!0}return!1}function ai(e,t,n,r,i){if(r+i===n)return!0;let a=t.charCodeAt(r+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r+i-1);if(e.get(n)!==0)return!0}return!1}function oi(e,t,n,r,i){return ii(e,t,n,r,i)&&ai(e,t,n,r,i)}var si=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){Ve(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||oi(this._wordSeparators,e,t,r,i))return n}while(n);return null}};function ci(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of`\`~!@#$%^&*()-=+[{]}\\|;:'",.<>/?`)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}let li=ci();function ui(e){let t=li;if(e&&e instanceof RegExp){if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}}return t.lastIndex=0,t}let di=new x;di.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function fi(e,t,n,r,i){if(t=ui(t),i||=p.first(di),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),fi(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=pi(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function pi(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var mi=class{static computeUnicodeHighlights(e,t,n){let r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),a=new gi(t),o=a.getCandidateCodePoints(),c;c=RegExp(o===`allNonBasicAscii`?`[^\\t\\n\\r\\x20-\\x7E]`:`${hi(Array.from(o))}`,`g`);let l=new si(null,c),u=[],d=!1,f,p=0,m=0,h=0;forLoop:for(let t=r,n=i;t<=n;t++){let n=e.getLineContent(t),r=n.length;l.reset(0);do if(f=l.next(n),f){let e=f.index,i=f.index+f[0].length;e>0&&Re(n.charCodeAt(e-1))&&e--,i+1<r&&Re(n.charCodeAt(i-1))&&i++;let o=n.substring(e,i),c=fi(e+1,li,n,0);c&&c.endColumn<=e+1&&(c=null);let l=a.shouldHighlightNonBasicASCII(o,c?c.word:null);if(l!==0){if(l===3?p++:l===2?m++:l===1?h++:s(),u.length>=1e3){d=!0;break forLoop}u.push(new D(t,e+1,t,i+1))}}while(f)}return{ranges:u,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:h}}static computeUnicodeHighlightReason(e,t){let n=new gi(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),a=Ge.getLocales().filter(e=>!Ge.getInstance(/* @__PURE__ */ new Set([...t.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function hi(e,t){return`[${Ae(e.map(e=>String.fromCodePoint(e)).join(``))}]`}var gi=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ge.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return`allNonBasicAscii`;let e=/* @__PURE__ */ new Set;if(this.options.invisibleCharacters)for(let t of Ke.codePoints)_i(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(let e of t){let t=e.codePointAt(0),n=Ue(e);r||=n,!n&&!this.ambiguousCharacters.isAmbiguous(t)&&!Ke.isInvisibleCharacter(t)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!_i(e)&&Ke.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function _i(e){return e===` `||e===`
|
|
7
|
+
`))}},re=class extends Error{constructor(e,t){super(e),this.name=`ListenerLeakError`,this.stack=t}},ie=class extends Error{constructor(e,t){super(e),this.name=`ListenerRefusalError`,this.stack=t}},ae=class{constructor(e){this.value=e}},oe=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new te(e?.onListenerError??t,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new ee(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let n=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],r=new ie(`${e}. HINT: Stack shows most frequent listener (${n[1]}-times)`,n[0]);return(this._options?.onListenerError||t)(r),y.None}if(this._disposed)return y.None;n&&(e=e.bind(n));let i=new ae(e),a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=ne.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof ae?(this._deliveryQueue??=new se,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=_(()=>{a?.(),this._removeListener(i)});return r instanceof v?r.add(o):Array.isArray(r)&&r.push(o),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*2<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&e<this._deliveryQueue.end&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,n){if(!e)return;let r=this._options?.onListenerError||t;if(!r)e.value(n);else try{e.value(n)}catch(e){r(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners){if(this._listeners instanceof ae)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}}this._perfMon?.stop()}hasListeners(){return this._size>0}},se=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function ce(){return globalThis._VSCODE_NLS_MESSAGES}function le(){return globalThis._VSCODE_NLS_LANGUAGE}let ue=le()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function de(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),ue&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function T(e,t,...n){return de(typeof e==`number`?fe(e,t):t,n)}function fe(e,t){let n=ce()?.[e];if(typeof n!=`string`){if(typeof t==`string`)return t;throw Error(`!!! NLS MISSING: ${e} !!!`)}return n}let pe=!1,me=!1,he=!1,ge=!1,_e,ve=globalThis,ye;ve.vscode!==void 0&&ve.vscode.process!==void 0?ye=ve.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(ye=process);let be=typeof ye?.versions?.electron==`string`&&ye?.type===`renderer`;if(typeof ye==`object`){pe=ye.platform===`win32`,me=ye.platform===`darwin`,he=ye.platform===`linux`,he&&ye.env.SNAP&&ye.env.SNAP_REVISION,ye.env.CI||ye.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ye.env.GITHUB_WORKSPACE;let e=ye.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,t.resolvedLanguage,t.languagePack?.translationsConfigFile}catch{}}else typeof navigator==`object`&&!be?(_e=navigator.userAgent,pe=_e.indexOf(`Windows`)>=0,me=_e.indexOf(`Macintosh`)>=0,(_e.indexOf(`Macintosh`)>=0||_e.indexOf(`iPad`)>=0||_e.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,he=_e.indexOf(`Linux`)>=0,_e?.indexOf(`Mobi`),ge=!0,le(),navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);let xe=pe,Se=me;ge&&typeof ve.importScripts==`function`&&ve.origin;let Ce=_e,we=typeof ve.postMessage==`function`&&!ve.importScripts;(()=>{if(we){let e=[];ve.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),ve.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();let Te=!!(Ce&&Ce.indexOf(`Chrome`)>=0);Ce&&Ce.indexOf(`Firefox`),!Te&&Ce&&Ce.indexOf(`Safari`),Ce&&Ce.indexOf(`Edg/`),Ce&&Ce.indexOf(`Android`);function Ee(e){return e}var De=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=Ee):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Oe;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(Oe||={});var ke=class{constructor(e){this.executor=e,this._state=Oe.Uninitialized}get value(){if(this._state===Oe.Uninitialized){this._state=Oe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Oe.Completed}}else if(this._state===Oe.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ae(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function je(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function Me(e){return e.split(/\r\n|\r|\n/)}function Ne(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Pe(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function Fe(e){return e>=65&&e<=90}function Ie(e,t){let n=Math.min(e.length,t.length),r=0;for(;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Le(e,t){let n=Math.min(e.length,t.length),r,i=e.length-1,a=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(a-r))return r;return n}function Re(e){return 55296<=e&&e<=56319}function ze(e){return 56320<=e&&e<=57343}function Be(e,t){return(e-55296<<10)+(t-56320)+65536}function Ve(e,t,n){let r=e.charCodeAt(n);if(Re(r)&&n+1<t){let t=e.charCodeAt(n+1);if(ze(t))return Be(r,t)}return r}let He=/^[\t\n\r\x20-\x7E]*$/;function Ue(e){return He.test(e)}(class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||=new e,e._INSTANCE}constructor(){this._data=We()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,n=t.length/3,r=1;for(;r<=n;)if(e<t[3*r])r=2*r;else if(e>t[3*r+1])r=2*r+1;else return t[3*r+2];return 0}});function We(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,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,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,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,129008,129008,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,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,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,2192,2193,1,2250,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,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,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,6862,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,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,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,9775,9775,14,9784,9785,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,9874,14,9876,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,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,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,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,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,118528,118573,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,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}var Ge=class e{static{this.ambiguousCharacterData=new ke(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}`))}static{this.cache=new De({getCacheKey:JSON.stringify},t=>{function n(e){let t=/* @__PURE__ */ new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function r(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function i(e,t){if(!e)return t;let n=/* @__PURE__ */ new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let a=this.ambiguousCharacterData.value,o=t.filter(e=>!e.startsWith(`_`)&&Object.hasOwn(a,e));o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new ke(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Ke=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};let qe=`default`;var Je=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}},Ye=class{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}},Xe=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}},Ze=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},Qe=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},$e=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=/* @__PURE__ */ new Map,this._pendingEvents=/* @__PURE__ */ new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new Je(this._workerId,r,e,t,n))})}listen(e,t,n){let r=null,i=new oe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Xe(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Qe(this._workerId,r)),r=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(this._workerId===-1||e.vsWorker===this._workerId)&&this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(n,r)=>(typeof r==`string`&&!n[r]&&(tt(r)?n[r]=t=>this.listen(e,r,t):et(r)?n[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(n[r]=async(...n)=>(await t?.(),this.sendMessage(e,r,n)))),n[r])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn(`Got reply to unknown seq`);return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let t=/* @__PURE__ */ Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,n=t}t.reject(n)}else t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new Ye(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Ye(this._workerId,t,void 0,n(e)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new Ze(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn(`Got event for unknown req`)}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn(`Got unsubscribe for unknown req`)}_send(e){let t=[];if(e.type===0)for(let n=0;n<e.args.length;n++){let r=e.args[n];r instanceof ArrayBuffer&&t.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}};function et(e){return e[0]===`o`&&e[1]===`n`&&Fe(e.charCodeAt(2))}function tt(e){return/^onDynamic/.test(e)&&Fe(e.charCodeAt(9))}var nt=class{constructor(e,t){this._localChannels=/* @__PURE__ */ new Map,this._remoteChannels=/* @__PURE__ */ new Map,this._protocol=new $e({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===qe&&t===`$initialize`)return this.initialize(n[0]);let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(/* @__PURE__ */ Error(`Missing channel ${e} on worker thread`));let i=r[t];if(typeof i!=`function`)return Promise.reject(/* @__PURE__ */ Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)throw Error(`Missing channel ${e} on worker thread`);if(tt(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);let i=e.call(r,n);if(typeof i!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);return i}if(et(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing event ${t} on request handler.`);return e}throw Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){let t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}};let rt=!1;function it(e){if(rt)throw Error(`WebWorker already initialized!`);rt=!0;let t=new nt(e=>globalThis.postMessage(e),t=>e(t));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}var at=class{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};let ot=typeof Buffer<`u`;new ke(()=>/* @__PURE__ */ new Uint8Array(256));let st;var ct=class e{static wrap(t){return ot&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return ot?this.buffer.toString():(st||=new TextDecoder,st.decode(this.buffer))}};let lt=`0123456789abcdef`;function ut({buffer:e}){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=lt[r>>>4],t+=lt[r&15]}return t}function dt(e,t){return(t<<5)-t+e|0}function ft(e,t){t=dt(149417,t);for(let n=0,r=e.length;n<r;n++)t=dt(e.charCodeAt(n),t);return t}function pt(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function mt(e,t=32){return e instanceof ArrayBuffer?ut(ct.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}(class e{static{this._bigBlock32=/* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=/* @__PURE__ */ new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(Re(a)){if(o+1<t){let t=e.charCodeAt(o+1);ze(t)?(o++,s=Be(a,t)):s=65533}else{i=a;break}}else ze(a)&&(s=65533);if(r=this._push(n,r,s),o++,o<t)a=e.charCodeAt(o);else break}this._buffLen=r,this._leftoverHighSurrogate=i}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}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()),mt(this._h0)+mt(this._h1)+mt(this._h2)+mt(this._h3)+mt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,pt(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=pt(r,5)+c+s+l+t.getUint32(e*4,!1)|0,s=o,o=a,a=pt(i,30),i=r,r=u;this._h0=this._h0+r|0,this._h1=this._h1+i|0,this._h2=this._h2+a|0,this._h3=this._h3+o|0,this._h4=this._h4+s|0}});var ht=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}};function gt(e,t,n){return new bt(new ht(e),new ht(t)).ComputeDiff(n).changes}var _t=class{static Assert(e,t){if(!e)throw Error(t)}},vt=class{static Copy(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}static Copy2(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}},yt=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new at(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(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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}},bt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,a,o]=e._getElements(t),[s,c,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]==`string`}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=ft(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t]:!1}ElementsAreStrictEqual(t,n){return this.ElementsAreEqual(t,n)?e._getStrictElement(this._originalSequence,t)===e._getStrictElement(this._modifiedSequence,n):!1}static _getStrictElement(e,t){return typeof e.getStrictElement==`function`?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t]:!1}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t]:!1}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){let a=[!1],o=this.ComputeDiffRecursive(e,t,n,r,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),i=[new at(e,0,n,r-n+1)]):e<=t?(_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[new at(e,t-e+1,n,0)]):(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[]),i}let a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,r,a,o,i),c=a[0],l=o[0];if(s!==null)return s;if(!i[0]){let a=this.ComputeDiffRecursive(e,c,n,l,i),o=[];return o=i[0]?[new at(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(a,o)}return[new at(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=null,b=new yt,x=t,S=n,C=f[0]-h[0]-r,w=-1073741824,ee=this.m_forwardHistory.length-1;do{let t=C+e;t===x||t<S&&c[t-1]<c[t+1]?(u=c[t+1],p=u-C-r,u<w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p),C=t+1-e):(u=c[t-1]+1,p=u-C-r,u<w&&b.MarkNextChange(),w=u-1,b.AddOriginalElement(u,p+1),C=t-1-e),ee>=0&&(c=this.m_forwardHistory[ee],e=c[0],x=1,S=c.length-1)}while(--ee>=-1);if(v=b.getReverseChanges(),_[0]){let e=f[0]+1,t=h[0]+1;if(v!==null&&v.length>0){let n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new at(e,d-e+1,t,m-t+1)]}else{b=new yt,x=a,S=o,C=f[0]-h[0]-s,w=1073741824,ee=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=C+i;e===x||e<S&&l[e-1]>=l[e+1]?(u=l[e+1]-1,p=u-C-s,u>w&&b.MarkNextChange(),w=u+1,b.AddOriginalElement(u+1,p+1),C=e+1-i):(u=l[e-1],p=u-C-s,u>w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p+1),C=e-1-i),ee>=0&&(l=this.m_reverseHistory[ee],i=l[0],x=1,S=l.length-1)}while(--ee>=-1);y=b.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,f=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=t-e+(r-n),m=p+1,h=new Int32Array(m),g=new Int32Array(m),_=r-n,v=t-e,y=e-n,b=t-r,x=(v-_)%2==0;h[_]=e,g[v]=t,o[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,C=0;l=this.ClipDiagonalBound(_-S,S,_,m),u=this.ClipDiagonalBound(_+S,S,_,m);for(let e=l;e<=u;e+=2){s=e===l||e<u&&h[e-1]<h[e+1]?h[e+1]:h[e-1]+1,c=s-(e-_)-y;let n=s;for(;s<t&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(h[e]=s,s+c>p+C&&(p=s,C=c),!x&&Math.abs(e-v)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,n<=g[e]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}let w=(p-e+(C-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,w))return o[0]=!0,i[0]=p,a[0]=C,w>0&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):(e++,n++,[new at(e,t-e+1,n,r-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),f=this.ClipDiagonalBound(v+S,S,v,m);for(let p=d;p<=f;p+=2){s=p===d||p<f&&g[p-1]>=g[p+1]?g[p+1]-1:g[p-1],c=s-(p-v)-b;let m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(g[p]=s,x&&Math.abs(p-_)<=S&&s<=h[p])return i[0]=s,a[0]=c,m>=h[p]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=_-l+1,vt.Copy2(h,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-d+2),e[0]=v-d+1,vt.Copy2(g,d,e,1,f-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){let n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,a=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}let s=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)&&(e[t]=s[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){let n=e[t],r=0,i=0;if(t>0){let n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}let a=n.originalLength>0,o=n.modifiedLength>0,s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){let t=n.originalStart-e,l=n.modifiedStart-e;if(t<r||l<i||a&&!this.OriginalElementsAreEqual(t,t+n.originalLength)||o&&!this.ModifiedElementsAreEqual(l,l+n.modifiedLength))break;let u=(t===r&&l===i?5:0)+this._boundaryScore(t,n.originalLength,l,n.modifiedLength);u>c&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;let l=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],l)&&(e[t-1]=l[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){let n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,a=n.originalStart,o=r.originalStart+r.originalLength,s=o-a,c=n.modifiedStart,l=r.modifiedStart+r.modifiedLength,u=l-c;if(i<5&&s<20&&u<20){let e=this._findBetterContiguousSequence(a,s,c,u,i);if(e){let[t,a]=e;(t!==n.originalStart+n.originalLength||a!==n.modifiedStart+n.modifiedLength)&&(n.originalLength=t-n.originalStart,n.modifiedLength=a-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=a+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;let a=e+t-i+1,o=n+r-i+1,s=0,c=0,l=0;for(let t=e;t<a;t++)for(let e=n;e<o;e++){let n=this._contiguousSequenceScore(t,e,i);n>0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return+!!this._OriginalRegionIsBoundary(e,t)+ +!!this._ModifiedRegionIsBoundary(n,r)}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let r=Array(e.length+t.length-1);return vt.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],vt.Copy(t,1,r,e.length,t.length-1),r}{let n=Array(e.length+t.length);return vt.Copy(e,0,n,0,e.length),vt.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(_t.Assert(e.originalStart<=t.originalStart,`Left change is not less than or equal to right change`),_t.Assert(e.modifiedStart<=t.modifiedStart,`Left change is not less than or equal to right change`),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){let r=e.originalStart,i=e.originalLength,a=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new at(r,i,a,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;let i=n,a=r-n-1,o=t%2==0;return e<0?o===(i%2==0)?0:1:o===(a%2==0)?r-1:r-2}},E=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let n=e.lineNumber|0,r=t.lineNumber|0;return n===r?(e.column|0)-(t.column|0):n-r}clone(){return new e(this.lineNumber,this.column)}toString(){return`(`+this.lineNumber+`,`+this.column+`)`}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(e){return!!e&&typeof e.lineNumber==`number`&&typeof e.column==`number`}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},D=class e{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return r<s?(r=s,i=c):r===s&&(i=Math.max(i,c)),a>l?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new E(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new E(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static areOnlyIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber-1||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn-1||t.endLineNumber<e.startLineNumber-1||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,t){if(e&&t){let n=e.startLineNumber|0,r=t.startLineNumber|0;if(n===r){let n=e.startColumn|0,r=t.startColumn|0;if(n===r){let n=e.endLineNumber|0,r=t.endLineNumber|0;return n===r?(e.endColumn|0)-(t.endColumn|0):n-r}return n-r}return n-r}return!!e-+!!t}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function xt(e){return e<0?0:e>255?255:e|0}function St(e){return e<0?0:e>4294967295?4294967295:e|0}var Ct=class e{constructor(t){let n=xt(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=/* @__PURE__ */ new Map}static _createAsciiMap(e){let t=/* @__PURE__ */ new Uint8Array(256);return t.fill(e),t}set(e,t){let n=xt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},wt=class{constructor(e,t,n){let r=new Uint8Array(e*t);for(let i=0,a=e*t;i<a;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}},Tt=class{constructor(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++){let[i,a,o]=e[r];a>t&&(t=a),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new wt(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,i,a]=e[t];r.set(n,i,a)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}};let Et=null;function Dt(){return Et===null&&(Et=new Tt([[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]])),Et}let Ot=null;function kt(){if(Ot===null){Ot=new Ct(0);for(let e=0;e<36;e++)Ot.set(` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`.charCodeAt(e),1);for(let e=0;e<4;e++)Ot.set(`.,;:`.charCodeAt(e),2)}return Ot}var At=class e{static _createLink(e,t,n,r,i){let a=i-1;do{let n=t.charCodeAt(a);if(e.get(n)!==2)break;a--}while(a>r);if(r>0){let e=t.charCodeAt(r-1),n=t.charCodeAt(a);(e===40&&n===41||e===91&&n===93||e===123&&n===125)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}}static computeLinks(t,n=Dt()){let r=kt(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){let o=t.getLineContent(a),s=o.length,c=0,l=0,u=0,d=1,f=!1,p=!1,m=!1,h=!1;for(;c<s;){let t=!1,s=o.charCodeAt(c);if(d===13){let n;switch(s){case 40:f=!0,n=0;break;case 41:n=+!f;break;case 91:m=!0,p=!0,n=0;break;case 93:m=!1,n=+!p;break;case 123:h=!0,n=0;break;case 125:n=+!h;break;case 39:case 34:case 96:n=u===s?1:u===39||u===34||u===96?0:1;break;case 42:n=+(u===42);break;case 32:n=+!m;break;default:n=r.get(s)}n===1&&(i.push(e._createLink(r,o,a,l,c)),t=!0)}else if(d===12){let e;s===91?(p=!0,e=0):e=r.get(s),e===1?t=!0:d=13}else d=n.nextState(d,s),d===0&&(t=!0);t&&(d=1,f=!1,p=!1,h=!1,l=c+1,u=s),c++}d===13&&i.push(e._createLink(r,o,a,l,s))}return i}};function jt(e){return!e||typeof e.getLineCount!=`function`||typeof e.getLineContent!=`function`?[]:At.computeLinks(e)}var Mt=class e{constructor(){this._defaultValueSet=[[`true`,`false`],[`True`,`False`],[`Private`,`Public`,`Friend`,`ReadOnly`,`Partial`,`Protected`,`WriteOnly`],[`public`,`protected`,`private`]]}static{this.INSTANCE=new e}navigateValueSet(e,t,n,r,i){if(e&&t){let n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){let e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return n===null?this.textReplace(e,t):n}numberReplace(e,t){let n=10**(e.length-(e.lastIndexOf(`.`)+1)),r=Number(e),i=parseFloat(e);return!isNaN(r)&&!isNaN(i)&&r===i?r===0&&!t?null:(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,a=e.length;r===null&&i<a;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};let Nt=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Pt;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Ft?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:w.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nt})})(Pt||={});var Ft=class{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?Nt:(this._emitter||=new oe,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},It=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Ft,this._token}cancel(){this._token?this._token instanceof Ft&&this._token.cancel():this._token=Pt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Ft&&this._token.dispose():this._token=Pt.None}},Lt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}};let Rt=new Lt,zt=new Lt,Bt=new Lt,Vt=Array(230),Ht=Object.create(null),Ut=Object.create(null),Wt=[];for(let e=0;e<=193;e++)Wt[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Ht[a]=i,Ut[a.toLowerCase()]=i,e&&(Wt[i]=o)),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);Rt.define(o,s),zt.define(o,u||s),Bt.define(o,d||u||s)}c&&(Vt[c]=o)}})();var Gt;(function(e){function t(e){return Rt.keyCodeToStr(e)}e.toString=t;function n(e){return Rt.strToKeyCode(e)}e.fromString=n;function r(e){return zt.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Bt.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return zt.strToKeyCode(e)||Bt.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Rt.keyCodeToStr(e)}e.toElectronAccelerator=o})(Gt||={});function Kt(e,t){return(e|(t&65535)<<16>>>0)>>>0}let qt,Jt=globalThis.vscode;if(Jt!==void 0&&Jt.process!==void 0){let e=Jt.process;qt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else qt=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return xe?`win32`:Se?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};let Yt=qt.cwd,Xt=qt.env,Zt=qt.platform;var Qt=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function $t(e,t){if(typeof e!=`object`||!e)throw new Qt(t,`Object`,e)}function O(e,t){if(typeof e!=`string`)throw new Qt(t,`string`,e)}let en=Zt===`win32`;function k(e){return e===47||e===92}function tn(e){return e===47}function nn(e){return e>=65&&e<=90||e>=97&&e<=122}function rn(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function an(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function on(e,t){$t(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${an(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let sn={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],O(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=Yt():(a=Xt[`=${t}`]||Yt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===92)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)k(u)&&(s=1,l=!0);else if(k(u)){if(l=!0,k(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!k(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&k(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!k(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else nn(u)&&a.charCodeAt(1)===58&&(c=a.slice(0,2),s=2,o>2&&k(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=rn(n,!r,`\\`,k),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return tn(a)?`\\`:e;if(k(a)){if(i=!0,k(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!k(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!k(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else nn(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&k(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?rn(e.slice(n),!i,`\\`,k):``;if(o.length===0&&!i&&(o=`.`),o.length>0&&k(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&nn(o.charCodeAt(0))&&o.charCodeAt(1)===58)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||k(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){O(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return k(n)||t>2&&nn(n)&&e.charCodeAt(1)===58&&k(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];O(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&k(n.charCodeAt(0))){++i;let e=n.length;e>1&&k(n.charCodeAt(1))&&(++i,e>2&&(k(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&k(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return sn.normalize(t)},relative(e,t){if(O(e,`from`),O(t,`to`),e===t)return``;let n=sn.resolve(e),r=sn.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=i<a?i:a,s=0;for(;s<o&&e[s].toLowerCase()===t[s].toLowerCase();s++);return s===0?r:s===o?a>o?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;i<e.length&&e.charCodeAt(i)===92;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===92;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===92;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===92;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===92&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=sn.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(nn(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return t},dirname(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return k(i)?e:`.`;if(k(i)){if(n=r=1,k(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&k(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!k(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else nn(i)&&e.charCodeAt(1)===58&&(n=t>2&&k(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(k(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&nn(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(k(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(k(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===58&&nn(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(k(t)){if(!a){r=s+1;break}}else i===-1&&(a=!1,i=s+1),t===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:on.bind(null,`\\`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return k(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(k(i)){if(r=1,k(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!k(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&k(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!k(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(nn(i)&&e.charCodeAt(1)===58){if(n<=2)return t.root=t.dir=e,t;if(r=2,k(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),k(i)){if(!c){o=l+1;break}}else s===-1&&(c=!1,s=l+1),i===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1);return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},cn=(()=>{if(en){let e=/\\/g;return()=>{let t=Yt().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>Yt()})(),ln={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];O(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===47)}if(!n){let e=cn();t=`${e}/${t}`,n=e.charCodeAt(0)===47}return t=rn(t,!n,`/`,tn),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=rn(e,!t,`/`,tn),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return O(e,`path`),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n<e.length;++n){let r=e[n];O(r,`path`),r.length>0&&t.push(r)}return t.length===0?`.`:ln.normalize(t.join(`/`))},relative(e,t){if(O(e,`from`),O(t,`to`),e===t||(e=ln.resolve(e),t=ln.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===47&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===47)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===47?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===47)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:on.bind(null,`/`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===47,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===47){if(!s){a=c+1;break}}else o===-1&&(s=!1,o=c+1),t===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};ln.win32=sn.win32=sn,ln.posix=sn.posix=ln,en?sn.normalize:ln.normalize,en?sn.resolve:ln.resolve,en?sn.relative:ln.relative,en?sn.dirname:ln.dirname,en?sn.basename:ln.basename,en?sn.extname:ln.extname,en?sn.sep:ln.sep;let un=/^\w[\w\d+.-]*$/,dn=/^\//,fn=/^\/\//;function pn(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!un.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!dn.test(e.path))throw 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(fn.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function mn(e,t){return!e&&!t?`file`:e}function hn(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==gn&&(t=gn+t):t=gn}return t}let gn=`/`,_n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var vn=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1:typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=mn(e,a),this.authority=t||``,this.path=hn(this.scheme,n||``),this.query=r||``,this.fragment=i||``,pn(this,a))}get fsPath(){return wn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new bn(t,n,r,i,a)}static parse(e,t=!1){let n=_n.exec(e);return n?new bn(n[2]||``,On(n[4]||``),On(n[5]||``),On(n[7]||``),On(n[9]||``),t):new bn(``,``,``,``,``)}static file(e){let t=``;if(xe&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new bn(`file`,t,e,``,``)}static from(e,t){return new bn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=xe&&t.scheme===`file`?e.file(sn.join(wn(t,!0),...n)).path:ln.join(t.path,...n),t.with({path:r})}toString(e=!1){return Tn(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new bn(t);return e._formatted=t.external??null,e._fsPath=t._sep===yn?t.fsPath??null:null,e}}};let yn=xe?1:void 0;var bn=class extends vn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=wn(this,!1),this._fsPath}toString(e=!1){return e?Tn(this,!0):(this._formatted||=Tn(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=yn),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};let xn={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 Sn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=xn[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function Cn(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=xn[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function wn(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,xe&&(n=n.replace(/\//g,`\\`)),n}function Tn(e,t){let n=t?Cn:Sn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:Sn(c,!1,!1)),r}function En(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+En(e.substr(3)):e}}let Dn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function On(e){return e.match(Dn)?e.replace(Dn,e=>En(e)):e}var kn=class e extends D{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new E(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new E(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber==`number`&&typeof e.selectionStartColumn==`number`&&typeof e.positionLineNumber==`number`&&typeof e.positionColumn==`number`}static createWithDirection(t,n,r,i,a){return a===0?new e(t,n,r,i):new e(r,i,t,n)}};let An=Object.create(null);function A(e,t){if(d(t)){let n=An[t];if(n===void 0)throw Error(`${e} references an unknown codicon: ${t}`);t=n}return An[e]=t,{id:e}}let jn={add:A(`add`,6e4),plus:A(`plus`,6e4),gistNew:A(`gist-new`,6e4),repoCreate:A(`repo-create`,6e4),lightbulb:A(`lightbulb`,60001),lightBulb:A(`light-bulb`,60001),repo:A(`repo`,60002),repoDelete:A(`repo-delete`,60002),gistFork:A(`gist-fork`,60003),repoForked:A(`repo-forked`,60003),gitPullRequest:A(`git-pull-request`,60004),gitPullRequestAbandoned:A(`git-pull-request-abandoned`,60004),recordKeys:A(`record-keys`,60005),keyboard:A(`keyboard`,60005),tag:A(`tag`,60006),gitPullRequestLabel:A(`git-pull-request-label`,60006),tagAdd:A(`tag-add`,60006),tagRemove:A(`tag-remove`,60006),person:A(`person`,60007),personFollow:A(`person-follow`,60007),personOutline:A(`person-outline`,60007),personFilled:A(`person-filled`,60007),sourceControl:A(`source-control`,60008),mirror:A(`mirror`,60009),mirrorPublic:A(`mirror-public`,60009),star:A(`star`,60010),starAdd:A(`star-add`,60010),starDelete:A(`star-delete`,60010),starEmpty:A(`star-empty`,60010),comment:A(`comment`,60011),commentAdd:A(`comment-add`,60011),alert:A(`alert`,60012),warning:A(`warning`,60012),search:A(`search`,60013),searchSave:A(`search-save`,60013),logOut:A(`log-out`,60014),signOut:A(`sign-out`,60014),logIn:A(`log-in`,60015),signIn:A(`sign-in`,60015),eye:A(`eye`,60016),eyeUnwatch:A(`eye-unwatch`,60016),eyeWatch:A(`eye-watch`,60016),circleFilled:A(`circle-filled`,60017),primitiveDot:A(`primitive-dot`,60017),closeDirty:A(`close-dirty`,60017),debugBreakpoint:A(`debug-breakpoint`,60017),debugBreakpointDisabled:A(`debug-breakpoint-disabled`,60017),debugHint:A(`debug-hint`,60017),terminalDecorationSuccess:A(`terminal-decoration-success`,60017),primitiveSquare:A(`primitive-square`,60018),edit:A(`edit`,60019),pencil:A(`pencil`,60019),info:A(`info`,60020),issueOpened:A(`issue-opened`,60020),gistPrivate:A(`gist-private`,60021),gitForkPrivate:A(`git-fork-private`,60021),lock:A(`lock`,60021),mirrorPrivate:A(`mirror-private`,60021),close:A(`close`,60022),removeClose:A(`remove-close`,60022),x:A(`x`,60022),repoSync:A(`repo-sync`,60023),sync:A(`sync`,60023),clone:A(`clone`,60024),desktopDownload:A(`desktop-download`,60024),beaker:A(`beaker`,60025),microscope:A(`microscope`,60025),vm:A(`vm`,60026),deviceDesktop:A(`device-desktop`,60026),file:A(`file`,60027),more:A(`more`,60028),ellipsis:A(`ellipsis`,60028),kebabHorizontal:A(`kebab-horizontal`,60028),mailReply:A(`mail-reply`,60029),reply:A(`reply`,60029),organization:A(`organization`,60030),organizationFilled:A(`organization-filled`,60030),organizationOutline:A(`organization-outline`,60030),newFile:A(`new-file`,60031),fileAdd:A(`file-add`,60031),newFolder:A(`new-folder`,60032),fileDirectoryCreate:A(`file-directory-create`,60032),trash:A(`trash`,60033),trashcan:A(`trashcan`,60033),history:A(`history`,60034),clock:A(`clock`,60034),folder:A(`folder`,60035),fileDirectory:A(`file-directory`,60035),symbolFolder:A(`symbol-folder`,60035),logoGithub:A(`logo-github`,60036),markGithub:A(`mark-github`,60036),github:A(`github`,60036),terminal:A(`terminal`,60037),console:A(`console`,60037),repl:A(`repl`,60037),zap:A(`zap`,60038),symbolEvent:A(`symbol-event`,60038),error:A(`error`,60039),stop:A(`stop`,60039),variable:A(`variable`,60040),symbolVariable:A(`symbol-variable`,60040),array:A(`array`,60042),symbolArray:A(`symbol-array`,60042),symbolModule:A(`symbol-module`,60043),symbolPackage:A(`symbol-package`,60043),symbolNamespace:A(`symbol-namespace`,60043),symbolObject:A(`symbol-object`,60043),symbolMethod:A(`symbol-method`,60044),symbolFunction:A(`symbol-function`,60044),symbolConstructor:A(`symbol-constructor`,60044),symbolBoolean:A(`symbol-boolean`,60047),symbolNull:A(`symbol-null`,60047),symbolNumeric:A(`symbol-numeric`,60048),symbolNumber:A(`symbol-number`,60048),symbolStructure:A(`symbol-structure`,60049),symbolStruct:A(`symbol-struct`,60049),symbolParameter:A(`symbol-parameter`,60050),symbolTypeParameter:A(`symbol-type-parameter`,60050),symbolKey:A(`symbol-key`,60051),symbolText:A(`symbol-text`,60051),symbolReference:A(`symbol-reference`,60052),goToFile:A(`go-to-file`,60052),symbolEnum:A(`symbol-enum`,60053),symbolValue:A(`symbol-value`,60053),symbolRuler:A(`symbol-ruler`,60054),symbolUnit:A(`symbol-unit`,60054),activateBreakpoints:A(`activate-breakpoints`,60055),archive:A(`archive`,60056),arrowBoth:A(`arrow-both`,60057),arrowDown:A(`arrow-down`,60058),arrowLeft:A(`arrow-left`,60059),arrowRight:A(`arrow-right`,60060),arrowSmallDown:A(`arrow-small-down`,60061),arrowSmallLeft:A(`arrow-small-left`,60062),arrowSmallRight:A(`arrow-small-right`,60063),arrowSmallUp:A(`arrow-small-up`,60064),arrowUp:A(`arrow-up`,60065),bell:A(`bell`,60066),bold:A(`bold`,60067),book:A(`book`,60068),bookmark:A(`bookmark`,60069),debugBreakpointConditionalUnverified:A(`debug-breakpoint-conditional-unverified`,60070),debugBreakpointConditional:A(`debug-breakpoint-conditional`,60071),debugBreakpointConditionalDisabled:A(`debug-breakpoint-conditional-disabled`,60071),debugBreakpointDataUnverified:A(`debug-breakpoint-data-unverified`,60072),debugBreakpointData:A(`debug-breakpoint-data`,60073),debugBreakpointDataDisabled:A(`debug-breakpoint-data-disabled`,60073),debugBreakpointLogUnverified:A(`debug-breakpoint-log-unverified`,60074),debugBreakpointLog:A(`debug-breakpoint-log`,60075),debugBreakpointLogDisabled:A(`debug-breakpoint-log-disabled`,60075),briefcase:A(`briefcase`,60076),broadcast:A(`broadcast`,60077),browser:A(`browser`,60078),bug:A(`bug`,60079),calendar:A(`calendar`,60080),caseSensitive:A(`case-sensitive`,60081),check:A(`check`,60082),checklist:A(`checklist`,60083),chevronDown:A(`chevron-down`,60084),chevronLeft:A(`chevron-left`,60085),chevronRight:A(`chevron-right`,60086),chevronUp:A(`chevron-up`,60087),chromeClose:A(`chrome-close`,60088),chromeMaximize:A(`chrome-maximize`,60089),chromeMinimize:A(`chrome-minimize`,60090),chromeRestore:A(`chrome-restore`,60091),circleOutline:A(`circle-outline`,60092),circle:A(`circle`,60092),debugBreakpointUnverified:A(`debug-breakpoint-unverified`,60092),terminalDecorationIncomplete:A(`terminal-decoration-incomplete`,60092),circleSlash:A(`circle-slash`,60093),circuitBoard:A(`circuit-board`,60094),clearAll:A(`clear-all`,60095),clippy:A(`clippy`,60096),closeAll:A(`close-all`,60097),cloudDownload:A(`cloud-download`,60098),cloudUpload:A(`cloud-upload`,60099),code:A(`code`,60100),collapseAll:A(`collapse-all`,60101),colorMode:A(`color-mode`,60102),commentDiscussion:A(`comment-discussion`,60103),creditCard:A(`credit-card`,60105),dash:A(`dash`,60108),dashboard:A(`dashboard`,60109),database:A(`database`,60110),debugContinue:A(`debug-continue`,60111),debugDisconnect:A(`debug-disconnect`,60112),debugPause:A(`debug-pause`,60113),debugRestart:A(`debug-restart`,60114),debugStart:A(`debug-start`,60115),debugStepInto:A(`debug-step-into`,60116),debugStepOut:A(`debug-step-out`,60117),debugStepOver:A(`debug-step-over`,60118),debugStop:A(`debug-stop`,60119),debug:A(`debug`,60120),deviceCameraVideo:A(`device-camera-video`,60121),deviceCamera:A(`device-camera`,60122),deviceMobile:A(`device-mobile`,60123),diffAdded:A(`diff-added`,60124),diffIgnored:A(`diff-ignored`,60125),diffModified:A(`diff-modified`,60126),diffRemoved:A(`diff-removed`,60127),diffRenamed:A(`diff-renamed`,60128),diff:A(`diff`,60129),diffSidebyside:A(`diff-sidebyside`,60129),discard:A(`discard`,60130),editorLayout:A(`editor-layout`,60131),emptyWindow:A(`empty-window`,60132),exclude:A(`exclude`,60133),extensions:A(`extensions`,60134),eyeClosed:A(`eye-closed`,60135),fileBinary:A(`file-binary`,60136),fileCode:A(`file-code`,60137),fileMedia:A(`file-media`,60138),filePdf:A(`file-pdf`,60139),fileSubmodule:A(`file-submodule`,60140),fileSymlinkDirectory:A(`file-symlink-directory`,60141),fileSymlinkFile:A(`file-symlink-file`,60142),fileZip:A(`file-zip`,60143),files:A(`files`,60144),filter:A(`filter`,60145),flame:A(`flame`,60146),foldDown:A(`fold-down`,60147),foldUp:A(`fold-up`,60148),fold:A(`fold`,60149),folderActive:A(`folder-active`,60150),folderOpened:A(`folder-opened`,60151),gear:A(`gear`,60152),gift:A(`gift`,60153),gistSecret:A(`gist-secret`,60154),gist:A(`gist`,60155),gitCommit:A(`git-commit`,60156),gitCompare:A(`git-compare`,60157),compareChanges:A(`compare-changes`,60157),gitMerge:A(`git-merge`,60158),githubAction:A(`github-action`,60159),githubAlt:A(`github-alt`,60160),globe:A(`globe`,60161),grabber:A(`grabber`,60162),graph:A(`graph`,60163),gripper:A(`gripper`,60164),heart:A(`heart`,60165),home:A(`home`,60166),horizontalRule:A(`horizontal-rule`,60167),hubot:A(`hubot`,60168),inbox:A(`inbox`,60169),issueReopened:A(`issue-reopened`,60171),issues:A(`issues`,60172),italic:A(`italic`,60173),jersey:A(`jersey`,60174),json:A(`json`,60175),kebabVertical:A(`kebab-vertical`,60176),key:A(`key`,60177),law:A(`law`,60178),lightbulbAutofix:A(`lightbulb-autofix`,60179),linkExternal:A(`link-external`,60180),link:A(`link`,60181),listOrdered:A(`list-ordered`,60182),listUnordered:A(`list-unordered`,60183),liveShare:A(`live-share`,60184),loading:A(`loading`,60185),location:A(`location`,60186),mailRead:A(`mail-read`,60187),mail:A(`mail`,60188),markdown:A(`markdown`,60189),megaphone:A(`megaphone`,60190),mention:A(`mention`,60191),milestone:A(`milestone`,60192),gitPullRequestMilestone:A(`git-pull-request-milestone`,60192),mortarBoard:A(`mortar-board`,60193),move:A(`move`,60194),multipleWindows:A(`multiple-windows`,60195),mute:A(`mute`,60196),noNewline:A(`no-newline`,60197),note:A(`note`,60198),octoface:A(`octoface`,60199),openPreview:A(`open-preview`,60200),package:A(`package`,60201),paintcan:A(`paintcan`,60202),pin:A(`pin`,60203),play:A(`play`,60204),run:A(`run`,60204),plug:A(`plug`,60205),preserveCase:A(`preserve-case`,60206),preview:A(`preview`,60207),project:A(`project`,60208),pulse:A(`pulse`,60209),question:A(`question`,60210),quote:A(`quote`,60211),radioTower:A(`radio-tower`,60212),reactions:A(`reactions`,60213),references:A(`references`,60214),refresh:A(`refresh`,60215),regex:A(`regex`,60216),remoteExplorer:A(`remote-explorer`,60217),remote:A(`remote`,60218),remove:A(`remove`,60219),replaceAll:A(`replace-all`,60220),replace:A(`replace`,60221),repoClone:A(`repo-clone`,60222),repoForcePush:A(`repo-force-push`,60223),repoPull:A(`repo-pull`,60224),repoPush:A(`repo-push`,60225),report:A(`report`,60226),requestChanges:A(`request-changes`,60227),rocket:A(`rocket`,60228),rootFolderOpened:A(`root-folder-opened`,60229),rootFolder:A(`root-folder`,60230),rss:A(`rss`,60231),ruby:A(`ruby`,60232),saveAll:A(`save-all`,60233),saveAs:A(`save-as`,60234),save:A(`save`,60235),screenFull:A(`screen-full`,60236),screenNormal:A(`screen-normal`,60237),searchStop:A(`search-stop`,60238),server:A(`server`,60240),settingsGear:A(`settings-gear`,60241),settings:A(`settings`,60242),shield:A(`shield`,60243),smiley:A(`smiley`,60244),sortPrecedence:A(`sort-precedence`,60245),splitHorizontal:A(`split-horizontal`,60246),splitVertical:A(`split-vertical`,60247),squirrel:A(`squirrel`,60248),starFull:A(`star-full`,60249),starHalf:A(`star-half`,60250),symbolClass:A(`symbol-class`,60251),symbolColor:A(`symbol-color`,60252),symbolConstant:A(`symbol-constant`,60253),symbolEnumMember:A(`symbol-enum-member`,60254),symbolField:A(`symbol-field`,60255),symbolFile:A(`symbol-file`,60256),symbolInterface:A(`symbol-interface`,60257),symbolKeyword:A(`symbol-keyword`,60258),symbolMisc:A(`symbol-misc`,60259),symbolOperator:A(`symbol-operator`,60260),symbolProperty:A(`symbol-property`,60261),wrench:A(`wrench`,60261),wrenchSubaction:A(`wrench-subaction`,60261),symbolSnippet:A(`symbol-snippet`,60262),tasklist:A(`tasklist`,60263),telescope:A(`telescope`,60264),textSize:A(`text-size`,60265),threeBars:A(`three-bars`,60266),thumbsdown:A(`thumbsdown`,60267),thumbsup:A(`thumbsup`,60268),tools:A(`tools`,60269),triangleDown:A(`triangle-down`,60270),triangleLeft:A(`triangle-left`,60271),triangleRight:A(`triangle-right`,60272),triangleUp:A(`triangle-up`,60273),twitter:A(`twitter`,60274),unfold:A(`unfold`,60275),unlock:A(`unlock`,60276),unmute:A(`unmute`,60277),unverified:A(`unverified`,60278),verified:A(`verified`,60279),versions:A(`versions`,60280),vmActive:A(`vm-active`,60281),vmOutline:A(`vm-outline`,60282),vmRunning:A(`vm-running`,60283),watch:A(`watch`,60284),whitespace:A(`whitespace`,60285),wholeWord:A(`whole-word`,60286),window:A(`window`,60287),wordWrap:A(`word-wrap`,60288),zoomIn:A(`zoom-in`,60289),zoomOut:A(`zoom-out`,60290),listFilter:A(`list-filter`,60291),listFlat:A(`list-flat`,60292),listSelection:A(`list-selection`,60293),selection:A(`selection`,60293),listTree:A(`list-tree`,60294),debugBreakpointFunctionUnverified:A(`debug-breakpoint-function-unverified`,60295),debugBreakpointFunction:A(`debug-breakpoint-function`,60296),debugBreakpointFunctionDisabled:A(`debug-breakpoint-function-disabled`,60296),debugStackframeActive:A(`debug-stackframe-active`,60297),circleSmallFilled:A(`circle-small-filled`,60298),debugStackframeDot:A(`debug-stackframe-dot`,60298),terminalDecorationMark:A(`terminal-decoration-mark`,60298),debugStackframe:A(`debug-stackframe`,60299),debugStackframeFocused:A(`debug-stackframe-focused`,60299),debugBreakpointUnsupported:A(`debug-breakpoint-unsupported`,60300),symbolString:A(`symbol-string`,60301),debugReverseContinue:A(`debug-reverse-continue`,60302),debugStepBack:A(`debug-step-back`,60303),debugRestartFrame:A(`debug-restart-frame`,60304),debugAlt:A(`debug-alt`,60305),callIncoming:A(`call-incoming`,60306),callOutgoing:A(`call-outgoing`,60307),menu:A(`menu`,60308),expandAll:A(`expand-all`,60309),feedback:A(`feedback`,60310),gitPullRequestReviewer:A(`git-pull-request-reviewer`,60310),groupByRefType:A(`group-by-ref-type`,60311),ungroupByRefType:A(`ungroup-by-ref-type`,60312),account:A(`account`,60313),gitPullRequestAssignee:A(`git-pull-request-assignee`,60313),bellDot:A(`bell-dot`,60314),debugConsole:A(`debug-console`,60315),library:A(`library`,60316),output:A(`output`,60317),runAll:A(`run-all`,60318),syncIgnored:A(`sync-ignored`,60319),pinned:A(`pinned`,60320),githubInverted:A(`github-inverted`,60321),serverProcess:A(`server-process`,60322),serverEnvironment:A(`server-environment`,60323),pass:A(`pass`,60324),issueClosed:A(`issue-closed`,60324),stopCircle:A(`stop-circle`,60325),playCircle:A(`play-circle`,60326),record:A(`record`,60327),debugAltSmall:A(`debug-alt-small`,60328),vmConnect:A(`vm-connect`,60329),cloud:A(`cloud`,60330),merge:A(`merge`,60331),export:A(`export`,60332),graphLeft:A(`graph-left`,60333),magnet:A(`magnet`,60334),notebook:A(`notebook`,60335),redo:A(`redo`,60336),checkAll:A(`check-all`,60337),pinnedDirty:A(`pinned-dirty`,60338),passFilled:A(`pass-filled`,60339),circleLargeFilled:A(`circle-large-filled`,60340),circleLarge:A(`circle-large`,60341),circleLargeOutline:A(`circle-large-outline`,60341),combine:A(`combine`,60342),gather:A(`gather`,60342),table:A(`table`,60343),variableGroup:A(`variable-group`,60344),typeHierarchy:A(`type-hierarchy`,60345),typeHierarchySub:A(`type-hierarchy-sub`,60346),typeHierarchySuper:A(`type-hierarchy-super`,60347),gitPullRequestCreate:A(`git-pull-request-create`,60348),runAbove:A(`run-above`,60349),runBelow:A(`run-below`,60350),notebookTemplate:A(`notebook-template`,60351),debugRerun:A(`debug-rerun`,60352),workspaceTrusted:A(`workspace-trusted`,60353),workspaceUntrusted:A(`workspace-untrusted`,60354),workspaceUnknown:A(`workspace-unknown`,60355),terminalCmd:A(`terminal-cmd`,60356),terminalDebian:A(`terminal-debian`,60357),terminalLinux:A(`terminal-linux`,60358),terminalPowershell:A(`terminal-powershell`,60359),terminalTmux:A(`terminal-tmux`,60360),terminalUbuntu:A(`terminal-ubuntu`,60361),terminalBash:A(`terminal-bash`,60362),arrowSwap:A(`arrow-swap`,60363),copy:A(`copy`,60364),personAdd:A(`person-add`,60365),filterFilled:A(`filter-filled`,60366),wand:A(`wand`,60367),debugLineByLine:A(`debug-line-by-line`,60368),inspect:A(`inspect`,60369),layers:A(`layers`,60370),layersDot:A(`layers-dot`,60371),layersActive:A(`layers-active`,60372),compass:A(`compass`,60373),compassDot:A(`compass-dot`,60374),compassActive:A(`compass-active`,60375),azure:A(`azure`,60376),issueDraft:A(`issue-draft`,60377),gitPullRequestClosed:A(`git-pull-request-closed`,60378),gitPullRequestDraft:A(`git-pull-request-draft`,60379),debugAll:A(`debug-all`,60380),debugCoverage:A(`debug-coverage`,60381),runErrors:A(`run-errors`,60382),folderLibrary:A(`folder-library`,60383),debugContinueSmall:A(`debug-continue-small`,60384),beakerStop:A(`beaker-stop`,60385),graphLine:A(`graph-line`,60386),graphScatter:A(`graph-scatter`,60387),pieChart:A(`pie-chart`,60388),bracket:A(`bracket`,60175),bracketDot:A(`bracket-dot`,60389),bracketError:A(`bracket-error`,60390),lockSmall:A(`lock-small`,60391),azureDevops:A(`azure-devops`,60392),verifiedFilled:A(`verified-filled`,60393),newline:A(`newline`,60394),layout:A(`layout`,60395),layoutActivitybarLeft:A(`layout-activitybar-left`,60396),layoutActivitybarRight:A(`layout-activitybar-right`,60397),layoutPanelLeft:A(`layout-panel-left`,60398),layoutPanelCenter:A(`layout-panel-center`,60399),layoutPanelJustify:A(`layout-panel-justify`,60400),layoutPanelRight:A(`layout-panel-right`,60401),layoutPanel:A(`layout-panel`,60402),layoutSidebarLeft:A(`layout-sidebar-left`,60403),layoutSidebarRight:A(`layout-sidebar-right`,60404),layoutStatusbar:A(`layout-statusbar`,60405),layoutMenubar:A(`layout-menubar`,60406),layoutCentered:A(`layout-centered`,60407),target:A(`target`,60408),indent:A(`indent`,60409),recordSmall:A(`record-small`,60410),errorSmall:A(`error-small`,60411),terminalDecorationError:A(`terminal-decoration-error`,60411),arrowCircleDown:A(`arrow-circle-down`,60412),arrowCircleLeft:A(`arrow-circle-left`,60413),arrowCircleRight:A(`arrow-circle-right`,60414),arrowCircleUp:A(`arrow-circle-up`,60415),layoutSidebarRightOff:A(`layout-sidebar-right-off`,60416),layoutPanelOff:A(`layout-panel-off`,60417),layoutSidebarLeftOff:A(`layout-sidebar-left-off`,60418),blank:A(`blank`,60419),heartFilled:A(`heart-filled`,60420),map:A(`map`,60421),mapHorizontal:A(`map-horizontal`,60421),foldHorizontal:A(`fold-horizontal`,60421),mapFilled:A(`map-filled`,60422),mapHorizontalFilled:A(`map-horizontal-filled`,60422),foldHorizontalFilled:A(`fold-horizontal-filled`,60422),circleSmall:A(`circle-small`,60423),bellSlash:A(`bell-slash`,60424),bellSlashDot:A(`bell-slash-dot`,60425),commentUnresolved:A(`comment-unresolved`,60426),gitPullRequestGoToChanges:A(`git-pull-request-go-to-changes`,60427),gitPullRequestNewChanges:A(`git-pull-request-new-changes`,60428),searchFuzzy:A(`search-fuzzy`,60429),commentDraft:A(`comment-draft`,60430),send:A(`send`,60431),sparkle:A(`sparkle`,60432),insert:A(`insert`,60433),mic:A(`mic`,60434),thumbsdownFilled:A(`thumbsdown-filled`,60435),thumbsupFilled:A(`thumbsup-filled`,60436),coffee:A(`coffee`,60437),snake:A(`snake`,60438),game:A(`game`,60439),vr:A(`vr`,60440),chip:A(`chip`,60441),piano:A(`piano`,60442),music:A(`music`,60443),micFilled:A(`mic-filled`,60444),repoFetch:A(`repo-fetch`,60445),copilot:A(`copilot`,60446),lightbulbSparkle:A(`lightbulb-sparkle`,60447),robot:A(`robot`,60448),sparkleFilled:A(`sparkle-filled`,60449),diffSingle:A(`diff-single`,60450),diffMultiple:A(`diff-multiple`,60451),surroundWith:A(`surround-with`,60452),share:A(`share`,60453),gitStash:A(`git-stash`,60454),gitStashApply:A(`git-stash-apply`,60455),gitStashPop:A(`git-stash-pop`,60456),vscode:A(`vscode`,60457),vscodeInsiders:A(`vscode-insiders`,60458),codeOss:A(`code-oss`,60459),runCoverage:A(`run-coverage`,60460),runAllCoverage:A(`run-all-coverage`,60461),coverage:A(`coverage`,60462),githubProject:A(`github-project`,60463),mapVertical:A(`map-vertical`,60464),foldVertical:A(`fold-vertical`,60464),mapVerticalFilled:A(`map-vertical-filled`,60465),foldVerticalFilled:A(`fold-vertical-filled`,60465),goToSearch:A(`go-to-search`,60466),percentage:A(`percentage`,60467),sortPercentage:A(`sort-percentage`,60467),attach:A(`attach`,60468),goToEditingSession:A(`go-to-editing-session`,60469),editSession:A(`edit-session`,60470),codeReview:A(`code-review`,60471),copilotWarning:A(`copilot-warning`,60472),python:A(`python`,60473),copilotLarge:A(`copilot-large`,60474),copilotWarningLarge:A(`copilot-warning-large`,60475),keyboardTab:A(`keyboard-tab`,60476),copilotBlocked:A(`copilot-blocked`,60477),copilotNotConnected:A(`copilot-not-connected`,60478),flag:A(`flag`,60479),lightbulbEmpty:A(`lightbulb-empty`,60480),symbolMethodArrow:A(`symbol-method-arrow`,60481),copilotUnavailable:A(`copilot-unavailable`,60482),repoPinned:A(`repo-pinned`,60483),keyboardTabAbove:A(`keyboard-tab-above`,60484),keyboardTabBelow:A(`keyboard-tab-below`,60485),gitPullRequestDone:A(`git-pull-request-done`,60486),mcp:A(`mcp`,60487),extensionsLarge:A(`extensions-large`,60488),layoutPanelDock:A(`layout-panel-dock`,60489),layoutSidebarLeftDock:A(`layout-sidebar-left-dock`,60490),layoutSidebarRightDock:A(`layout-sidebar-right-dock`,60491),copilotInProgress:A(`copilot-in-progress`,60492),copilotError:A(`copilot-error`,60493),copilotSuccess:A(`copilot-success`,60494),chatSparkle:A(`chat-sparkle`,60495),searchSparkle:A(`search-sparkle`,60496),editSparkle:A(`edit-sparkle`,60497),copilotSnooze:A(`copilot-snooze`,60498),sendToRemoteAgent:A(`send-to-remote-agent`,60499),commentDiscussionSparkle:A(`comment-discussion-sparkle`,60500),chatSparkleWarning:A(`chat-sparkle-warning`,60501),chatSparkleError:A(`chat-sparkle-error`,60502),collection:A(`collection`,60503),newCollection:A(`new-collection`,60504),thinking:A(`thinking`,60505),build:A(`build`,60506),commentDiscussionQuote:A(`comment-discussion-quote`,60507),cursor:A(`cursor`,60508),eraser:A(`eraser`,60509),fileText:A(`file-text`,60510),gitLens:A(`git-lens`,60511),quotes:A(`quotes`,60512),rename:A(`rename`,60513),runWithDeps:A(`run-with-deps`,60514),debugConnected:A(`debug-connected`,60515),strikethrough:A(`strikethrough`,60516),openInProduct:A(`open-in-product`,60517),indexZero:A(`index-zero`,60518),agent:A(`agent`,60519),editCode:A(`edit-code`,60520),repoSelected:A(`repo-selected`,60521),skip:A(`skip`,60522),mergeInto:A(`merge-into`,60523),gitBranchChanges:A(`git-branch-changes`,60524),gitBranchStagedChanges:A(`git-branch-staged-changes`,60525),gitBranchConflicts:A(`git-branch-conflicts`,60526),gitBranch:A(`git-branch`,60527),gitBranchCreate:A(`git-branch-create`,60527),gitBranchDelete:A(`git-branch-delete`,60527),searchLarge:A(`search-large`,60528),terminalGitBash:A(`terminal-git-bash`,60529)},Mn={dialogError:A(`dialog-error`,`error`),dialogWarning:A(`dialog-warning`,`warning`),dialogInfo:A(`dialog-info`,`info`),dialogClose:A(`dialog-close`,`close`),treeItemExpanded:A(`tree-item-expanded`,`chevron-down`),treeFilterOnTypeOn:A(`tree-filter-on-type-on`,`list-filter`),treeFilterOnTypeOff:A(`tree-filter-on-type-off`,`list-selection`),treeFilterClear:A(`tree-filter-clear`,`close`),treeItemLoading:A(`tree-item-loading`,`loading`),menuSelection:A(`menu-selection`,`check`),menuSubmenu:A(`menu-submenu`,`chevron-right`),menuBarMore:A(`menubar-more`,`more`),scrollbarButtonLeft:A(`scrollbar-button-left`,`triangle-left`),scrollbarButtonRight:A(`scrollbar-button-right`,`triangle-right`),scrollbarButtonUp:A(`scrollbar-button-up`,`triangle-up`),scrollbarButtonDown:A(`scrollbar-button-down`,`triangle-down`),toolBarMore:A(`toolbar-more`,`more`),quickInputBack:A(`quick-input-back`,`arrow-left`),dropDownButton:A(`drop-down-button`,60084),symbolCustomColor:A(`symbol-customcolor`,60252),exportIcon:A(`export`,60332),workspaceUnspecified:A(`workspace-unspecified`,60355),newLine:A(`newline`,60394),thumbsDownFilled:A(`thumbsdown-filled`,60435),thumbsUpFilled:A(`thumbsup-filled`,60436),gitFetch:A(`git-fetch`,60445),lightbulbSparkleAutofix:A(`lightbulb-sparkle-autofix`,60447),debugBreakpointPending:A(`debug-breakpoint-pending`,60377)},j={...jn,...Mn};var Nn=class{constructor(){this._tokenizationSupports=/* @__PURE__ */ new Map,this._factories=/* @__PURE__ */ new Map,this._onDidChange=new oe,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),_(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new Pn(this,e,t);return this._factories.set(e,n),_(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Pn=class extends y{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||=this._create(),this._resolvePromise}async _create(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}},Fn=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return`(`+this.offset+`, `+this.type+`)`}},In;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(In||={});var Ln;(function(e){let t=/* @__PURE__ */ new Map;t.set(0,j.symbolMethod),t.set(1,j.symbolFunction),t.set(2,j.symbolConstructor),t.set(3,j.symbolField),t.set(4,j.symbolVariable),t.set(5,j.symbolClass),t.set(6,j.symbolStruct),t.set(7,j.symbolInterface),t.set(8,j.symbolModule),t.set(9,j.symbolProperty),t.set(10,j.symbolEvent),t.set(11,j.symbolOperator),t.set(12,j.symbolUnit),t.set(13,j.symbolValue),t.set(15,j.symbolEnum),t.set(14,j.symbolConstant),t.set(15,j.symbolEnum),t.set(16,j.symbolEnumMember),t.set(17,j.symbolKeyword),t.set(28,j.symbolSnippet),t.set(18,j.symbolText),t.set(19,j.symbolColor),t.set(20,j.symbolFile),t.set(21,j.symbolReference),t.set(22,j.symbolCustomColor),t.set(23,j.symbolFolder),t.set(24,j.symbolTypeParameter),t.set(25,j.account),t.set(26,j.issues),t.set(27,j.tools);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for CompletionItemKind `+e),j.symbolProperty),n}e.toIcon=n;function r(e){switch(e){case 0:return T(728,`Method`);case 1:return T(729,`Function`);case 2:return T(730,`Constructor`);case 3:return T(731,`Field`);case 4:return T(732,`Variable`);case 5:return T(733,`Class`);case 6:return T(734,`Struct`);case 7:return T(735,`Interface`);case 8:return T(736,`Module`);case 9:return T(737,`Property`);case 10:return T(738,`Event`);case 11:return T(739,`Operator`);case 12:return T(740,`Unit`);case 13:return T(741,`Value`);case 14:return T(742,`Constant`);case 15:return T(743,`Enum`);case 16:return T(744,`Enum Member`);case 17:return T(745,`Keyword`);case 18:return T(746,`Text`);case 19:return T(747,`Color`);case 20:return T(748,`File`);case 21:return T(749,`Reference`);case 22:return T(750,`Custom Color`);case 23:return T(751,`Folder`);case 24:return T(752,`Type Parameter`);case 25:return T(753,`User`);case 26:return T(754,`Issue`);case 27:return T(755,`Tool`);case 28:return T(756,`Snippet`);default:return``}}e.toLabel=r;let i=/* @__PURE__ */ new Map;i.set(`method`,0),i.set(`function`,1),i.set(`constructor`,2),i.set(`field`,3),i.set(`variable`,4),i.set(`class`,5),i.set(`struct`,6),i.set(`interface`,7),i.set(`module`,8),i.set(`property`,9),i.set(`event`,10),i.set(`operator`,11),i.set(`unit`,12),i.set(`value`,13),i.set(`constant`,14),i.set(`enum`,15),i.set(`enum-member`,16),i.set(`enumMember`,16),i.set(`keyword`,17),i.set(`snippet`,28),i.set(`text`,18),i.set(`color`,19),i.set(`file`,20),i.set(`reference`,21),i.set(`customcolor`,22),i.set(`folder`,23),i.set(`type-parameter`,24),i.set(`typeParameter`,24),i.set(`account`,25),i.set(`issue`,26),i.set(`tool`,27);function a(e,t){let n=i.get(e);return n===void 0&&!t&&(n=9),n}e.fromString=a})(Ln||={});var Rn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(Rn||={});var zn;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(zn||={});var Bn;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(Bn||={});var Vn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.PasteAs=1]=`PasteAs`})(Vn||={});var Hn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Hn||={});var Un;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(Un||={}),T(757,`array`),T(758,`boolean`),T(759,`class`),T(760,`constant`),T(761,`constructor`),T(762,`enumeration`),T(763,`enumeration member`),T(764,`event`),T(765,`field`),T(766,`file`),T(767,`function`),T(768,`interface`),T(769,`key`),T(770,`method`),T(771,`module`),T(772,`namespace`),T(773,`null`),T(774,`number`),T(775,`object`),T(776,`operator`),T(777,`package`),T(778,`property`),T(779,`string`),T(780,`struct`),T(781,`type parameter`),T(782,`variable`);var Wn;(function(e){let t=/* @__PURE__ */ new Map;t.set(0,j.symbolFile),t.set(1,j.symbolModule),t.set(2,j.symbolNamespace),t.set(3,j.symbolPackage),t.set(4,j.symbolClass),t.set(5,j.symbolMethod),t.set(6,j.symbolProperty),t.set(7,j.symbolField),t.set(8,j.symbolConstructor),t.set(9,j.symbolEnum),t.set(10,j.symbolInterface),t.set(11,j.symbolFunction),t.set(12,j.symbolVariable),t.set(13,j.symbolConstant),t.set(14,j.symbolString),t.set(15,j.symbolNumber),t.set(16,j.symbolBoolean),t.set(17,j.symbolArray),t.set(18,j.symbolObject),t.set(19,j.symbolKey),t.set(20,j.symbolNull),t.set(21,j.symbolEnumMember),t.set(22,j.symbolStruct),t.set(23,j.symbolEvent),t.set(24,j.symbolOperator),t.set(25,j.symbolTypeParameter);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for SymbolKind `+e),j.symbolProperty),n}e.toIcon=n;let r=/* @__PURE__ */ new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(e){let t=r.get(e);return t===void 0&&(console.info(`No completion kind found for SymbolKind `+e),t=20),t}e.toCompletionKind=i})(Wn||={}),class e{static{this.Comment=new e(`comment`)}static{this.Imports=new e(`imports`)}static{this.Region=new e(`region`)}static fromValue(t){switch(t){case`comment`:return e.Comment;case`imports`:return e.Imports;case`region`:return e.Region}return new e(t)}constructor(e){this.value=e}};var Gn;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Gn||={});var Kn;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(Kn||={});var qn;(function(e){function t(e){return!e||typeof e!=`object`?!1:typeof e.id==`string`&&typeof e.title==`string`}e.is=t})(qn||={});var Jn;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(Jn||={}),new Nn;var Yn;(function(e){e[e.Unknown=0]=`Unknown`,e[e.Disabled=1]=`Disabled`,e[e.Enabled=2]=`Enabled`})(Yn||={});var Xn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.Auto=2]=`Auto`})(Xn||={});var Zn;(function(e){e[e.None=0]=`None`,e[e.KeepWhitespace=1]=`KeepWhitespace`,e[e.InsertAsSnippet=4]=`InsertAsSnippet`})(Zn||={});var Qn;(function(e){e[e.Method=0]=`Method`,e[e.Function=1]=`Function`,e[e.Constructor=2]=`Constructor`,e[e.Field=3]=`Field`,e[e.Variable=4]=`Variable`,e[e.Class=5]=`Class`,e[e.Struct=6]=`Struct`,e[e.Interface=7]=`Interface`,e[e.Module=8]=`Module`,e[e.Property=9]=`Property`,e[e.Event=10]=`Event`,e[e.Operator=11]=`Operator`,e[e.Unit=12]=`Unit`,e[e.Value=13]=`Value`,e[e.Constant=14]=`Constant`,e[e.Enum=15]=`Enum`,e[e.EnumMember=16]=`EnumMember`,e[e.Keyword=17]=`Keyword`,e[e.Text=18]=`Text`,e[e.Color=19]=`Color`,e[e.File=20]=`File`,e[e.Reference=21]=`Reference`,e[e.Customcolor=22]=`Customcolor`,e[e.Folder=23]=`Folder`,e[e.TypeParameter=24]=`TypeParameter`,e[e.User=25]=`User`,e[e.Issue=26]=`Issue`,e[e.Tool=27]=`Tool`,e[e.Snippet=28]=`Snippet`})(Qn||={});var $n;(function(e){e[e.Deprecated=1]=`Deprecated`})($n||={});var er;(function(e){e[e.Invoke=0]=`Invoke`,e[e.TriggerCharacter=1]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=2]=`TriggerForIncompleteCompletions`})(er||={});var tr;(function(e){e[e.EXACT=0]=`EXACT`,e[e.ABOVE=1]=`ABOVE`,e[e.BELOW=2]=`BELOW`})(tr||={});var nr;(function(e){e[e.NotSet=0]=`NotSet`,e[e.ContentFlush=1]=`ContentFlush`,e[e.RecoverFromMarkers=2]=`RecoverFromMarkers`,e[e.Explicit=3]=`Explicit`,e[e.Paste=4]=`Paste`,e[e.Undo=5]=`Undo`,e[e.Redo=6]=`Redo`})(nr||={});var rr;(function(e){e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(rr||={});var ir;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(ir||={});var ar;(function(e){e[e.None=0]=`None`,e[e.Keep=1]=`Keep`,e[e.Brackets=2]=`Brackets`,e[e.Advanced=3]=`Advanced`,e[e.Full=4]=`Full`})(ar||={});var or;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]=`acceptSuggestionOnCommitCharacter`,e[e.acceptSuggestionOnEnter=1]=`acceptSuggestionOnEnter`,e[e.accessibilitySupport=2]=`accessibilitySupport`,e[e.accessibilityPageSize=3]=`accessibilityPageSize`,e[e.allowOverflow=4]=`allowOverflow`,e[e.allowVariableLineHeights=5]=`allowVariableLineHeights`,e[e.allowVariableFonts=6]=`allowVariableFonts`,e[e.allowVariableFontsInAccessibilityMode=7]=`allowVariableFontsInAccessibilityMode`,e[e.ariaLabel=8]=`ariaLabel`,e[e.ariaRequired=9]=`ariaRequired`,e[e.autoClosingBrackets=10]=`autoClosingBrackets`,e[e.autoClosingComments=11]=`autoClosingComments`,e[e.screenReaderAnnounceInlineSuggestion=12]=`screenReaderAnnounceInlineSuggestion`,e[e.autoClosingDelete=13]=`autoClosingDelete`,e[e.autoClosingOvertype=14]=`autoClosingOvertype`,e[e.autoClosingQuotes=15]=`autoClosingQuotes`,e[e.autoIndent=16]=`autoIndent`,e[e.autoIndentOnPaste=17]=`autoIndentOnPaste`,e[e.autoIndentOnPasteWithinString=18]=`autoIndentOnPasteWithinString`,e[e.automaticLayout=19]=`automaticLayout`,e[e.autoSurround=20]=`autoSurround`,e[e.bracketPairColorization=21]=`bracketPairColorization`,e[e.guides=22]=`guides`,e[e.codeLens=23]=`codeLens`,e[e.codeLensFontFamily=24]=`codeLensFontFamily`,e[e.codeLensFontSize=25]=`codeLensFontSize`,e[e.colorDecorators=26]=`colorDecorators`,e[e.colorDecoratorsLimit=27]=`colorDecoratorsLimit`,e[e.columnSelection=28]=`columnSelection`,e[e.comments=29]=`comments`,e[e.contextmenu=30]=`contextmenu`,e[e.copyWithSyntaxHighlighting=31]=`copyWithSyntaxHighlighting`,e[e.cursorBlinking=32]=`cursorBlinking`,e[e.cursorSmoothCaretAnimation=33]=`cursorSmoothCaretAnimation`,e[e.cursorStyle=34]=`cursorStyle`,e[e.cursorSurroundingLines=35]=`cursorSurroundingLines`,e[e.cursorSurroundingLinesStyle=36]=`cursorSurroundingLinesStyle`,e[e.cursorWidth=37]=`cursorWidth`,e[e.cursorHeight=38]=`cursorHeight`,e[e.disableLayerHinting=39]=`disableLayerHinting`,e[e.disableMonospaceOptimizations=40]=`disableMonospaceOptimizations`,e[e.domReadOnly=41]=`domReadOnly`,e[e.dragAndDrop=42]=`dragAndDrop`,e[e.dropIntoEditor=43]=`dropIntoEditor`,e[e.editContext=44]=`editContext`,e[e.emptySelectionClipboard=45]=`emptySelectionClipboard`,e[e.experimentalGpuAcceleration=46]=`experimentalGpuAcceleration`,e[e.experimentalWhitespaceRendering=47]=`experimentalWhitespaceRendering`,e[e.extraEditorClassName=48]=`extraEditorClassName`,e[e.fastScrollSensitivity=49]=`fastScrollSensitivity`,e[e.find=50]=`find`,e[e.fixedOverflowWidgets=51]=`fixedOverflowWidgets`,e[e.folding=52]=`folding`,e[e.foldingStrategy=53]=`foldingStrategy`,e[e.foldingHighlight=54]=`foldingHighlight`,e[e.foldingImportsByDefault=55]=`foldingImportsByDefault`,e[e.foldingMaximumRegions=56]=`foldingMaximumRegions`,e[e.unfoldOnClickAfterEndOfLine=57]=`unfoldOnClickAfterEndOfLine`,e[e.fontFamily=58]=`fontFamily`,e[e.fontInfo=59]=`fontInfo`,e[e.fontLigatures=60]=`fontLigatures`,e[e.fontSize=61]=`fontSize`,e[e.fontWeight=62]=`fontWeight`,e[e.fontVariations=63]=`fontVariations`,e[e.formatOnPaste=64]=`formatOnPaste`,e[e.formatOnType=65]=`formatOnType`,e[e.glyphMargin=66]=`glyphMargin`,e[e.gotoLocation=67]=`gotoLocation`,e[e.hideCursorInOverviewRuler=68]=`hideCursorInOverviewRuler`,e[e.hover=69]=`hover`,e[e.inDiffEditor=70]=`inDiffEditor`,e[e.inlineSuggest=71]=`inlineSuggest`,e[e.letterSpacing=72]=`letterSpacing`,e[e.lightbulb=73]=`lightbulb`,e[e.lineDecorationsWidth=74]=`lineDecorationsWidth`,e[e.lineHeight=75]=`lineHeight`,e[e.lineNumbers=76]=`lineNumbers`,e[e.lineNumbersMinChars=77]=`lineNumbersMinChars`,e[e.linkedEditing=78]=`linkedEditing`,e[e.links=79]=`links`,e[e.matchBrackets=80]=`matchBrackets`,e[e.minimap=81]=`minimap`,e[e.mouseStyle=82]=`mouseStyle`,e[e.mouseWheelScrollSensitivity=83]=`mouseWheelScrollSensitivity`,e[e.mouseWheelZoom=84]=`mouseWheelZoom`,e[e.multiCursorMergeOverlapping=85]=`multiCursorMergeOverlapping`,e[e.multiCursorModifier=86]=`multiCursorModifier`,e[e.mouseMiddleClickAction=87]=`mouseMiddleClickAction`,e[e.multiCursorPaste=88]=`multiCursorPaste`,e[e.multiCursorLimit=89]=`multiCursorLimit`,e[e.occurrencesHighlight=90]=`occurrencesHighlight`,e[e.occurrencesHighlightDelay=91]=`occurrencesHighlightDelay`,e[e.overtypeCursorStyle=92]=`overtypeCursorStyle`,e[e.overtypeOnPaste=93]=`overtypeOnPaste`,e[e.overviewRulerBorder=94]=`overviewRulerBorder`,e[e.overviewRulerLanes=95]=`overviewRulerLanes`,e[e.padding=96]=`padding`,e[e.pasteAs=97]=`pasteAs`,e[e.parameterHints=98]=`parameterHints`,e[e.peekWidgetDefaultFocus=99]=`peekWidgetDefaultFocus`,e[e.placeholder=100]=`placeholder`,e[e.definitionLinkOpensInPeek=101]=`definitionLinkOpensInPeek`,e[e.quickSuggestions=102]=`quickSuggestions`,e[e.quickSuggestionsDelay=103]=`quickSuggestionsDelay`,e[e.readOnly=104]=`readOnly`,e[e.readOnlyMessage=105]=`readOnlyMessage`,e[e.renameOnType=106]=`renameOnType`,e[e.renderRichScreenReaderContent=107]=`renderRichScreenReaderContent`,e[e.renderControlCharacters=108]=`renderControlCharacters`,e[e.renderFinalNewline=109]=`renderFinalNewline`,e[e.renderLineHighlight=110]=`renderLineHighlight`,e[e.renderLineHighlightOnlyWhenFocus=111]=`renderLineHighlightOnlyWhenFocus`,e[e.renderValidationDecorations=112]=`renderValidationDecorations`,e[e.renderWhitespace=113]=`renderWhitespace`,e[e.revealHorizontalRightPadding=114]=`revealHorizontalRightPadding`,e[e.roundedSelection=115]=`roundedSelection`,e[e.rulers=116]=`rulers`,e[e.scrollbar=117]=`scrollbar`,e[e.scrollBeyondLastColumn=118]=`scrollBeyondLastColumn`,e[e.scrollBeyondLastLine=119]=`scrollBeyondLastLine`,e[e.scrollPredominantAxis=120]=`scrollPredominantAxis`,e[e.selectionClipboard=121]=`selectionClipboard`,e[e.selectionHighlight=122]=`selectionHighlight`,e[e.selectionHighlightMaxLength=123]=`selectionHighlightMaxLength`,e[e.selectionHighlightMultiline=124]=`selectionHighlightMultiline`,e[e.selectOnLineNumbers=125]=`selectOnLineNumbers`,e[e.showFoldingControls=126]=`showFoldingControls`,e[e.showUnused=127]=`showUnused`,e[e.snippetSuggestions=128]=`snippetSuggestions`,e[e.smartSelect=129]=`smartSelect`,e[e.smoothScrolling=130]=`smoothScrolling`,e[e.stickyScroll=131]=`stickyScroll`,e[e.stickyTabStops=132]=`stickyTabStops`,e[e.stopRenderingLineAfter=133]=`stopRenderingLineAfter`,e[e.suggest=134]=`suggest`,e[e.suggestFontSize=135]=`suggestFontSize`,e[e.suggestLineHeight=136]=`suggestLineHeight`,e[e.suggestOnTriggerCharacters=137]=`suggestOnTriggerCharacters`,e[e.suggestSelection=138]=`suggestSelection`,e[e.tabCompletion=139]=`tabCompletion`,e[e.tabIndex=140]=`tabIndex`,e[e.trimWhitespaceOnDelete=141]=`trimWhitespaceOnDelete`,e[e.unicodeHighlighting=142]=`unicodeHighlighting`,e[e.unusualLineTerminators=143]=`unusualLineTerminators`,e[e.useShadowDOM=144]=`useShadowDOM`,e[e.useTabStops=145]=`useTabStops`,e[e.wordBreak=146]=`wordBreak`,e[e.wordSegmenterLocales=147]=`wordSegmenterLocales`,e[e.wordSeparators=148]=`wordSeparators`,e[e.wordWrap=149]=`wordWrap`,e[e.wordWrapBreakAfterCharacters=150]=`wordWrapBreakAfterCharacters`,e[e.wordWrapBreakBeforeCharacters=151]=`wordWrapBreakBeforeCharacters`,e[e.wordWrapColumn=152]=`wordWrapColumn`,e[e.wordWrapOverride1=153]=`wordWrapOverride1`,e[e.wordWrapOverride2=154]=`wordWrapOverride2`,e[e.wrappingIndent=155]=`wrappingIndent`,e[e.wrappingStrategy=156]=`wrappingStrategy`,e[e.showDeprecated=157]=`showDeprecated`,e[e.inertialScroll=158]=`inertialScroll`,e[e.inlayHints=159]=`inlayHints`,e[e.wrapOnEscapedLineFeeds=160]=`wrapOnEscapedLineFeeds`,e[e.effectiveCursorStyle=161]=`effectiveCursorStyle`,e[e.editorClassName=162]=`editorClassName`,e[e.pixelRatio=163]=`pixelRatio`,e[e.tabFocusMode=164]=`tabFocusMode`,e[e.layoutInfo=165]=`layoutInfo`,e[e.wrappingInfo=166]=`wrappingInfo`,e[e.defaultColorDecorators=167]=`defaultColorDecorators`,e[e.colorDecoratorsActivatedOn=168]=`colorDecoratorsActivatedOn`,e[e.inlineCompletionsAccessibilityVerbose=169]=`inlineCompletionsAccessibilityVerbose`,e[e.effectiveEditContext=170]=`effectiveEditContext`,e[e.scrollOnMiddleClick=171]=`scrollOnMiddleClick`,e[e.effectiveAllowVariableFonts=172]=`effectiveAllowVariableFonts`})(or||={});var sr;(function(e){e[e.TextDefined=0]=`TextDefined`,e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(sr||={});var cr;(function(e){e[e.LF=0]=`LF`,e[e.CRLF=1]=`CRLF`})(cr||={});var lr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(lr||={});var ur;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(ur||={});var dr;(function(e){e[e.None=0]=`None`,e[e.Indent=1]=`Indent`,e[e.IndentOutdent=2]=`IndentOutdent`,e[e.Outdent=3]=`Outdent`})(dr||={});var fr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(fr||={});var pr;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(pr||={});var mr;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(mr||={});var hr;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(hr||={});var gr;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(gr||={});var _r;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(_r||={});var vr;(function(e){e[e.Hint=1]=`Hint`,e[e.Info=2]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=8]=`Error`})(vr||={});var yr;(function(e){e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`})(yr||={});var br;(function(e){e[e.Inline=1]=`Inline`,e[e.Gutter=2]=`Gutter`})(br||={});var xr;(function(e){e[e.Normal=1]=`Normal`,e[e.Underlined=2]=`Underlined`})(xr||={});var Sr;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.TEXTAREA=1]=`TEXTAREA`,e[e.GUTTER_GLYPH_MARGIN=2]=`GUTTER_GLYPH_MARGIN`,e[e.GUTTER_LINE_NUMBERS=3]=`GUTTER_LINE_NUMBERS`,e[e.GUTTER_LINE_DECORATIONS=4]=`GUTTER_LINE_DECORATIONS`,e[e.GUTTER_VIEW_ZONE=5]=`GUTTER_VIEW_ZONE`,e[e.CONTENT_TEXT=6]=`CONTENT_TEXT`,e[e.CONTENT_EMPTY=7]=`CONTENT_EMPTY`,e[e.CONTENT_VIEW_ZONE=8]=`CONTENT_VIEW_ZONE`,e[e.CONTENT_WIDGET=9]=`CONTENT_WIDGET`,e[e.OVERVIEW_RULER=10]=`OVERVIEW_RULER`,e[e.SCROLLBAR=11]=`SCROLLBAR`,e[e.OVERLAY_WIDGET=12]=`OVERLAY_WIDGET`,e[e.OUTSIDE_EDITOR=13]=`OUTSIDE_EDITOR`})(Sr||={});var Cr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Cr||={});var wr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(wr||={});var Tr;(function(e){e[e.TOP_RIGHT_CORNER=0]=`TOP_RIGHT_CORNER`,e[e.BOTTOM_RIGHT_CORNER=1]=`BOTTOM_RIGHT_CORNER`,e[e.TOP_CENTER=2]=`TOP_CENTER`})(Tr||={});var Er;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(Er||={});var Dr;(function(e){e[e.Word=0]=`Word`,e[e.Line=1]=`Line`,e[e.Suggest=2]=`Suggest`})(Dr||={});var Or;(function(e){e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e[e.None=2]=`None`,e[e.LeftOfInjectedText=3]=`LeftOfInjectedText`,e[e.RightOfInjectedText=4]=`RightOfInjectedText`})(Or||={});var kr;(function(e){e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Relative=2]=`Relative`,e[e.Interval=3]=`Interval`,e[e.Custom=4]=`Custom`})(kr||={});var Ar;(function(e){e[e.None=0]=`None`,e[e.Text=1]=`Text`,e[e.Blocks=2]=`Blocks`})(Ar||={});var jr;(function(e){e[e.Smooth=0]=`Smooth`,e[e.Immediate=1]=`Immediate`})(jr||={});var Mr;(function(e){e[e.Auto=1]=`Auto`,e[e.Hidden=2]=`Hidden`,e[e.Visible=3]=`Visible`})(Mr||={});var Nr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Nr||={});var Pr;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(Pr||={});var Fr;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Fr||={});var Ir;(function(e){e[e.File=0]=`File`,e[e.Module=1]=`Module`,e[e.Namespace=2]=`Namespace`,e[e.Package=3]=`Package`,e[e.Class=4]=`Class`,e[e.Method=5]=`Method`,e[e.Property=6]=`Property`,e[e.Field=7]=`Field`,e[e.Constructor=8]=`Constructor`,e[e.Enum=9]=`Enum`,e[e.Interface=10]=`Interface`,e[e.Function=11]=`Function`,e[e.Variable=12]=`Variable`,e[e.Constant=13]=`Constant`,e[e.String=14]=`String`,e[e.Number=15]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Array=17]=`Array`,e[e.Object=18]=`Object`,e[e.Key=19]=`Key`,e[e.Null=20]=`Null`,e[e.EnumMember=21]=`EnumMember`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`})(Ir||={});var Lr;(function(e){e[e.Deprecated=1]=`Deprecated`})(Lr||={});var Rr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Rr||={});var zr;(function(e){e[e.Hidden=0]=`Hidden`,e[e.Blink=1]=`Blink`,e[e.Smooth=2]=`Smooth`,e[e.Phase=3]=`Phase`,e[e.Expand=4]=`Expand`,e[e.Solid=5]=`Solid`})(zr||={});var Br;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(Br||={});var Vr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]=`AlwaysGrowsWhenTypingAtEdges`,e[e.NeverGrowsWhenTypingAtEdges=1]=`NeverGrowsWhenTypingAtEdges`,e[e.GrowsOnlyWhenTypingBefore=2]=`GrowsOnlyWhenTypingBefore`,e[e.GrowsOnlyWhenTypingAfter=3]=`GrowsOnlyWhenTypingAfter`})(Vr||={});var Hr;(function(e){e[e.None=0]=`None`,e[e.Same=1]=`Same`,e[e.Indent=2]=`Indent`,e[e.DeepIndent=3]=`DeepIndent`})(Hr||={});var Ur=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return Kt(e,t)}};function Wr(){return{editor:void 0,languages:void 0,CancellationTokenSource:It,Emitter:oe,KeyCode:_r,KeyMod:Ur,Position:E,Range:D,Selection:kn,SelectionDirection:Nr,MarkerSeverity:vr,MarkerTag:yr,Uri:vn,Token:Fn}}var Gr,Kr,qr=class{constructor(e,t){this.uri=e,this.value=t}};function Jr(e){return Array.isArray(e)}(class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[Gr]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(Jr(t)){this.map=/* @__PURE__ */ new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=/* @__PURE__ */ new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new qr(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(Gr=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}});var Yr=class{constructor(){this[Kr]=`LinkedMap`,this._map=/* @__PURE__ */ new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(Kr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(t===1||t===2){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},Xr=class extends Yr{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Zr=class extends Xr{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Qr=class{constructor(){this.map=/* @__PURE__ */ new Map}add(e,t){let n=this.map.get(e);n||(n=/* @__PURE__ */ new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}};new Zr(10);var $r;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})($r||={});var ei;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(ei||={});var ti;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(ti||={});var ni;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(ni||={});function ri(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r===10)return!0;if(r===92){if(t++,t>=n)break;let r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function ii(e,t,n,r,i){if(r===0)return!0;let a=t.charCodeAt(r-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r);if(e.get(n)!==0)return!0}return!1}function ai(e,t,n,r,i){if(r+i===n)return!0;let a=t.charCodeAt(r+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r+i-1);if(e.get(n)!==0)return!0}return!1}function oi(e,t,n,r,i){return ii(e,t,n,r,i)&&ai(e,t,n,r,i)}var si=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){Ve(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||oi(this._wordSeparators,e,t,r,i))return n}while(n);return null}};function ci(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of`\`~!@#$%^&*()-=+[{]}\\|;:'",.<>/?`)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}let li=ci();function ui(e){let t=li;if(e&&e instanceof RegExp){if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}}return t.lastIndex=0,t}let di=new x;di.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function fi(e,t,n,r,i){if(t=ui(t),i||=p.first(di),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),fi(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=pi(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function pi(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var mi=class{static computeUnicodeHighlights(e,t,n){let r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),a=new gi(t),o=a.getCandidateCodePoints(),c;c=RegExp(o===`allNonBasicAscii`?`[^\\t\\n\\r\\x20-\\x7E]`:`${hi(Array.from(o))}`,`g`);let l=new si(null,c),u=[],d=!1,f,p=0,m=0,h=0;forLoop:for(let t=r,n=i;t<=n;t++){let n=e.getLineContent(t),r=n.length;l.reset(0);do if(f=l.next(n),f){let e=f.index,i=f.index+f[0].length;e>0&&Re(n.charCodeAt(e-1))&&e--,i+1<r&&Re(n.charCodeAt(i-1))&&i++;let o=n.substring(e,i),c=fi(e+1,li,n,0);c&&c.endColumn<=e+1&&(c=null);let l=a.shouldHighlightNonBasicASCII(o,c?c.word:null);if(l!==0){if(l===3?p++:l===2?m++:l===1?h++:s(),u.length>=1e3){d=!0;break forLoop}u.push(new D(t,e+1,t,i+1))}}while(f)}return{ranges:u,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:h}}static computeUnicodeHighlightReason(e,t){let n=new gi(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),a=Ge.getLocales().filter(e=>!Ge.getInstance(/* @__PURE__ */ new Set([...t.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function hi(e,t){return`[${Ae(e.map(e=>String.fromCodePoint(e)).join(``))}]`}var gi=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ge.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return`allNonBasicAscii`;let e=/* @__PURE__ */ new Set;if(this.options.invisibleCharacters)for(let t of Ke.codePoints)_i(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(let e of t){let t=e.codePointAt(0),n=Ue(e);r||=n,n||this.ambiguousCharacters.isAmbiguous(t)||Ke.isInvisibleCharacter(t)||(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!_i(e)&&Ke.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function _i(e){return e===` `||e===`
|
|
8
8
|
`||e===` `}var vi=class{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}},yi=class{constructor(e,t){this.lineRangeMapping=e,this.changes=t}};function bi(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*xi(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function Si(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Ci(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function wi(e,t){for(let n of t)e.push(n)}var Ti;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ti||={});function Ei(e,t){return(n,r)=>t(e(n),e(r))}let Di=(e,t)=>e-t;function Oi(e){return(t,n)=>-e(t,n)}(class e{static{this.empty=new e(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Ti.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}});var M=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{let a=Math.min(t.start,n[r].start),o=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new e(a,o))}}static tryCreate(t,n){if(!(t>n))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new o(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new e(n,r)}intersectionLength(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,n-t)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}intersectsOrTouches(e){return Math.max(this.start,e.start)<=Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new o(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new o(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new o(`Invalid join: ${this.toString()} and ${t.toString()}`);return new e(this.start,t.endExclusive)}};function ki(e,t){let n=Ai(e,t);return n===-1?void 0:e[n]}function Ai(e,t,n=0,r=e.length){let i=n,a=r;for(;i<a;){let n=Math.floor((i+a)/2);t(e[n])?i=n+1:a=n}return i-1}function ji(e,t){let n=Mi(e,t);return n===e.length?void 0:e[n]}function Mi(e,t,n=0,r=e.length){let i=n,a=r;for(;i<a;){let n=Math.floor((i+a)/2);t(e[n])?a=n:i=n+1}return i}var Ni=class e{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let e of this._array)if(this._prevFindLastPredicate(e)&&!t(e))throw Error(`MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.`)}this._prevFindLastPredicate=t}let n=Ai(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}},N=class e{static ofLength(t,n){return new e(t,t+n)}static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static{this.compareByStart=Ei(e=>e.startLineNumber,Di)}static joinMany(e){if(e.length===0)return[];let t=new Pi(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new Pi(e[n].slice()));return t.ranges}static join(t){if(t.length===0)throw new o(`lineRanges cannot be empty`);let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let e=1;e<t.length;e++)n=Math.min(n,t[e].startLineNumber),r=Math.max(r,t[e].endLineNumberExclusive);return new e(n,r)}static deserialize(t){return new e(t[0],t[1])}constructor(e,t){if(e>t)throw new o(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new e(n,r)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new D(this.startLineNumber,1,this.endLineNumberExclusive-1,2**53-1)}toExclusiveRange(){return new D(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){let t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new M(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(t,n){return new e(this.startLineNumber-t,this.endLineNumberExclusive+n)}},Pi=class e{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;let t=Mi(this._normalizedRanges,t=>t.endLineNumberExclusive>=e.startLineNumber),n=Ai(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){let n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{let r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){let t=ki(this._normalizedRanges,t=>t.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){let t=ki(this._normalizedRanges,t=>t.startLineNumber<e.endLineNumberExclusive);return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,a=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let e=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){let n=this._normalizedRanges[r],a=t._normalizedRanges[i];n.startLineNumber<a.startLineNumber?(e=n,r++):(e=a,i++)}else r<this._normalizedRanges.length?(e=this._normalizedRanges[r],r++):(e=t._normalizedRanges[i],i++);a===null?a=e:a.endLineNumberExclusive>=e.startLineNumber?a=new N(a.startLineNumber,Math.max(a.endLineNumberExclusive,e.endLineNumberExclusive)):(n.push(a),a=e)}return a!==null&&n.push(a),new e(n)}subtractFrom(t){let n=Mi(this._normalizedRanges,e=>e.endLineNumberExclusive>=t.startLineNumber),r=Ai(this._normalizedRanges,e=>e.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],a=t.startLineNumber;for(let e=n;e<r;e++){let t=this._normalizedRanges[e];t.startLineNumber>a&&i.push(new N(a,t.startLineNumber)),a=t.endLineNumberExclusive}return a<t.endLineNumberExclusive&&i.push(new N(a,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(`, `)}getIntersection(t){let n=[],r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let e=this._normalizedRanges[r],a=t._normalizedRanges[i],o=e.intersect(a);o&&!o.isEmpty&&n.push(o),e.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new e(n)}getWithDelta(t){return new e(this._normalizedRanges.map(e=>e.delta(t)))}},Fi=class e{static{this.zero=new e(0,0)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let e of t)e===`
|
|
9
9
|
`?(n++,r=0):r++;return new e(n,r)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount===e.lineCount?this.columnCount>=e.columnCount:this.lineCount>e.lineCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(e){return this.lineCount===0?new D(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new D(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new D(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return N.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new E(e.lineNumber,e.column+this.columnCount):new E(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}},Ii=class{getOffsetRange(e){return new M(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return D.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Li.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Li.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){let t=e.replacements.map(e=>this.getTextReplacement(e));return new Li.deps.TextEdit(t)}},Li=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw Error(`Dependencies not set. Call _setDependencies first.`);return this._deps}},Ri=class extends Ii{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)e.charAt(t)===`
|
|
10
10
|
`&&(this.lineStartOffsetByLineIdx.push(t+1),t>0&&e.charAt(t-1)===`\r`?this.lineEndOffsetByLineIdx.push(t-1):this.lineEndOffsetByLineIdx.push(t));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){let t=this._validatePosition(e);return this.lineStartOffsetByLineIdx[t.lineNumber-1]+t.column-1}_validatePosition(e){if(e.lineNumber<1)return new E(1,1);let t=this.textLength.lineCount+1;if(e.lineNumber>t)return new E(t,this.getLineLength(t)+1);if(e.column<1)return new E(e.lineNumber,1);let n=this.getLineLength(e.lineNumber);return e.column-1>n?new E(e.lineNumber,n+1):e}getPosition(e){let t=Ai(this.lineStartOffsetByLineIdx,t=>t<=e);return new E(t+1,e-this.lineStartOffsetByLineIdx[t]+1)}get textLength(){let e=this.lineStartOffsetByLineIdx.length-1;return new Li.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}},zi=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new E(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new D(e,1,e,2**53-1)).length}getTransformer(){return this._transformer||=new Ri(this.getValue()),this._transformer}getLineAt(e){return this.getValueOfRange(new D(e,1,e,2**53-1))}},Bi=class extends zi{constructor(e,t){c(t>=1),super(),this._getLineContent=e,this._lineCount=t}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let t=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let n=e.startLineNumber+1;n<e.endLineNumber;n++)t+=`
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
`,`
|
|
20
20
|
`),i=Le(n,r),a=Fi.ofText(n.substring(0,n.length-i)).addToPosition(this.range.getStartPosition()),o=r.substring(0,r.length-i),s=D.fromPositions(this.range.getStartPosition(),a);return new e(s,o)}toString(){let e=this.range.getStartPosition(),t=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${t.lineNumber},${t.column}): "${this.text}"`}},Ui=class e{static inverse(t,n,r){let i=[],a=1,o=1;for(let n of t){let t=new e(new N(a,n.original.startLineNumber),new N(o,n.modified.startLineNumber));t.modified.isEmpty||i.push(t),a=n.original.endLineNumberExclusive,o=n.modified.endLineNumberExclusive}let s=new e(new N(a,n+1),new N(o,r+1));return s.modified.isEmpty||i.push(s),i}static clip(t,n,r){let i=[];for(let a of t){let t=a.original.intersect(n),o=a.modified.intersect(r);t&&!t.isEmpty&&o&&!o.isEmpty&&i.push(new e(t,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new qi(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(this.modified.startLineNumber!==1||this.original.startLineNumber!==1)throw new o(`not a valid diff`);return new qi(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new qi(new D(this.original.startLineNumber-1,2**53-1,this.original.endLineNumberExclusive-1,2**53-1),new D(this.modified.startLineNumber-1,2**53-1,this.modified.endLineNumberExclusive-1,2**53-1))}toRangeMapping2(e,t){if(Gi(this.original.endLineNumberExclusive,e)&&Gi(this.modified.endLineNumberExclusive,t))return new qi(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new qi(D.fromPositions(new E(this.original.startLineNumber,1),Wi(new E(this.original.endLineNumberExclusive-1,2**53-1),e)),D.fromPositions(new E(this.modified.startLineNumber,1),Wi(new E(this.modified.endLineNumberExclusive-1,2**53-1),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new qi(D.fromPositions(Wi(new E(this.original.startLineNumber-1,2**53-1),e),Wi(new E(this.original.endLineNumberExclusive-1,2**53-1),e)),D.fromPositions(Wi(new E(this.modified.startLineNumber-1,2**53-1),t),Wi(new E(this.modified.endLineNumberExclusive-1,2**53-1),t)));throw new o}};function Wi(e,t){if(e.lineNumber<1)return new E(1,1);if(e.lineNumber>t.length)return new E(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new E(e.lineNumber,n.length+1):e}function Gi(e,t){return e>=1&&e<=t.length}var Ki=class e extends Ui{static fromRangeMappings(t){let n=N.join(t.map(e=>N.fromRangeInclusive(e.originalRange))),r=N.join(t.map(e=>N.fromRangeInclusive(e.modifiedRange)));return new e(n,r,t)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new e(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},qi=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((t,r)=>new e(t.range,n[r]))}static assertSorted(e){for(let t=1;t<e.length;t++){let n=e[t-1],r=e[t];if(!(n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new o(`Range mappings must be sorted`)}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(e){let t=e.getValueOfRange(this.modifiedRange);return new Hi(this.originalRange,t)}};function Ji(e,t,n,r=!1){let i=[];for(let r of xi(e.map(e=>Yi(e,t,n)),(e,t)=>e.original.intersectsOrTouches(t.original)||e.modified.intersectsOrTouches(t.modified))){let e=r[0],t=r[r.length-1];i.push(new Ki(e.original.join(t.original),e.modified.join(t.modified),r.map(e=>e.innerChanges[0])))}return l(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:u(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),i}function Yi(e,t,n){let r=0,i=0;return e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1),new Ki(new N(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),new N(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i),[e])}var Xi=class{computeDiff(e,t,n){let r=new ra(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[],a=null;for(let e of r.changes){let t;t=e.originalEndLineNumber===0?new N(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new N(e.originalStartLineNumber,e.originalEndLineNumber+1);let n;n=e.modifiedEndLineNumber===0?new N(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new N(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new Ki(t,n,e.charChanges?.map(e=>new qi(new D(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new D(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===r.modified.startLineNumber||a.original.endLineNumberExclusive===r.original.startLineNumber)&&(r=new Ki(a.original.join(r.original),a.modified.join(r.modified),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),i.pop()),i.push(r),a=r}return l(()=>u(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),new vi(i,[],r.quitEarly)}};function Zi(e,t,n,r){return new bt(e,t,n).ComputeDiff(r)}var Qi=class{constructor(e){let t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=ia(e[r],1),n[r]=aa(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){let e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){let r=[],i=[],a=[],o=0;for(let s=t;s<=n;s++){let t=this.lines[s],c=e?this._startColumns[s]:1,l=e?this._endColumns[s]:t.length+1;for(let e=c;e<l;e++)r[o]=t.charCodeAt(e-1),i[o]=s+1,a[o]=e,o++;!e&&s<n&&(r[o]=10,i[o]=s+1,a[o]=t.length+1,o++)}return new $i(r,i,a)}},$i=class{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return`[`+this._charCodes.map((e,t)=>(e===10?`\\n`:String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(`, `)+`]`}_assertIndex(e,t){if(e<0||e>=t.length)throw Error(`Illegal index`)}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},ea=class e{constructor(e,t,n,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),a=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),s=n.getEndColumn(t.originalStart+t.originalLength-1),c=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),u=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,a,o,s,c,l,u,d)}};function ta(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r<i;r++){let i=e[r],a=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}var na=class e{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(t,n,r,i,a,o,s){let c,l,u,d,f;if(n.originalLength===0?(c=r.getStartLineNumber(n.originalStart)-1,l=0):(c=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(u=i.getStartLineNumber(n.modifiedStart)-1,d=0):(u=i.getStartLineNumber(n.modifiedStart),d=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){let e=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),o=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(e.getElements().length>0&&o.getElements().length>0){let t=Zi(e,o,a,!0).changes;s&&(t=ta(t)),f=[];for(let n=0,r=t.length;n<r;n++)f.push(ea.createFromDiffChange(t[n],e,o))}}return new e(c,l,u,d,f)}},ra=class{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Qi(e),this.modified=new Qi(t),this.continueLineDiff=oa(n.maxComputationTime),this.continueCharDiff=oa(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let e=Zi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let n=0,r=t.length;n<r;n++)e.push(na.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}let r=[],i=0,a=0;for(let e=-1,n=t.length;e<n;e++){let o=e+1<n?t[e+1]:null,s=o?o.originalStart:this.originalLines.length,c=o?o.modifiedStart:this.modifiedLines.length;for(;i<s&&a<c;){let e=this.originalLines[i],t=this.modifiedLines[a];if(e!==t){{let n=ia(e,1),o=ia(t,1);for(;n>1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,a+1,1,o)}{let n=aa(e,1),o=aa(t,1),s=e.length+1,c=t.length+1;for(;n<s&&o<c&&e.charCodeAt(n-1)===e.charCodeAt(o-1);)n++,o++;(n<s||o<c)&&this._pushTrimWhitespaceCharChange(r,i+1,n,s,a+1,o,c)}}i++,a++}o&&(r.push(na.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=o.originalLength,a+=o.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,a,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,a,o))return;let s;this.shouldComputeCharChanges&&(s=[new ea(t,n,t,r,i,a,i,o)]),e.push(new na(t,t,i,i,s))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,a,o){let s=e.length;if(s===0)return!1;let c=e[s-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===t&&c.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ea(t,n,t,r,i,a,i,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===i&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ea(t,n,t,r,i,a,i,o)),!0)}};function ia(e,t){let n=Ne(e);return n===-1?t:n+1}function aa(e,t){let n=Pe(e);return n===-1?t:n+2}function oa(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var sa=class e{static trivial(t,n){return new e([new ca(M.ofLength(t.length),M.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new e([new ca(M.ofLength(t.length),M.ofLength(n.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}},ca=class e{static invert(t,n){let r=[];return Si(t,(t,i)=>{r.push(e.fromOffsetPairs(t?t.getEndExclusives():la.zero,i?i.getStarts():new la(n,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new M(t.offset1,n.offset1),new M(t.offset2,n.offset2))}static assertSorted(e){let t;for(let n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new o(`Sequence diffs must be sorted`);t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(n&&r)return new e(n,r)}getStarts(){return new la(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new la(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},la=class e{static{this.zero=new e(0,0)}static{this.max=new e(2**53-1,2**53-1)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}},ua=class e{static{this.instance=new e}isValid(){return!0}},da=class{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new o(`timeout must be positive`)}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}},fa=class{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}};function pa(e){return e===32||e===9}var ma=class e{static{this.chrKeys=/* @__PURE__ */ new Map}static getKey(e){let t=this.chrKeys.get(e);return t===void 0&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let r=t.startLineNumber-1;r<t.endLineNumberExclusive-1;r++){let t=n[r];for(let n=0;n<t.length;n++){i++;let r=t[n],a=e.getKey(r);this.histogram[a]=(this.histogram[a]||0)+1}i++;let a=e.getKey(`
|
|
21
21
|
`);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0,n=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<n;r++)t+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-t/(this.totalCount+e.totalCount)}},ha=class{compute(e,t,n=ua.instance,r){if(e.length===0||t.length===0)return sa.trivial(e,t);let i=new fa(e.length,t.length),a=new fa(e.length,t.length),o=new fa(e.length,t.length);for(let s=0;s<e.length;s++)for(let c=0;c<t.length;c++){if(!n.isValid())return sa.trivialTimedOut(e,t);let l=s===0?0:i.get(s-1,c),u=c===0?0:i.get(s,c-1),d;e.getElement(s)===t.getElement(c)?(d=s===0||c===0?0:i.get(s-1,c-1),s>0&&c>0&&a.get(s-1,c-1)===3&&(d+=o.get(s-1,c-1)),d+=r?r(s,c):1):d=-1;let f=Math.max(l,u,d);if(f===d){let e=s>0&&c>0?o.get(s-1,c-1):0;o.set(s,c,e+1),a.set(s,c,3)}else f===l?(o.set(s,c,0),a.set(s,c,1)):f===u&&(o.set(s,c,0),a.set(s,c,2));i.set(s,c,f)}let s=[],c=e.length,l=t.length;function u(e,t){(e+1!==c||t+1!==l)&&s.push(new ca(new M(e+1,c),new M(t+1,l))),c=e,l=t}let d=e.length-1,f=t.length-1;for(;d>=0&&f>=0;)a.get(d,f)===3?(u(d,f),d--,f--):a.get(d,f)===1?d--:f--;return u(-1,-1),s.reverse(),new sa(s,!1)}},ga=class{compute(e,t,n=ua.instance){if(e.length===0||t.length===0)return sa.trivial(e,t);let r=e,i=t;function a(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0,s=new va;s.set(0,a(0,0));let c=new ya;c.set(0,s.get(0)===0?null:new _a(null,0,0,s.get(0)));let l=0;loop:for(;;){if(o++,!n.isValid())return sa.trivialTimedOut(r,i);let e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(l=e;l<=t;l+=2){let n=l===t?-1:s.get(l+1),o=l===e?-1:s.get(l-1)+1,u=Math.min(Math.max(n,o),r.length),d=u-l;if(u>r.length||d>i.length)continue;let f=a(u,d);s.set(l,f);let p=u===n?c.get(l+1):c.get(l-1);if(c.set(l,f===u?p:new _a(p,u,d,f-u)),s.get(l)===r.length&&s.get(l)-l===i.length)break loop}}let u=c.get(l),d=[],f=r.length,p=i.length;for(;;){let e=u?u.x+u.length:0,t=u?u.y+u.length:0;if((e!==f||t!==p)&&d.push(new ca(new M(e,f),new M(t,p))),!u)break;f=u.x,p=u.y,u=u.prev}return d.reverse(),new sa(d,!1)}},_a=class{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}},va=class{constructor(){this.positiveArr=/* @__PURE__ */ new Int32Array(10),this.negativeArr=/* @__PURE__ */ new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[e]=t}}},ya=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}},ba=class{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let r=e[t-1],i=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,r=r.substring(i)),this.lineStartOffsets.push(i);let a=0;if(!n){let e=r.trimStart();a=r.length-e.length,r=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(a);let o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-a,r.length):r.length;for(let e=0;e<o;e++)this.elements.push(r.charCodeAt(e));t<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new M(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(e=>String.fromCharCode(e)).join(``)}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=Ta(e>0?this.elements[e-1]:-1),n=Ta(e<this.elements.length?this.elements[e]:-1);if(t===7&&n===8)return 0;if(t===8)return 150;let r=0;return t!==n&&(r+=10,t===0&&n===1&&(r+=1)),r+=wa(t),r+=wa(n),r}translateOffset(e,t=`right`){let n=Ai(this.firstElementOffsetByLineIdx,t=>t<=e),r=e-this.firstElementOffsetByLineIdx[n];return new E(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(r===0&&t===`left`?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){let t=this.translateOffset(e.start,`right`),n=this.translateOffset(e.endExclusive,`left`);return n.isBefore(t)?D.fromPositions(n,n):D.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!xa(this.elements[e]))return;let t=e;for(;t>0&&xa(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&xa(this.elements[n]);)n++;return new M(t,n)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!xa(this.elements[e]))return;let t=e;for(;t>0&&xa(this.elements[t-1])&&!Sa(this.elements[t]);)t--;let n=e;for(;n<this.elements.length&&xa(this.elements[n])&&!Sa(this.elements[n]);)n++;return new M(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){return new M(ki(this.firstElementOffsetByLineIdx,t=>t<=e.start)??0,ji(this.firstElementOffsetByLineIdx,t=>e.endExclusive<=t)??this.elements.length)}};function xa(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function Sa(e){return e>=65&&e<=90}let Ca={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function wa(e){return Ca[e]}function Ta(e){return e===10?8:e===13?7:pa(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ea(e,t,n,r,i,a){let{moves:o,excludedChanges:s}=Oa(e,t,n,a);if(!a.isValid())return[];let c=ka(e.filter(e=>!s.has(e)),r,i,t,n,a);return wi(o,c),o=ja(o),o=o.filter(e=>{let n=e.original.toOffsetRange().slice(t).map(e=>e.trim());return n.join(`
|
|
22
|
-
`).length>=15&&Da(n,e=>e.length>=2)>=2}),o=Ma(e,o),o}function Da(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function Oa(e,t,n,r){let i=[],a=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new ma(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new ma(e.modified,n,e))),s=/* @__PURE__ */ new Set;for(let e of a){let t=-1,n;for(let r of o){let i=e.computeSimilarity(r);i>t&&(t=i,n=r)}if(t>.9&&n&&(o.delete(n),i.push(new Ui(e.range,n.range)),s.add(e.source),s.add(n.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}function ka(e,t,n,r,i,a){let o=[],s=new Qr;for(let n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){let n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new N(e,e+3)})}let c=[];e.sort(Ei(e=>e.modified.startLineNumber,Di));for(let t of e){let e=[];for(let r=t.modified.startLineNumber;r<t.modified.endLineNumberExclusive-2;r++){let t=`${n[r-1]}:${n[r+1-1]}:${n[r+2-1]}`,i=new N(r,r+3),a=[];s.forEach(t,({range:t})=>{for(let n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive){n.originalLineRange=new N(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new N(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),a.push(n);return}let n={modifiedLineRange:i,originalLineRange:t};c.push(n),a.push(n)}),e=a}if(!a.isValid())return[]}c.sort(Oi(Ei(e=>e.modifiedLineRange.length,Di)));let l=new Pi,u=new Pi;for(let e of c){let t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=l.subtractFrom(e.modifiedLineRange),r=u.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(let e of i.ranges){if(e.length<3)continue;let n=e,r=e.delta(-t);o.push(new Ui(r,n)),l.addRange(n),u.addRange(r)}}o.sort(Ei(e=>e.original.startLineNumber,Di));let d=new Ni(e);for(let t=0;t<o.length;t++){let n=o[t],s=d.findLastMonotonous(e=>e.original.startLineNumber<=n.original.startLineNumber),c=ki(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),f=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-c.modified.startLineNumber),p=d.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive),m=ki(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive),h=Math.max(p.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive),g=0;for(;g<f;g++){let e=n.original.startLineNumber-g-1,t=n.modified.startLineNumber-g-1;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new N(n.original.startLineNumber-g,n.original.startLineNumber)),l.addRange(new N(n.modified.startLineNumber-g,n.modified.startLineNumber)));let _=0;for(;_<h;_++){let e=n.original.endLineNumberExclusive+_,t=n.modified.endLineNumberExclusive+_;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}_>0&&(u.addRange(new N(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+_)),l.addRange(new N(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+_))),(g>0||_>0)&&(o[t]=new Ui(new N(n.original.startLineNumber-g,n.original.endLineNumberExclusive+_),new N(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+_)))}return o}function Aa(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new ga().compute(new ba([e],new D(1,1,1,e.length),!1),new ba([t],new D(1,1,1,t.length),!1),n),i=0,a=ca.invert(r.diffs,e.length);for(let t of a)t.seq1Range.forEach(t=>{pa(e.charCodeAt(t))||i++});function o(t){let n=0;for(let r=0;r<e.length;r++)pa(t.charCodeAt(r))||n++;return n}let s=o(e.length>t.length?e:t);return i/s>.6&&s>10}function ja(e){if(e.length===0)return e;e.sort(Ei(e=>e.original.startLineNumber,Di));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],a=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(a>=0&&o>=0&&a+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Ma(e,t){let n=new Ni(e);return t=t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumber<t.original.endLineNumberExclusive)||new Ui(new N(1,1),new N(1,1)))!==ki(e,e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),t}function Na(e,t,n){let r=n;return r=Pa(e,t,r),r=Pa(e,t,r),r=Fa(e,t,r),r}function Pa(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let i=1;i<n.length;i++){let a=r[r.length-1],o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let n=o.seq1Range.start-a.seq1Range.endExclusive,i=1;for(;i<=n&&e.getElement(o.seq1Range.start-i)===e.getElement(o.seq1Range.endExclusive-i)&&t.getElement(o.seq2Range.start-i)===t.getElement(o.seq2Range.endExclusive-i);i++);if(i--,i===n){r[r.length-1]=new ca(new M(a.seq1Range.start,o.seq1Range.endExclusive-n),new M(a.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-i)}r.push(o)}let i=[];for(let n=0;n<r.length-1;n++){let a=r[n+1],o=r[n];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let i=a.seq1Range.start-o.seq1Range.endExclusive,s=0;for(;s<i&&e.isStronglyEqual(o.seq1Range.start+s,o.seq1Range.endExclusive+s)&&t.isStronglyEqual(o.seq2Range.start+s,o.seq2Range.endExclusive+s);s++);if(s===i){r[n+1]=new ca(new M(o.seq1Range.start+i,a.seq1Range.endExclusive),new M(o.seq2Range.start+i,a.seq2Range.endExclusive));continue}s>0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Fa(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,a=n[r],o=r+1<n.length?n[r+1]:void 0,s=new M(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),c=new M(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);a.seq1Range.isEmpty?n[r]=Ia(a,e,t,s,c):a.seq2Range.isEmpty&&(n[r]=Ia(a.swap(),t,e,c,s).swap())}return n}function Ia(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let s=0,c=-1;for(let r=-a;r<=o;r++){let i=e.seq2Range.start+r,a=e.seq2Range.endExclusive+r,o=e.seq1Range.start+r,l=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(a);l>c&&(c=l,s=r)}return e.delta(s)}function La(e,t,n){let r=[];for(let e of n){let t=r[r.length-1];if(!t){r.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?r[r.length-1]=new ca(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}function Ra(e,t,n,r,i=!1){let a=ca.invert(n,e.length),o=[],s=new la(0,0);function c(n,c){if(n.offset1<s.offset1||n.offset2<s.offset2)return;let l=r(e,n.offset1),u=r(t,n.offset2);if(!l||!u)return;let d=new ca(l,u),f=d.intersect(c),p=f.seq1Range.length,m=f.seq2Range.length;for(;a.length>0;){let n=a[0];if(!(n.seq1Range.intersects(d.seq1Range)||n.seq2Range.intersects(d.seq2Range)))break;let i=new ca(r(e,n.seq1Range.start),r(t,n.seq2Range.start)),o=i.intersect(n);if(p+=o.seq1Range.length,m+=o.seq2Range.length,d=d.join(i),d.seq1Range.endExclusive>=n.seq1Range.endExclusive)a.shift();else break}(i&&p+m<d.seq1Range.length+d.seq2Range.length||p+m<(d.seq1Range.length+d.seq2Range.length)*2/3)&&o.push(d),s=d.getEndExclusives()}for(;a.length>0;){let e=a.shift();e.seq1Range.isEmpty||(c(e.getStarts(),e),c(e.getEndExclusives().delta(-1),e))}return za(n,o)}function za(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],a;a=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function Ba(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let t=[r[0]];for(let n=1;n<r.length;n++){let i=r[n],s=t[t.length-1];function o(t,n){let r=new M(s.seq1Range.endExclusive,i.seq1Range.start);return e.getText(r).replace(/\s/g,``).length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}o(s,i)?(a=!0,t[t.length-1]=t[t.length-1].join(i)):t.push(i)}r=t}while(i++<10&&a);return r}function Va(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let n=[r[0]];for(let i=1;i<r.length;i++){let s=r[i],c=n[n.length-1];function o(n,r){let i=new M(c.seq1Range.endExclusive,s.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;let a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;let o=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),h=r.seq2Range.length;function g(e){return Math.min(e,130)}return(g(o*40+l)**1.5+g(u*40+d)**1.5)**1.5+(g(f*40+p)**1.5+g(m*40+h)**1.5)**1.5>(130**1.5)**1.5*1.3}o(c,s)?(a=!0,n[n.length-1]=n[n.length-1].join(s)):n.push(s)}r=n}while(i++<10&&a);let s=[];return Ci(r,(t,n,r)=>{let i=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}let o=e.extendToFullLines(n.seq1Range),c=e.getText(new M(o.start,n.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));let l=e.getText(new M(n.seq1Range.endExclusive,o.endExclusive));a(l)&&(i=i.deltaEnd(l.length));let u=ca.fromOffsetPairs(t?t.getEndExclusives():la.zero,r?r.getStarts():la.max),d=i.intersect(u);s.length>0&&d.getStarts().equals(s[s.length-1].getEndExclusives())?s[s.length-1]=s[s.length-1].join(d):s.push(d)}),s}var Ha=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((e===0?0:Ua(this.lines[e-1]))+(e===this.lines.length?0:Ua(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
|
|
23
|
-
`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function Ua(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var Wa=class{constructor(){this.dynamicProgrammingDiffing=new ha,this.myersDiffingAlgorithm=new ga}computeDiff(e,t,n){if(e.length<=1&&bi(e,t,(e,t)=>e===t))return new vi([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new vi([new Ki(new N(1,e.length+1),new N(1,t.length+1),[new qi(new D(1,1,e.length,e[e.length-1].length+1),new D(1,1,t.length,t[t.length-1].length+1))])],[],!1);let r=n.maxComputationTimeMs===0?ua.instance:new da(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,a=/* @__PURE__ */ new Map;function o(e){let t=a.get(e);return t===void 0&&(t=a.size,a.set(e,t)),t}let s=e.map(e=>o(e.trim())),c=t.map(e=>o(e.trim())),u=new Ha(s,e),d=new Ha(c,t),f=u.length+d.length<1700?this.dynamicProgrammingDiffing.compute(u,d,r,(n,r)=>e[n]===t[r]?t[r].length===0?.1:1+Math.log(1+t[r].length):.99):this.myersDiffingAlgorithm.compute(u,d,r),p=f.diffs,m=f.hitTimeout;p=Na(u,d,p),p=Ba(u,d,p);let h=[],g=a=>{if(i)for(let o=0;o<a;o++){let a=_+o,s=v+o;if(e[a]!==t[s]){let o=this.refineDiff(e,t,new ca(new M(a,a+1),new M(s,s+1)),r,i,n);for(let e of o.mappings)h.push(e);o.hitTimeout&&(m=!0)}}},_=0,v=0;for(let a of p){l(()=>a.seq1Range.start-_===a.seq2Range.start-v),g(a.seq1Range.start-_),_=a.seq1Range.endExclusive,v=a.seq2Range.endExclusive;let o=this.refineDiff(e,t,a,r,i,n);o.hitTimeout&&(m=!0);for(let e of o.mappings)h.push(e)}g(e.length-_);let y=Ji(h,new Vi(e),new Vi(t)),b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,s,c,r,i,n)),l(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(let i of y){if(!i.innerChanges)return!1;for(let r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0}),new vi(y,b,m)}computeMoves(e,t,n,r,i,a,o,s){return Ea(e,t,n,r,i,a).map(e=>new yi(e,Ji(this.refineDiff(t,n,new ca(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o,s).mappings,new Vi(t),new Vi(n),!0)))}refineDiff(e,t,n,r,i,a){let o=Ga(n).toRangeMapping2(e,t),s=new ba(e,o.originalRange,i),c=new ba(t,o.modifiedRange,i),l=s.length+c.length<500?this.dynamicProgrammingDiffing.compute(s,c,r):this.myersDiffingAlgorithm.compute(s,c,r),u=l.diffs;return u=Na(s,c,u),u=Ra(s,c,u,(e,t)=>e.findWordContaining(t)),a.extendToSubwords&&(u=Ra(s,c,u,(e,t)=>e.findSubWordContaining(t),!0)),u=La(s,c,u),u=Va(s,c,u),{mappings:u.map(e=>new qi(s.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:l.hitTimeout}}};function Ga(e){return new Ui(new N(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new N(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}let Ka={getLegacy:()=>new Xi,getDefault:()=>new Wa};function qa(e,t){let n=10**t;return Math.round(e*n)/n}var P=class{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},Ja=class e{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.l=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=t.a,o=Math.max(n,r,i),s=Math.min(n,r,i),c=0,l=0,u=(s+o)/2,d=o-s;if(d>0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case n:c=(r-i)/d+(r<i?6:0);break;case r:c=(i-n)/d+2;break;case i:c=(n-r)/d+4}c*=60,c=Math.round(c)}return new e(c,l,u,a)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(t){let n=t.h/360,{s:r,l:i,a}=t,o,s,c;if(r===0)o=s=c=i;else{let t=i<.5?i*(1+r):i+r-i*r,a=2*i-t;o=e._hue2rgb(a,t,n+1/3),s=e._hue2rgb(a,t,n),c=e._hue2rgb(a,t,n-1/3)}return new P(Math.round(o*255),Math.round(s*255),Math.round(c*255),a)}},Ya=class e{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.v=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=a-Math.min(n,r,i),s=a===0?0:o/a,c;return c=o===0?0:a===n?((r-i)/o%6+6)%6:a===r?(i-n)/o+2:(n-r)/o+4,new e(Math.round(c*60),s,a,t.a)}static toRGBA(e){let{h:t,s:n,v:r,a:i}=e,a=r*n,o=a*(1-Math.abs(t/60%2-1)),s=r-a,[c,l,u]=[0,0,0];return t<60?(c=a,l=o):t<120?(c=o,l=a):t<180?(l=a,u=o):t<240?(l=o,u=a):t<300?(c=o,u=a):t<=360&&(c=a,u=o),c=Math.round((c+s)*255),l=Math.round((l+s)*255),u=Math.round((u+s)*255),new P(c,l,u,i)}},Xa=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Ja.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ya.fromRGBA(this.rgba)}constructor(e){if(!e)throw Error(`Color needs a value`);if(e instanceof P)this.rgba=e;else if(e instanceof Ja)this._hsla=e,this.rgba=Ja.toRGBA(e);else if(e instanceof Ya)this._hsva=e,this.rgba=Ya.toRGBA(e);else throw Error(`Invalid color ctor argument`)}equals(e){return!!e&&P.equals(this.rgba,e.rgba)&&Ja.equals(this.hsla,e.hsla)&&Ya.equals(this.hsva,e.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b);return qa(.2126*t+.7152*n+.0722*r,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(t){return new e(new Ja(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new Ja(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(n,r,i,a*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new P(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(t,n=.5){let r=Math.min(Math.max(n,0),1),i=this.rgba,a=t.rgba,o=i.r+(a.r-i.r)*r,s=i.g+(a.g-i.g)*r,c=i.b+(a.b-i.b)*r,l=i.a+(a.a-i.a)*r;return new e(new P(o,s,c,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(t.rgba.r-a*(t.rgba.r-n),t.rgba.g-a*(t.rgba.g-r),t.rgba.b-a*(t.rgba.b-i),1))}toString(){return this._toString||=e.Format.CSS.format(this),this._toString}toNumber32Bit(){return this._toNumber32Bit||=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0,this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(r-i)/r,e.darken(n)}static{this.white=new e(new P(255,255,255,1))}static{this.black=new e(new P(0,0,0,1))}static{this.red=new e(new P(255,0,0,1))}static{this.blue=new e(new P(0,0,255,1))}static{this.green=new e(new P(0,255,0,1))}static{this.cyan=new e(new P(0,255,255,1))}static{this.lightgrey=new e(new P(211,211,211,1))}static{this.transparent=new e(new P(0,0,0,0))}};(function(e){(function(t){(function(t){function n(t){return t.rgba.a===1?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}t.formatRGBA=r;function i(t){return t.hsla.a===1?`hsl(${t.hsla.h}, ${Math.round(t.hsla.s*100)}%, ${Math.round(t.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(t)}t.formatHSL=i;function a(e){return`hsla(${e.hsla.h}, ${Math.round(e.hsla.s*100)}%, ${Math.round(e.hsla.l*100)}%, ${e.hsla.a.toFixed(2)})`}t.formatHSLA=a;function o(e){let t=e.toString(16);return t.length===2?t:`0`+t}function s(e){return`#${o(e.rgba.r)}${o(e.rgba.g)}${o(e.rgba.b)}`}t.formatHex=s;function c(t,n=!1){return n&&t.rgba.a===1?e.Format.CSS.formatHex(t):`#${o(t.rgba.r)}${o(t.rgba.g)}${o(t.rgba.b)}${o(Math.round(t.rgba.a*255))}`}t.formatHexA=c;function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}t.format=l;function u(t){if(t===`transparent`)return e.transparent;if(t.startsWith(`#`))return f(t);if(t.startsWith(`rgba(`)){let n=t.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`),parseFloat(n.groups?.a??`0`)))}if(t.startsWith(`rgb(`)){let n=t.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`)))}return d(t)}t.parse=u;function d(t){switch(t){case`aliceblue`:return new e(new P(240,248,255,1));case`antiquewhite`:return new e(new P(250,235,215,1));case`aqua`:return new e(new P(0,255,255,1));case`aquamarine`:return new e(new P(127,255,212,1));case`azure`:return new e(new P(240,255,255,1));case`beige`:return new e(new P(245,245,220,1));case`bisque`:return new e(new P(255,228,196,1));case`black`:return new e(new P(0,0,0,1));case`blanchedalmond`:return new e(new P(255,235,205,1));case`blue`:return new e(new P(0,0,255,1));case`blueviolet`:return new e(new P(138,43,226,1));case`brown`:return new e(new P(165,42,42,1));case`burlywood`:return new e(new P(222,184,135,1));case`cadetblue`:return new e(new P(95,158,160,1));case`chartreuse`:return new e(new P(127,255,0,1));case`chocolate`:return new e(new P(210,105,30,1));case`coral`:return new e(new P(255,127,80,1));case`cornflowerblue`:return new e(new P(100,149,237,1));case`cornsilk`:return new e(new P(255,248,220,1));case`crimson`:return new e(new P(220,20,60,1));case`cyan`:return new e(new P(0,255,255,1));case`darkblue`:return new e(new P(0,0,139,1));case`darkcyan`:return new e(new P(0,139,139,1));case`darkgoldenrod`:return new e(new P(184,134,11,1));case`darkgray`:return new e(new P(169,169,169,1));case`darkgreen`:return new e(new P(0,100,0,1));case`darkgrey`:return new e(new P(169,169,169,1));case`darkkhaki`:return new e(new P(189,183,107,1));case`darkmagenta`:return new e(new P(139,0,139,1));case`darkolivegreen`:return new e(new P(85,107,47,1));case`darkorange`:return new e(new P(255,140,0,1));case`darkorchid`:return new e(new P(153,50,204,1));case`darkred`:return new e(new P(139,0,0,1));case`darksalmon`:return new e(new P(233,150,122,1));case`darkseagreen`:return new e(new P(143,188,143,1));case`darkslateblue`:return new e(new P(72,61,139,1));case`darkslategray`:return new e(new P(47,79,79,1));case`darkslategrey`:return new e(new P(47,79,79,1));case`darkturquoise`:return new e(new P(0,206,209,1));case`darkviolet`:return new e(new P(148,0,211,1));case`deeppink`:return new e(new P(255,20,147,1));case`deepskyblue`:return new e(new P(0,191,255,1));case`dimgray`:return new e(new P(105,105,105,1));case`dimgrey`:return new e(new P(105,105,105,1));case`dodgerblue`:return new e(new P(30,144,255,1));case`firebrick`:return new e(new P(178,34,34,1));case`floralwhite`:return new e(new P(255,250,240,1));case`forestgreen`:return new e(new P(34,139,34,1));case`fuchsia`:return new e(new P(255,0,255,1));case`gainsboro`:return new e(new P(220,220,220,1));case`ghostwhite`:return new e(new P(248,248,255,1));case`gold`:return new e(new P(255,215,0,1));case`goldenrod`:return new e(new P(218,165,32,1));case`gray`:return new e(new P(128,128,128,1));case`green`:return new e(new P(0,128,0,1));case`greenyellow`:return new e(new P(173,255,47,1));case`grey`:return new e(new P(128,128,128,1));case`honeydew`:return new e(new P(240,255,240,1));case`hotpink`:return new e(new P(255,105,180,1));case`indianred`:return new e(new P(205,92,92,1));case`indigo`:return new e(new P(75,0,130,1));case`ivory`:return new e(new P(255,255,240,1));case`khaki`:return new e(new P(240,230,140,1));case`lavender`:return new e(new P(230,230,250,1));case`lavenderblush`:return new e(new P(255,240,245,1));case`lawngreen`:return new e(new P(124,252,0,1));case`lemonchiffon`:return new e(new P(255,250,205,1));case`lightblue`:return new e(new P(173,216,230,1));case`lightcoral`:return new e(new P(240,128,128,1));case`lightcyan`:return new e(new P(224,255,255,1));case`lightgoldenrodyellow`:return new e(new P(250,250,210,1));case`lightgray`:return new e(new P(211,211,211,1));case`lightgreen`:return new e(new P(144,238,144,1));case`lightgrey`:return new e(new P(211,211,211,1));case`lightpink`:return new e(new P(255,182,193,1));case`lightsalmon`:return new e(new P(255,160,122,1));case`lightseagreen`:return new e(new P(32,178,170,1));case`lightskyblue`:return new e(new P(135,206,250,1));case`lightslategray`:return new e(new P(119,136,153,1));case`lightslategrey`:return new e(new P(119,136,153,1));case`lightsteelblue`:return new e(new P(176,196,222,1));case`lightyellow`:return new e(new P(255,255,224,1));case`lime`:return new e(new P(0,255,0,1));case`limegreen`:return new e(new P(50,205,50,1));case`linen`:return new e(new P(250,240,230,1));case`magenta`:return new e(new P(255,0,255,1));case`maroon`:return new e(new P(128,0,0,1));case`mediumaquamarine`:return new e(new P(102,205,170,1));case`mediumblue`:return new e(new P(0,0,205,1));case`mediumorchid`:return new e(new P(186,85,211,1));case`mediumpurple`:return new e(new P(147,112,219,1));case`mediumseagreen`:return new e(new P(60,179,113,1));case`mediumslateblue`:return new e(new P(123,104,238,1));case`mediumspringgreen`:return new e(new P(0,250,154,1));case`mediumturquoise`:return new e(new P(72,209,204,1));case`mediumvioletred`:return new e(new P(199,21,133,1));case`midnightblue`:return new e(new P(25,25,112,1));case`mintcream`:return new e(new P(245,255,250,1));case`mistyrose`:return new e(new P(255,228,225,1));case`moccasin`:return new e(new P(255,228,181,1));case`navajowhite`:return new e(new P(255,222,173,1));case`navy`:return new e(new P(0,0,128,1));case`oldlace`:return new e(new P(253,245,230,1));case`olive`:return new e(new P(128,128,0,1));case`olivedrab`:return new e(new P(107,142,35,1));case`orange`:return new e(new P(255,165,0,1));case`orangered`:return new e(new P(255,69,0,1));case`orchid`:return new e(new P(218,112,214,1));case`palegoldenrod`:return new e(new P(238,232,170,1));case`palegreen`:return new e(new P(152,251,152,1));case`paleturquoise`:return new e(new P(175,238,238,1));case`palevioletred`:return new e(new P(219,112,147,1));case`papayawhip`:return new e(new P(255,239,213,1));case`peachpuff`:return new e(new P(255,218,185,1));case`peru`:return new e(new P(205,133,63,1));case`pink`:return new e(new P(255,192,203,1));case`plum`:return new e(new P(221,160,221,1));case`powderblue`:return new e(new P(176,224,230,1));case`purple`:return new e(new P(128,0,128,1));case`rebeccapurple`:return new e(new P(102,51,153,1));case`red`:return new e(new P(255,0,0,1));case`rosybrown`:return new e(new P(188,143,143,1));case`royalblue`:return new e(new P(65,105,225,1));case`saddlebrown`:return new e(new P(139,69,19,1));case`salmon`:return new e(new P(250,128,114,1));case`sandybrown`:return new e(new P(244,164,96,1));case`seagreen`:return new e(new P(46,139,87,1));case`seashell`:return new e(new P(255,245,238,1));case`sienna`:return new e(new P(160,82,45,1));case`silver`:return new e(new P(192,192,192,1));case`skyblue`:return new e(new P(135,206,235,1));case`slateblue`:return new e(new P(106,90,205,1));case`slategray`:return new e(new P(112,128,144,1));case`slategrey`:return new e(new P(112,128,144,1));case`snow`:return new e(new P(255,250,250,1));case`springgreen`:return new e(new P(0,255,127,1));case`steelblue`:return new e(new P(70,130,180,1));case`tan`:return new e(new P(210,180,140,1));case`teal`:return new e(new P(0,128,128,1));case`thistle`:return new e(new P(216,191,216,1));case`tomato`:return new e(new P(255,99,71,1));case`turquoise`:return new e(new P(64,224,208,1));case`violet`:return new e(new P(238,130,238,1));case`wheat`:return new e(new P(245,222,179,1));case`white`:return new e(new P(255,255,255,1));case`whitesmoke`:return new e(new P(245,245,245,1));case`yellow`:return new e(new P(255,255,0,1));case`yellowgreen`:return new e(new P(154,205,50,1));default:return null}}function f(t){let n=t.length;if(n===0||t.charCodeAt(0)!==35)return null;if(n===7)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),1));if(n===9)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),(16*p(t.charCodeAt(7))+p(t.charCodeAt(8)))/255));if(n===4){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3));return new e(new P(16*n+n,16*r+r,16*i+i))}if(n===5){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3)),a=p(t.charCodeAt(4));return new e(new P(16*n+n,16*r+r,16*i+i,(16*a+a)/255))}return null}t.parseHex=f;function p(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||={})})(e.Format||={})})(Xa||={});function Za(e){let t=[];for(let n of e){let e=Number(n);(e||e===0&&n.replace(/\s/g,``)!==``)&&t.push(e)}return t}function Qa(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function $a(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function eo(e,t){if(!e)return;let n=Xa.Format.CSS.parseHex(t);if(n)return{range:e,color:Qa(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function to(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values());return{range:e,color:Qa(r[0],r[1],r[2],n?r[3]:1)}}function no(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values()),i=new Xa(new Ja(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Qa(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function ro(e,t){return typeof e==`string`?[...e.matchAll(t)]:e.findMatches(t)}function io(e){let t=[],n=ro(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let r of n){let n=r.filter(e=>e!==void 0),i=n[1],a=n[2];if(!a)continue;let o;i===`rgb`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):i===`rgba`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):i===`hsl`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):i===`hsla`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):i===`#`&&(o=eo($a(e,r),i+a)),o&&t.push(o)}return t}function ao(e){return!e||typeof e.getValue!=`function`||typeof e.positionAt!=`function`?[]:io(e)}let oo=/^-+|-+$/g;function so(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=co(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=lo(e,t);n=n.concat(r)}return n}function co(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let r=e.getLineContent(i),a=r.match(t.foldingRules.markers.start);if(a){let e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){let t={range:e,...uo(r.substring(a[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}function lo(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()===``)return n;let i=ri(t.markSectionHeaderRegex),a=new RegExp(t.markSectionHeaderRegex,`gdm${i?`s`:``}`);if(je(a))return n;for(let t=1;t<=r;t+=95){let i=Math.min(t+100-1,r),o=[];for(let n=t;n<=i;n++)o.push(e.getLineContent(n));let s=o.join(`
|
|
22
|
+
`).length>=15&&Da(n,e=>e.length>=2)>=2}),o=Ma(e,o),o}function Da(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function Oa(e,t,n,r){let i=[],a=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new ma(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new ma(e.modified,n,e))),s=/* @__PURE__ */ new Set;for(let e of a){let t=-1,n;for(let r of o){let i=e.computeSimilarity(r);i>t&&(t=i,n=r)}if(t>.9&&n&&(o.delete(n),i.push(new Ui(e.range,n.range)),s.add(e.source),s.add(n.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}function ka(e,t,n,r,i,a){let o=[],s=new Qr;for(let n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){let n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new N(e,e+3)})}let c=[];e.sort(Ei(e=>e.modified.startLineNumber,Di));for(let t of e){let e=[];for(let r=t.modified.startLineNumber;r<t.modified.endLineNumberExclusive-2;r++){let t=`${n[r-1]}:${n[r+1-1]}:${n[r+2-1]}`,i=new N(r,r+3),a=[];s.forEach(t,({range:t})=>{for(let n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive){n.originalLineRange=new N(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new N(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),a.push(n);return}let n={modifiedLineRange:i,originalLineRange:t};c.push(n),a.push(n)}),e=a}if(!a.isValid())return[]}c.sort(Oi(Ei(e=>e.modifiedLineRange.length,Di)));let l=new Pi,u=new Pi;for(let e of c){let t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=l.subtractFrom(e.modifiedLineRange),r=u.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(let e of i.ranges){if(e.length<3)continue;let n=e,r=e.delta(-t);o.push(new Ui(r,n)),l.addRange(n),u.addRange(r)}}o.sort(Ei(e=>e.original.startLineNumber,Di));let d=new Ni(e);for(let t=0;t<o.length;t++){let n=o[t],s=d.findLastMonotonous(e=>e.original.startLineNumber<=n.original.startLineNumber),c=ki(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),f=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-c.modified.startLineNumber),p=d.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive),m=ki(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive),h=Math.max(p.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive),g=0;for(;g<f;g++){let e=n.original.startLineNumber-g-1,t=n.modified.startLineNumber-g-1;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new N(n.original.startLineNumber-g,n.original.startLineNumber)),l.addRange(new N(n.modified.startLineNumber-g,n.modified.startLineNumber)));let _=0;for(;_<h;_++){let e=n.original.endLineNumberExclusive+_,t=n.modified.endLineNumberExclusive+_;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}_>0&&(u.addRange(new N(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+_)),l.addRange(new N(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+_))),(g>0||_>0)&&(o[t]=new Ui(new N(n.original.startLineNumber-g,n.original.endLineNumberExclusive+_),new N(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+_)))}return o}function Aa(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new ga().compute(new ba([e],new D(1,1,1,e.length),!1),new ba([t],new D(1,1,1,t.length),!1),n),i=0,a=ca.invert(r.diffs,e.length);for(let t of a)t.seq1Range.forEach(t=>{pa(e.charCodeAt(t))||i++});function o(t){let n=0;for(let r=0;r<e.length;r++)pa(t.charCodeAt(r))||n++;return n}let s=o(e.length>t.length?e:t);return i/s>.6&&s>10}function ja(e){if(e.length===0)return e;e.sort(Ei(e=>e.original.startLineNumber,Di));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],a=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;a>=0&&o>=0&&a+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}function Ma(e,t){let n=new Ni(e);return t=t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumber<t.original.endLineNumberExclusive)||new Ui(new N(1,1),new N(1,1)))!==ki(e,e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),t}function Na(e,t,n){let r=n;return r=Pa(e,t,r),r=Pa(e,t,r),r=Fa(e,t,r),r}function Pa(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let i=1;i<n.length;i++){let a=r[r.length-1],o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let n=o.seq1Range.start-a.seq1Range.endExclusive,i=1;for(;i<=n&&e.getElement(o.seq1Range.start-i)===e.getElement(o.seq1Range.endExclusive-i)&&t.getElement(o.seq2Range.start-i)===t.getElement(o.seq2Range.endExclusive-i);i++);if(i--,i===n){r[r.length-1]=new ca(new M(a.seq1Range.start,o.seq1Range.endExclusive-n),new M(a.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-i)}r.push(o)}let i=[];for(let n=0;n<r.length-1;n++){let a=r[n+1],o=r[n];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let i=a.seq1Range.start-o.seq1Range.endExclusive,s=0;for(;s<i&&e.isStronglyEqual(o.seq1Range.start+s,o.seq1Range.endExclusive+s)&&t.isStronglyEqual(o.seq2Range.start+s,o.seq2Range.endExclusive+s);s++);if(s===i){r[n+1]=new ca(new M(o.seq1Range.start+i,a.seq1Range.endExclusive),new M(o.seq2Range.start+i,a.seq2Range.endExclusive));continue}s>0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Fa(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,a=n[r],o=r+1<n.length?n[r+1]:void 0,s=new M(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),c=new M(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);a.seq1Range.isEmpty?n[r]=Ia(a,e,t,s,c):a.seq2Range.isEmpty&&(n[r]=Ia(a.swap(),t,e,c,s).swap())}return n}function Ia(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let s=0,c=-1;for(let r=-a;r<=o;r++){let i=e.seq2Range.start+r,a=e.seq2Range.endExclusive+r,o=e.seq1Range.start+r,l=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(a);l>c&&(c=l,s=r)}return e.delta(s)}function La(e,t,n){let r=[];for(let e of n){let t=r[r.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?r[r.length-1]=new ca(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}function Ra(e,t,n,r,i=!1){let a=ca.invert(n,e.length),o=[],s=new la(0,0);function c(n,c){if(n.offset1<s.offset1||n.offset2<s.offset2)return;let l=r(e,n.offset1),u=r(t,n.offset2);if(!l||!u)return;let d=new ca(l,u),f=d.intersect(c),p=f.seq1Range.length,m=f.seq2Range.length;for(;a.length>0;){let n=a[0];if(!(n.seq1Range.intersects(d.seq1Range)||n.seq2Range.intersects(d.seq2Range)))break;let i=new ca(r(e,n.seq1Range.start),r(t,n.seq2Range.start)),o=i.intersect(n);if(p+=o.seq1Range.length,m+=o.seq2Range.length,d=d.join(i),d.seq1Range.endExclusive>=n.seq1Range.endExclusive)a.shift();else break}(i&&p+m<d.seq1Range.length+d.seq2Range.length||p+m<(d.seq1Range.length+d.seq2Range.length)*2/3)&&o.push(d),s=d.getEndExclusives()}for(;a.length>0;){let e=a.shift();e.seq1Range.isEmpty||(c(e.getStarts(),e),c(e.getEndExclusives().delta(-1),e))}return za(n,o)}function za(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],a;a=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function Ba(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let t=[r[0]];for(let n=1;n<r.length;n++){let i=r[n],s=t[t.length-1];function o(t,n){let r=new M(s.seq1Range.endExclusive,i.seq1Range.start);return e.getText(r).replace(/\s/g,``).length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}o(s,i)?(a=!0,t[t.length-1]=t[t.length-1].join(i)):t.push(i)}r=t}while(i++<10&&a);return r}function Va(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let n=[r[0]];for(let i=1;i<r.length;i++){let s=r[i],c=n[n.length-1];function o(n,r){let i=new M(c.seq1Range.endExclusive,s.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;let a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;let o=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),h=r.seq2Range.length;function g(e){return Math.min(e,130)}return(g(o*40+l)**1.5+g(u*40+d)**1.5)**1.5+(g(f*40+p)**1.5+g(m*40+h)**1.5)**1.5>(130**1.5)**1.5*1.3}o(c,s)?(a=!0,n[n.length-1]=n[n.length-1].join(s)):n.push(s)}r=n}while(i++<10&&a);let s=[];return Ci(r,(t,n,r)=>{let i=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}let o=e.extendToFullLines(n.seq1Range),c=e.getText(new M(o.start,n.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));let l=e.getText(new M(n.seq1Range.endExclusive,o.endExclusive));a(l)&&(i=i.deltaEnd(l.length));let u=ca.fromOffsetPairs(t?t.getEndExclusives():la.zero,r?r.getStarts():la.max),d=i.intersect(u);s.length>0&&d.getStarts().equals(s[s.length-1].getEndExclusives())?s[s.length-1]=s[s.length-1].join(d):s.push(d)}),s}var Ha=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((e===0?0:Ua(this.lines[e-1]))+(e===this.lines.length?0:Ua(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
|
|
23
|
+
`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function Ua(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var Wa=class{constructor(){this.dynamicProgrammingDiffing=new ha,this.myersDiffingAlgorithm=new ga}computeDiff(e,t,n){if(e.length<=1&&bi(e,t,(e,t)=>e===t))return new vi([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new vi([new Ki(new N(1,e.length+1),new N(1,t.length+1),[new qi(new D(1,1,e.length,e[e.length-1].length+1),new D(1,1,t.length,t[t.length-1].length+1))])],[],!1);let r=n.maxComputationTimeMs===0?ua.instance:new da(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,a=/* @__PURE__ */ new Map;function o(e){let t=a.get(e);return t===void 0&&(t=a.size,a.set(e,t)),t}let s=e.map(e=>o(e.trim())),c=t.map(e=>o(e.trim())),u=new Ha(s,e),d=new Ha(c,t),f=u.length+d.length<1700?this.dynamicProgrammingDiffing.compute(u,d,r,(n,r)=>e[n]===t[r]?t[r].length===0?.1:1+Math.log(1+t[r].length):.99):this.myersDiffingAlgorithm.compute(u,d,r),p=f.diffs,m=f.hitTimeout;p=Na(u,d,p),p=Ba(u,d,p);let h=[],g=a=>{if(i)for(let o=0;o<a;o++){let a=_+o,s=v+o;if(e[a]!==t[s]){let o=this.refineDiff(e,t,new ca(new M(a,a+1),new M(s,s+1)),r,i,n);for(let e of o.mappings)h.push(e);o.hitTimeout&&(m=!0)}}},_=0,v=0;for(let a of p){l(()=>a.seq1Range.start-_===a.seq2Range.start-v),g(a.seq1Range.start-_),_=a.seq1Range.endExclusive,v=a.seq2Range.endExclusive;let o=this.refineDiff(e,t,a,r,i,n);o.hitTimeout&&(m=!0);for(let e of o.mappings)h.push(e)}g(e.length-_);let y=Ji(h,new Vi(e),new Vi(t)),b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,s,c,r,i,n)),l(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(let i of y){if(!i.innerChanges)return!1;for(let r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0}),new vi(y,b,m)}computeMoves(e,t,n,r,i,a,o,s){return Ea(e,t,n,r,i,a).map(e=>new yi(e,Ji(this.refineDiff(t,n,new ca(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o,s).mappings,new Vi(t),new Vi(n),!0)))}refineDiff(e,t,n,r,i,a){let o=Ga(n).toRangeMapping2(e,t),s=new ba(e,o.originalRange,i),c=new ba(t,o.modifiedRange,i),l=s.length+c.length<500?this.dynamicProgrammingDiffing.compute(s,c,r):this.myersDiffingAlgorithm.compute(s,c,r),u=l.diffs;return u=Na(s,c,u),u=Ra(s,c,u,(e,t)=>e.findWordContaining(t)),a.extendToSubwords&&(u=Ra(s,c,u,(e,t)=>e.findSubWordContaining(t),!0)),u=La(s,c,u),u=Va(s,c,u),{mappings:u.map(e=>new qi(s.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:l.hitTimeout}}};function Ga(e){return new Ui(new N(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new N(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}let Ka={getLegacy:()=>new Xi,getDefault:()=>new Wa};function qa(e,t){let n=10**t;return Math.round(e*n)/n}var P=class{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},Ja=class e{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.l=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=t.a,o=Math.max(n,r,i),s=Math.min(n,r,i),c=0,l=0,u=(s+o)/2,d=o-s;if(d>0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case n:c=(r-i)/d+(r<i?6:0);break;case r:c=(i-n)/d+2;break;case i:c=(n-r)/d+4}c*=60,c=Math.round(c)}return new e(c,l,u,a)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(t){let n=t.h/360,{s:r,l:i,a}=t,o,s,c;if(r===0)o=s=c=i;else{let t=i<.5?i*(1+r):i+r-i*r,a=2*i-t;o=e._hue2rgb(a,t,n+1/3),s=e._hue2rgb(a,t,n),c=e._hue2rgb(a,t,n-1/3)}return new P(Math.round(o*255),Math.round(s*255),Math.round(c*255),a)}},Ya=class e{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.v=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=a-Math.min(n,r,i),s=a===0?0:o/a,c;return c=o===0?0:a===n?((r-i)/o%6+6)%6:a===r?(i-n)/o+2:(n-r)/o+4,new e(Math.round(c*60),s,a,t.a)}static toRGBA(e){let{h:t,s:n,v:r,a:i}=e,a=r*n,o=a*(1-Math.abs(t/60%2-1)),s=r-a,[c,l,u]=[0,0,0];return t<60?(c=a,l=o):t<120?(c=o,l=a):t<180?(l=a,u=o):t<240?(l=o,u=a):t<300?(c=o,u=a):t<=360&&(c=a,u=o),c=Math.round((c+s)*255),l=Math.round((l+s)*255),u=Math.round((u+s)*255),new P(c,l,u,i)}},Xa=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Ja.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ya.fromRGBA(this.rgba)}constructor(e){if(!e)throw Error(`Color needs a value`);if(e instanceof P)this.rgba=e;else if(e instanceof Ja)this._hsla=e,this.rgba=Ja.toRGBA(e);else if(e instanceof Ya)this._hsva=e,this.rgba=Ya.toRGBA(e);else throw Error(`Invalid color ctor argument`)}equals(e){return!!e&&P.equals(this.rgba,e.rgba)&&Ja.equals(this.hsla,e.hsla)&&Ya.equals(this.hsva,e.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b);return qa(.2126*t+.7152*n+.0722*r,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(t){return new e(new Ja(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new Ja(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(n,r,i,a*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new P(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(t,n=.5){let r=Math.min(Math.max(n,0),1),i=this.rgba,a=t.rgba,o=i.r+(a.r-i.r)*r,s=i.g+(a.g-i.g)*r,c=i.b+(a.b-i.b)*r,l=i.a+(a.a-i.a)*r;return new e(new P(o,s,c,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(t.rgba.r-a*(t.rgba.r-n),t.rgba.g-a*(t.rgba.g-r),t.rgba.b-a*(t.rgba.b-i),1))}toString(){return this._toString||=e.Format.CSS.format(this),this._toString}toNumber32Bit(){return this._toNumber32Bit||=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255)>>>0,this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(r-i)/r,e.darken(n)}static{this.white=new e(new P(255,255,255,1))}static{this.black=new e(new P(0,0,0,1))}static{this.red=new e(new P(255,0,0,1))}static{this.blue=new e(new P(0,0,255,1))}static{this.green=new e(new P(0,255,0,1))}static{this.cyan=new e(new P(0,255,255,1))}static{this.lightgrey=new e(new P(211,211,211,1))}static{this.transparent=new e(new P(0,0,0,0))}};(function(e){(function(t){(function(t){function n(t){return t.rgba.a===1?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}t.formatRGBA=r;function i(t){return t.hsla.a===1?`hsl(${t.hsla.h}, ${Math.round(t.hsla.s*100)}%, ${Math.round(t.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(t)}t.formatHSL=i;function a(e){return`hsla(${e.hsla.h}, ${Math.round(e.hsla.s*100)}%, ${Math.round(e.hsla.l*100)}%, ${e.hsla.a.toFixed(2)})`}t.formatHSLA=a;function o(e){let t=e.toString(16);return t.length===2?t:`0`+t}function s(e){return`#${o(e.rgba.r)}${o(e.rgba.g)}${o(e.rgba.b)}`}t.formatHex=s;function c(t,n=!1){return n&&t.rgba.a===1?e.Format.CSS.formatHex(t):`#${o(t.rgba.r)}${o(t.rgba.g)}${o(t.rgba.b)}${o(Math.round(t.rgba.a*255))}`}t.formatHexA=c;function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}t.format=l;function u(t){if(t===`transparent`)return e.transparent;if(t.startsWith(`#`))return f(t);if(t.startsWith(`rgba(`)){let n=t.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`),parseFloat(n.groups?.a??`0`)))}if(t.startsWith(`rgb(`)){let n=t.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`)))}return d(t)}t.parse=u;function d(t){switch(t){case`aliceblue`:return new e(new P(240,248,255,1));case`antiquewhite`:return new e(new P(250,235,215,1));case`aqua`:return new e(new P(0,255,255,1));case`aquamarine`:return new e(new P(127,255,212,1));case`azure`:return new e(new P(240,255,255,1));case`beige`:return new e(new P(245,245,220,1));case`bisque`:return new e(new P(255,228,196,1));case`black`:return new e(new P(0,0,0,1));case`blanchedalmond`:return new e(new P(255,235,205,1));case`blue`:return new e(new P(0,0,255,1));case`blueviolet`:return new e(new P(138,43,226,1));case`brown`:return new e(new P(165,42,42,1));case`burlywood`:return new e(new P(222,184,135,1));case`cadetblue`:return new e(new P(95,158,160,1));case`chartreuse`:return new e(new P(127,255,0,1));case`chocolate`:return new e(new P(210,105,30,1));case`coral`:return new e(new P(255,127,80,1));case`cornflowerblue`:return new e(new P(100,149,237,1));case`cornsilk`:return new e(new P(255,248,220,1));case`crimson`:return new e(new P(220,20,60,1));case`cyan`:return new e(new P(0,255,255,1));case`darkblue`:return new e(new P(0,0,139,1));case`darkcyan`:return new e(new P(0,139,139,1));case`darkgoldenrod`:return new e(new P(184,134,11,1));case`darkgray`:return new e(new P(169,169,169,1));case`darkgreen`:return new e(new P(0,100,0,1));case`darkgrey`:return new e(new P(169,169,169,1));case`darkkhaki`:return new e(new P(189,183,107,1));case`darkmagenta`:return new e(new P(139,0,139,1));case`darkolivegreen`:return new e(new P(85,107,47,1));case`darkorange`:return new e(new P(255,140,0,1));case`darkorchid`:return new e(new P(153,50,204,1));case`darkred`:return new e(new P(139,0,0,1));case`darksalmon`:return new e(new P(233,150,122,1));case`darkseagreen`:return new e(new P(143,188,143,1));case`darkslateblue`:return new e(new P(72,61,139,1));case`darkslategray`:return new e(new P(47,79,79,1));case`darkslategrey`:return new e(new P(47,79,79,1));case`darkturquoise`:return new e(new P(0,206,209,1));case`darkviolet`:return new e(new P(148,0,211,1));case`deeppink`:return new e(new P(255,20,147,1));case`deepskyblue`:return new e(new P(0,191,255,1));case`dimgray`:return new e(new P(105,105,105,1));case`dimgrey`:return new e(new P(105,105,105,1));case`dodgerblue`:return new e(new P(30,144,255,1));case`firebrick`:return new e(new P(178,34,34,1));case`floralwhite`:return new e(new P(255,250,240,1));case`forestgreen`:return new e(new P(34,139,34,1));case`fuchsia`:return new e(new P(255,0,255,1));case`gainsboro`:return new e(new P(220,220,220,1));case`ghostwhite`:return new e(new P(248,248,255,1));case`gold`:return new e(new P(255,215,0,1));case`goldenrod`:return new e(new P(218,165,32,1));case`gray`:return new e(new P(128,128,128,1));case`green`:return new e(new P(0,128,0,1));case`greenyellow`:return new e(new P(173,255,47,1));case`grey`:return new e(new P(128,128,128,1));case`honeydew`:return new e(new P(240,255,240,1));case`hotpink`:return new e(new P(255,105,180,1));case`indianred`:return new e(new P(205,92,92,1));case`indigo`:return new e(new P(75,0,130,1));case`ivory`:return new e(new P(255,255,240,1));case`khaki`:return new e(new P(240,230,140,1));case`lavender`:return new e(new P(230,230,250,1));case`lavenderblush`:return new e(new P(255,240,245,1));case`lawngreen`:return new e(new P(124,252,0,1));case`lemonchiffon`:return new e(new P(255,250,205,1));case`lightblue`:return new e(new P(173,216,230,1));case`lightcoral`:return new e(new P(240,128,128,1));case`lightcyan`:return new e(new P(224,255,255,1));case`lightgoldenrodyellow`:return new e(new P(250,250,210,1));case`lightgray`:return new e(new P(211,211,211,1));case`lightgreen`:return new e(new P(144,238,144,1));case`lightgrey`:return new e(new P(211,211,211,1));case`lightpink`:return new e(new P(255,182,193,1));case`lightsalmon`:return new e(new P(255,160,122,1));case`lightseagreen`:return new e(new P(32,178,170,1));case`lightskyblue`:return new e(new P(135,206,250,1));case`lightslategray`:return new e(new P(119,136,153,1));case`lightslategrey`:return new e(new P(119,136,153,1));case`lightsteelblue`:return new e(new P(176,196,222,1));case`lightyellow`:return new e(new P(255,255,224,1));case`lime`:return new e(new P(0,255,0,1));case`limegreen`:return new e(new P(50,205,50,1));case`linen`:return new e(new P(250,240,230,1));case`magenta`:return new e(new P(255,0,255,1));case`maroon`:return new e(new P(128,0,0,1));case`mediumaquamarine`:return new e(new P(102,205,170,1));case`mediumblue`:return new e(new P(0,0,205,1));case`mediumorchid`:return new e(new P(186,85,211,1));case`mediumpurple`:return new e(new P(147,112,219,1));case`mediumseagreen`:return new e(new P(60,179,113,1));case`mediumslateblue`:return new e(new P(123,104,238,1));case`mediumspringgreen`:return new e(new P(0,250,154,1));case`mediumturquoise`:return new e(new P(72,209,204,1));case`mediumvioletred`:return new e(new P(199,21,133,1));case`midnightblue`:return new e(new P(25,25,112,1));case`mintcream`:return new e(new P(245,255,250,1));case`mistyrose`:return new e(new P(255,228,225,1));case`moccasin`:return new e(new P(255,228,181,1));case`navajowhite`:return new e(new P(255,222,173,1));case`navy`:return new e(new P(0,0,128,1));case`oldlace`:return new e(new P(253,245,230,1));case`olive`:return new e(new P(128,128,0,1));case`olivedrab`:return new e(new P(107,142,35,1));case`orange`:return new e(new P(255,165,0,1));case`orangered`:return new e(new P(255,69,0,1));case`orchid`:return new e(new P(218,112,214,1));case`palegoldenrod`:return new e(new P(238,232,170,1));case`palegreen`:return new e(new P(152,251,152,1));case`paleturquoise`:return new e(new P(175,238,238,1));case`palevioletred`:return new e(new P(219,112,147,1));case`papayawhip`:return new e(new P(255,239,213,1));case`peachpuff`:return new e(new P(255,218,185,1));case`peru`:return new e(new P(205,133,63,1));case`pink`:return new e(new P(255,192,203,1));case`plum`:return new e(new P(221,160,221,1));case`powderblue`:return new e(new P(176,224,230,1));case`purple`:return new e(new P(128,0,128,1));case`rebeccapurple`:return new e(new P(102,51,153,1));case`red`:return new e(new P(255,0,0,1));case`rosybrown`:return new e(new P(188,143,143,1));case`royalblue`:return new e(new P(65,105,225,1));case`saddlebrown`:return new e(new P(139,69,19,1));case`salmon`:return new e(new P(250,128,114,1));case`sandybrown`:return new e(new P(244,164,96,1));case`seagreen`:return new e(new P(46,139,87,1));case`seashell`:return new e(new P(255,245,238,1));case`sienna`:return new e(new P(160,82,45,1));case`silver`:return new e(new P(192,192,192,1));case`skyblue`:return new e(new P(135,206,235,1));case`slateblue`:return new e(new P(106,90,205,1));case`slategray`:return new e(new P(112,128,144,1));case`slategrey`:return new e(new P(112,128,144,1));case`snow`:return new e(new P(255,250,250,1));case`springgreen`:return new e(new P(0,255,127,1));case`steelblue`:return new e(new P(70,130,180,1));case`tan`:return new e(new P(210,180,140,1));case`teal`:return new e(new P(0,128,128,1));case`thistle`:return new e(new P(216,191,216,1));case`tomato`:return new e(new P(255,99,71,1));case`turquoise`:return new e(new P(64,224,208,1));case`violet`:return new e(new P(238,130,238,1));case`wheat`:return new e(new P(245,222,179,1));case`white`:return new e(new P(255,255,255,1));case`whitesmoke`:return new e(new P(245,245,245,1));case`yellow`:return new e(new P(255,255,0,1));case`yellowgreen`:return new e(new P(154,205,50,1));default:return null}}function f(t){let n=t.length;if(n===0||t.charCodeAt(0)!==35)return null;if(n===7)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),1));if(n===9)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),(16*p(t.charCodeAt(7))+p(t.charCodeAt(8)))/255));if(n===4){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3));return new e(new P(16*n+n,16*r+r,16*i+i))}if(n===5){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3)),a=p(t.charCodeAt(4));return new e(new P(16*n+n,16*r+r,16*i+i,(16*a+a)/255))}return null}t.parseHex=f;function p(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||={})})(e.Format||={})})(Xa||={});function Za(e){let t=[];for(let n of e){let e=Number(n);(e||e===0&&n.replace(/\s/g,``)!==``)&&t.push(e)}return t}function Qa(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function $a(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function eo(e,t){if(!e)return;let n=Xa.Format.CSS.parseHex(t);if(n)return{range:e,color:Qa(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function to(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values());return{range:e,color:Qa(r[0],r[1],r[2],n?r[3]:1)}}function no(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values()),i=new Xa(new Ja(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Qa(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function ro(e,t){return typeof e==`string`?[...e.matchAll(t)]:e.findMatches(t)}function io(e){let t=[],n=ro(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let r of n){let n=r.filter(e=>e!==void 0),i=n[1],a=n[2];if(!a)continue;let o;i===`rgb`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):i===`rgba`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):i===`hsl`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):i===`hsla`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):i===`#`&&(o=eo($a(e,r),i+a)),o&&t.push(o)}return t}function ao(e){return!e||typeof e.getValue!=`function`||typeof e.positionAt!=`function`?[]:io(e)}let oo=/^-+|-+$/g;function so(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=co(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=lo(e,t);n=n.concat(r)}return n}function co(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let r=e.getLineContent(i),a=r.match(t.foldingRules.markers.start);if(a){let e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){let t={range:e,...uo(r.substring(a[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}function lo(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()===``)return n;let i=ri(t.markSectionHeaderRegex),a=new RegExp(t.markSectionHeaderRegex,`gdm${i?`s`:``}`);if(je(a))return n;for(let t=1;t<=r;t+=95){let i=Math.min(t+100-1,r),o=[];for(let n=t;n<=i;n++)o.push(e.getLineContent(n));let s=o.join(`
|
|
24
24
|
`);a.lastIndex=0;let c;for(;(c=a.exec(s))!==null;){let e=s.substring(0,c.index),r=(e.match(/\n/g)||[]).length,i=t+r,o=c[0].split(`
|
|
25
25
|
`),l=o.length,u=i+l-1,d=e.lastIndexOf(`
|
|
26
|
-
`)+1,f=c.index-d+1,p=o[o.length-1],m={range:{startLineNumber:i,startColumn:f,endLineNumber:u,endColumn:l===1?f+c[0].length:p.length+1},text:(c.groups??{}).label??``,hasSeparatorLine:((c.groups??{}).separator??``)!==``,shouldBeInComments:!0};(m.text||m.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<m.range.startLineNumber)&&n.push(m),a.lastIndex=c.index+c[0].length}}return n}function uo(e){e=e.trim();let t=e.startsWith(`-`);return e=e.replace(oo,``),{text:e,hasSeparatorLine:t}}(function(){let e=globalThis;typeof e.requestIdleCallback!=`function`||e.cancelIdleCallback})();var fo=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i)}},po;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(po||={});var mo=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new o(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}{let e=new fo;return this._unsatisfiedConsumers.push(e),e.p}}};(class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new mo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}});var ho=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=/* @__PURE__ */ new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=St(e);let n=this.values,r=this.prefixSum,i=t.length;return i!==0&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=St(e),t=St(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=St(e),t=St(t);let n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t!==0&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=St(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,a=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],a=i-this.values[r],e<a)n=r-1;else if(e>=i)t=r+1;else break;return new go(r,e-a)}},go=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}},_o=class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new E(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new ho(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;let n=Me(t);if(n.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}},vo=class{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new yo(vn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},yo=class extends _o{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;n<this._lines.length;n++){let r=this._lines[n],i=this.offsetAt(new E(n+1,1)),a=r.matchAll(e);for(let e of a)(e.index||e.index===0)&&(e.index+=i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=fi(e.column,ui(t),this._lines[e.lineNumber-1],0);return n?new D(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){let t=this._lines,n=this._wordenize.bind(this),r=0,i=``,a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){let e=i.substring(o[a].start,o[a].end);a+=1,yield e}else if(r<t.length)i=t[r],o=n(i,e),a=0,r+=1;else break}}}getLineWords(e,t){let n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(let e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,t){let n=[],r;for(t.lastIndex=0;(r=t.exec(e))&&r[0].length!==0;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){let t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!E.isIPosition(e))throw Error(`bad position`);let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}},bo=class e{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new vo}dispose(){}async $ping(){return`pong`}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let r=this._getModel(e);return r?mi.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?so(n,t):[]}async $computeDiff(t,n,r,i){let a=this._getModel(t),o=this._getModel(n);return!a||!o?null:e.computeDiff(a,o,r,i)}static computeDiff(e,t,n,r){let i=r===`advanced`?Ka.getDefault():Ka.getLegacy(),a=e.getLinesContent(),o=t.getLinesContent(),s=i.computeDiff(a,o,n),c=s.changes.length>0?!1:this._modelsAreIdentical(e,t);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:c,quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let a=[],o;n=n.slice(0).sort((e,t)=>e.range&&t.range?D.compareRangesUsingStarts(e.range,t.range):+!e.range-!t.range);let s=0;for(let e=1;e<n.length;e++)D.getEndPosition(n[s].range).equals(D.getStartPosition(n[e].range))?(n[s].range=D.fromPositions(D.getStartPosition(n[s].range),D.getEndPosition(n[e].range)),n[s].text+=n[e].text):(s++,n[s]=n[e]);n.length=s+1;for(let{range:t,text:s,eol:c}of n){if(typeof c==`number`&&(o=c),D.isEmpty(t)&&!s)continue;let n=i.getValueInRange(t);if(s=s.replace(/\r\n|\n|\r/g,i.eol),n===s)continue;if(Math.max(s.length,n.length)>e._diffLimit){a.push({range:t,text:s});continue}let l=gt(n,s,r),u=i.offsetAt(D.lift(t).getStartPosition());for(let e of l){let t=i.positionAt(u+e.originalStart),n=i.positionAt(u+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(r.range)!==r.text&&a.push(r)}}return typeof o==`number`&&a.push({eol:o,text:``,range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async $computeLinks(e){let t=this._getModel(e);return t?jt(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?ao(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let a=new C,o=new RegExp(r,i),s=/* @__PURE__ */ new Set;outer:for(let r of t){let t=this._getModel(r);if(t){for(let r of t.words(o))if(r!==n&&isNaN(Number(r))&&(s.add(r),s.size>e._suggestionsLimit))break outer}}return{words:Array.from(s),duration:a.elapsed()}}async $computeWordRanges(e,t,n,r){let i=this._getModel(e);if(!i)return Object.create(null);let a=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=i.getLineWords(e,a);for(let n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){let a=this._getModel(e);if(!a)return null;let o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let s=a.getValueInRange(t),c=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;let l=a.getValueInRange(c);return Mt.INSTANCE.navigateValueSet(t,s,c,l,n)}$fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!=`function`)return Promise.reject(/* @__PURE__ */ Error(`Missing requestHandler or method: `+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}};typeof importScripts==`function`&&(globalThis.monaco=Wr());var xo=class e{static{this.CHANNEL_NAME=`editorWorkerHost`}static getChannel(t){return t.getChannel(e.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(e.CHANNEL_NAME,n)}};function So(e){let t,n=it(r=>{let i=xo.getChannel(r);return t=e({host:new Proxy({},{get(e,t,n){if(t!==`then`){if(typeof t!=`string`)throw Error(`Not supported`);return(...e)=>i.$fhr(t,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()}),new bo(t)});return t}function Co(e){self.onmessage=t=>{So(n=>e(n,t.data))}}var F;(function(e){e[e.Ident=0]=`Ident`,e[e.AtKeyword=1]=`AtKeyword`,e[e.String=2]=`String`,e[e.BadString=3]=`BadString`,e[e.UnquotedString=4]=`UnquotedString`,e[e.Hash=5]=`Hash`,e[e.Num=6]=`Num`,e[e.Percentage=7]=`Percentage`,e[e.Dimension=8]=`Dimension`,e[e.UnicodeRange=9]=`UnicodeRange`,e[e.CDO=10]=`CDO`,e[e.CDC=11]=`CDC`,e[e.Colon=12]=`Colon`,e[e.SemiColon=13]=`SemiColon`,e[e.CurlyL=14]=`CurlyL`,e[e.CurlyR=15]=`CurlyR`,e[e.ParenthesisL=16]=`ParenthesisL`,e[e.ParenthesisR=17]=`ParenthesisR`,e[e.BracketL=18]=`BracketL`,e[e.BracketR=19]=`BracketR`,e[e.Whitespace=20]=`Whitespace`,e[e.Includes=21]=`Includes`,e[e.Dashmatch=22]=`Dashmatch`,e[e.SubstringOperator=23]=`SubstringOperator`,e[e.PrefixOperator=24]=`PrefixOperator`,e[e.SuffixOperator=25]=`SuffixOperator`,e[e.Delim=26]=`Delim`,e[e.EMS=27]=`EMS`,e[e.EXS=28]=`EXS`,e[e.Length=29]=`Length`,e[e.Angle=30]=`Angle`,e[e.Time=31]=`Time`,e[e.Freq=32]=`Freq`,e[e.Exclamation=33]=`Exclamation`,e[e.Resolution=34]=`Resolution`,e[e.Comma=35]=`Comma`,e[e.Charset=36]=`Charset`,e[e.EscapedJavaScript=37]=`EscapedJavaScript`,e[e.BadEscapedJavaScript=38]=`BadEscapedJavaScript`,e[e.Comment=39]=`Comment`,e[e.SingleLineComment=40]=`SingleLineComment`,e[e.EOF=41]=`EOF`,e[e.ContainerQueryLength=42]=`ContainerQueryLength`,e[e.CustomToken=43]=`CustomToken`})(F||={});var wo=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){let t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}};let To={};To[59]=F.SemiColon,To[58]=F.Colon,To[123]=F.CurlyL,To[125]=F.CurlyR,To[93]=F.BracketR,To[91]=F.BracketL,To[40]=F.ParenthesisL,To[41]=F.ParenthesisR,To[44]=F.Comma;let I={};I.em=F.EMS,I.ex=F.EXS,I.px=F.Length,I.cm=F.Length,I.mm=F.Length,I.in=F.Length,I.pt=F.Length,I.pc=F.Length,I.deg=F.Angle,I.rad=F.Angle,I.grad=F.Angle,I.ms=F.Time,I.s=F.Time,I.hz=F.Freq,I.khz=F.Freq,I[`%`]=F.Percentage,I.fr=F.Percentage,I.dpi=F.Resolution,I.dpcm=F.Resolution,I.cqw=F.ContainerQueryLength,I.cqh=F.ContainerQueryLength,I.cqi=F.ContainerQueryLength,I.cqb=F.ContainerQueryLength,I.cqmin=F.ContainerQueryLength,I.cqmax=F.ContainerQueryLength;var Eo=class{constructor(){this.stream=new wo(``),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new wo(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,F.UnquotedString,t.join(``)):null}scan(){let e=this.trivia();if(e!==null)return e;let t=this.stream.pos();return this.stream.eos()?this.finishToken(t,F.EOF):this.scanNext(t)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,F.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([60,33,45,45]))return this.finishToken(e,F.CDO);if(this.stream.advanceIfChars([45,45,62]))return this.finishToken(e,F.CDC);let t=[];if(this.ident(t))return this.finishToken(e,F.Ident,t.join(``));if(this.stream.advanceIfChar(64)){if(t=[`@`],this._name(t)){let n=t.join(``);return n===`@charset`?this.finishToken(e,F.Charset,n):this.finishToken(e,F.AtKeyword,n)}return this.finishToken(e,F.Delim)}if(this.stream.advanceIfChar(35))return t=[`#`],this._name(t)?this.finishToken(e,F.Hash,t.join(``)):this.finishToken(e,F.Delim);if(this.stream.advanceIfChar(33))return this.finishToken(e,F.Exclamation);if(this._number()){let n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(37))return this.finishToken(e,F.Percentage);if(this.ident(t)){let r=this.stream.substring(n).toLowerCase(),i=I[r];return i===void 0?this.finishToken(e,F.Dimension,t.join(``)):this.finishToken(e,i,t.join(``))}return this.finishToken(e,F.Num)}t=[];let n=this._string(t);return n===null?(n=To[this.stream.peekChar()],n===void 0?this.stream.peekChar(0)===126&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.Includes)):this.stream.peekChar(0)===124&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.Dashmatch)):this.stream.peekChar(0)===42&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.SubstringOperator)):this.stream.peekChar(0)===94&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.PrefixOperator)):this.stream.peekChar(0)===36&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,F.Delim)):(this.stream.advance(1),this.finishToken(e,n))):this.finishToken(e,n,t.join(``))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,F.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,F.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([47,42])){let e=!1,t=!1;return this.stream.advanceWhileChar(n=>t&&n===47?(e=!0,!1):(t=n===42,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t;return this.stream.peekChar()===46&&(e=1),t=this.stream.peekChar(e),t>=48&&t<=57&&(this.stream.advance(e+1),this.stream.advanceWhileChar(t=>t>=48&&t<=57||e===0&&t===46),!0)}_newline(e){let t=this.stream.peekChar();switch(t){case 13:case 12:case 10:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===13&&this.stream.advanceIfChar(10)&&e.push(`
|
|
26
|
+
`)+1,f=c.index-d+1,p=o[o.length-1],m={range:{startLineNumber:i,startColumn:f,endLineNumber:u,endColumn:l===1?f+c[0].length:p.length+1},text:(c.groups??{}).label??``,hasSeparatorLine:((c.groups??{}).separator??``)!==``,shouldBeInComments:!0};(m.text||m.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<m.range.startLineNumber)&&n.push(m),a.lastIndex=c.index+c[0].length}}return n}function uo(e){e=e.trim();let t=e.startsWith(`-`);return e=e.replace(oo,``),{text:e,hasSeparatorLine:t}}(function(){let e=globalThis;typeof e.requestIdleCallback!=`function`||e.cancelIdleCallback})();var fo=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i)}},po;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(po||={});var mo=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new o(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}{let e=new fo;return this._unsatisfiedConsumers.push(e),e.p}}};(class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new mo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}});var ho=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=/* @__PURE__ */ new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=St(e);let n=this.values,r=this.prefixSum,i=t.length;return i!==0&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=St(e),t=St(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=St(e),t=St(t);let n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t!==0&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=St(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,a=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],a=i-this.values[r],e<a)n=r-1;else if(e>=i)t=r+1;else break;return new go(r,e-a)}},go=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}},_o=class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new E(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new ho(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}else this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;let n=Me(t);if(n.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}},vo=class{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new yo(vn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},yo=class extends _o{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;n<this._lines.length;n++){let r=this._lines[n],i=this.offsetAt(new E(n+1,1)),a=r.matchAll(e);for(let e of a)(e.index||e.index===0)&&(e.index+=i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=fi(e.column,ui(t),this._lines[e.lineNumber-1],0);return n?new D(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){let t=this._lines,n=this._wordenize.bind(this),r=0,i=``,a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){let e=i.substring(o[a].start,o[a].end);a+=1,yield e}else if(r<t.length)i=t[r],o=n(i,e),a=0,r+=1;else break}}}getLineWords(e,t){let n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(let e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,t){let n=[],r;for(t.lastIndex=0;(r=t.exec(e))&&r[0].length!==0;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){let t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!E.isIPosition(e))throw Error(`bad position`);let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}},bo=class e{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new vo}dispose(){}async $ping(){return`pong`}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let r=this._getModel(e);return r?mi.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?so(n,t):[]}async $computeDiff(t,n,r,i){let a=this._getModel(t),o=this._getModel(n);return!a||!o?null:e.computeDiff(a,o,r,i)}static computeDiff(e,t,n,r){let i=r===`advanced`?Ka.getDefault():Ka.getLegacy(),a=e.getLinesContent(),o=t.getLinesContent(),s=i.computeDiff(a,o,n),c=s.changes.length>0?!1:this._modelsAreIdentical(e,t);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:c,quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let a=[],o;n=n.slice(0).sort((e,t)=>e.range&&t.range?D.compareRangesUsingStarts(e.range,t.range):+!e.range-!t.range);let s=0;for(let e=1;e<n.length;e++)D.getEndPosition(n[s].range).equals(D.getStartPosition(n[e].range))?(n[s].range=D.fromPositions(D.getStartPosition(n[s].range),D.getEndPosition(n[e].range)),n[s].text+=n[e].text):(s++,n[s]=n[e]);n.length=s+1;for(let{range:t,text:s,eol:c}of n){if(typeof c==`number`&&(o=c),D.isEmpty(t)&&!s)continue;let n=i.getValueInRange(t);if(s=s.replace(/\r\n|\n|\r/g,i.eol),n===s)continue;if(Math.max(s.length,n.length)>e._diffLimit){a.push({range:t,text:s});continue}let l=gt(n,s,r),u=i.offsetAt(D.lift(t).getStartPosition());for(let e of l){let t=i.positionAt(u+e.originalStart),n=i.positionAt(u+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(r.range)!==r.text&&a.push(r)}}return typeof o==`number`&&a.push({eol:o,text:``,range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async $computeLinks(e){let t=this._getModel(e);return t?jt(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?ao(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let a=new C,o=new RegExp(r,i),s=/* @__PURE__ */ new Set;outer:for(let r of t){let t=this._getModel(r);if(t){for(let r of t.words(o))if(r!==n&&isNaN(Number(r))&&(s.add(r),s.size>e._suggestionsLimit))break outer}}return{words:Array.from(s),duration:a.elapsed()}}async $computeWordRanges(e,t,n,r){let i=this._getModel(e);if(!i)return Object.create(null);let a=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=i.getLineWords(e,a);for(let n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){let a=this._getModel(e);if(!a)return null;let o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let s=a.getValueInRange(t),c=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;let l=a.getValueInRange(c);return Mt.INSTANCE.navigateValueSet(t,s,c,l,n)}$fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!=`function`)return Promise.reject(/* @__PURE__ */ Error(`Missing requestHandler or method: `+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}};typeof importScripts==`function`&&(globalThis.monaco=Wr());var xo=class e{static{this.CHANNEL_NAME=`editorWorkerHost`}static getChannel(t){return t.getChannel(e.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(e.CHANNEL_NAME,n)}};function So(e){let t,n=it(r=>{let i=xo.getChannel(r);return t=e({host:new Proxy({},{get(e,t,n){if(t!==`then`){if(typeof t!=`string`)throw Error(`Not supported`);return(...e)=>i.$fhr(t,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()}),new bo(t)});return t}function Co(e){self.onmessage=t=>{So(n=>e(n,t.data))}}var F;(function(e){e[e.Ident=0]=`Ident`,e[e.AtKeyword=1]=`AtKeyword`,e[e.String=2]=`String`,e[e.BadString=3]=`BadString`,e[e.UnquotedString=4]=`UnquotedString`,e[e.Hash=5]=`Hash`,e[e.Num=6]=`Num`,e[e.Percentage=7]=`Percentage`,e[e.Dimension=8]=`Dimension`,e[e.UnicodeRange=9]=`UnicodeRange`,e[e.CDO=10]=`CDO`,e[e.CDC=11]=`CDC`,e[e.Colon=12]=`Colon`,e[e.SemiColon=13]=`SemiColon`,e[e.CurlyL=14]=`CurlyL`,e[e.CurlyR=15]=`CurlyR`,e[e.ParenthesisL=16]=`ParenthesisL`,e[e.ParenthesisR=17]=`ParenthesisR`,e[e.BracketL=18]=`BracketL`,e[e.BracketR=19]=`BracketR`,e[e.Whitespace=20]=`Whitespace`,e[e.Includes=21]=`Includes`,e[e.Dashmatch=22]=`Dashmatch`,e[e.SubstringOperator=23]=`SubstringOperator`,e[e.PrefixOperator=24]=`PrefixOperator`,e[e.SuffixOperator=25]=`SuffixOperator`,e[e.Delim=26]=`Delim`,e[e.EMS=27]=`EMS`,e[e.EXS=28]=`EXS`,e[e.Length=29]=`Length`,e[e.Angle=30]=`Angle`,e[e.Time=31]=`Time`,e[e.Freq=32]=`Freq`,e[e.Exclamation=33]=`Exclamation`,e[e.Resolution=34]=`Resolution`,e[e.Comma=35]=`Comma`,e[e.Charset=36]=`Charset`,e[e.EscapedJavaScript=37]=`EscapedJavaScript`,e[e.BadEscapedJavaScript=38]=`BadEscapedJavaScript`,e[e.Comment=39]=`Comment`,e[e.SingleLineComment=40]=`SingleLineComment`,e[e.EOF=41]=`EOF`,e[e.ContainerQueryLength=42]=`ContainerQueryLength`,e[e.CustomToken=43]=`CustomToken`})(F||={});var wo=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){let t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}};let To={};To[59]=F.SemiColon,To[58]=F.Colon,To[123]=F.CurlyL,To[125]=F.CurlyR,To[93]=F.BracketR,To[91]=F.BracketL,To[40]=F.ParenthesisL,To[41]=F.ParenthesisR,To[44]=F.Comma;let I={};I.em=F.EMS,I.ex=F.EXS,I.px=F.Length,I.cm=F.Length,I.mm=F.Length,I.in=F.Length,I.pt=F.Length,I.pc=F.Length,I.deg=F.Angle,I.rad=F.Angle,I.grad=F.Angle,I.ms=F.Time,I.s=F.Time,I.hz=F.Freq,I.khz=F.Freq,I[`%`]=F.Percentage,I.fr=F.Percentage,I.dpi=F.Resolution,I.dpcm=F.Resolution,I.cqw=F.ContainerQueryLength,I.cqh=F.ContainerQueryLength,I.cqi=F.ContainerQueryLength,I.cqb=F.ContainerQueryLength,I.cqmin=F.ContainerQueryLength,I.cqmax=F.ContainerQueryLength;var Eo=class{constructor(){this.stream=new wo(``),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new wo(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,F.UnquotedString,t.join(``)):null}scan(){let e=this.trivia();if(e!==null)return e;let t=this.stream.pos();return this.stream.eos()?this.finishToken(t,F.EOF):this.scanNext(t)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,F.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([60,33,45,45]))return this.finishToken(e,F.CDO);if(this.stream.advanceIfChars([45,45,62]))return this.finishToken(e,F.CDC);let t=[];if(this.ident(t))return this.finishToken(e,F.Ident,t.join(``));if(this.stream.advanceIfChar(64)){if(t=[`@`],this._name(t)){let n=t.join(``);return n===`@charset`?this.finishToken(e,F.Charset,n):this.finishToken(e,F.AtKeyword,n)}return this.finishToken(e,F.Delim)}if(this.stream.advanceIfChar(35))return t=[`#`],this._name(t)?this.finishToken(e,F.Hash,t.join(``)):this.finishToken(e,F.Delim);if(this.stream.advanceIfChar(33))return this.finishToken(e,F.Exclamation);if(this._number()){let n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(37))return this.finishToken(e,F.Percentage);if(this.ident(t)){let r=this.stream.substring(n).toLowerCase(),i=I[r];return i===void 0?this.finishToken(e,F.Dimension,t.join(``)):this.finishToken(e,i,t.join(``))}return this.finishToken(e,F.Num)}t=[];let n=this._string(t);return n===null?(n=To[this.stream.peekChar()],n===void 0?this.stream.peekChar(0)===126&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.Includes)):this.stream.peekChar(0)===124&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.Dashmatch)):this.stream.peekChar(0)===42&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.SubstringOperator)):this.stream.peekChar(0)===94&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.PrefixOperator)):this.stream.peekChar(0)===36&&this.stream.peekChar(1)===61?(this.stream.advance(2),this.finishToken(e,F.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,F.Delim)):(this.stream.advance(1),this.finishToken(e,n))):this.finishToken(e,n,t.join(``))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,F.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,F.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([47,42])){let e=!1,t=!1;return this.stream.advanceWhileChar(n=>t&&n===47?(e=!0,!1):(t=n===42,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t;return this.stream.peekChar()===46&&(e=1),t=this.stream.peekChar(e),t>=48&&t<=57&&(this.stream.advance(e+1),this.stream.advanceWhileChar(t=>t>=48&&t<=57||e===0&&t===46),!0)}_newline(e){let t=this.stream.peekChar();switch(t){case 13:case 12:case 10:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===13&&this.stream.advanceIfChar(10)&&e.push(`
|
|
27
27
|
`),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===92){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{let t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch{}return n===32||n===9?this.stream.advance(1):this._newline([]),!0}if(n!==13&&n!==12&&n!==10)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){let n=this.stream.peekChar();return n!==0&&n!==e&&n!==92&&n!==13&&n!==12&&n!==10&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===39||this.stream.peekChar()===34){let t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),F.String):F.BadString}return null}_unquotedChar(e){let t=this.stream.peekChar();return t!==0&&t!==92&&t!==39&&t!==34&&t!==40&&t!==41&&t!==32&&t!==9&&t!==10&&t!==12&&t!==13&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar(e=>e===32||e===9||e===10||e===12||e===13)>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){let t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){let t=this.stream.peekChar();return t===95||t>=97&&t<=122||t>=65&&t<=90||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_minus(e){let t=this.stream.peekChar();return t===45&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){let t=this.stream.peekChar();return t===95||t===45||t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(43)){let e=e=>e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(e=>e===63);if(t>=1&&t<=6){if(this.stream.advanceIfChar(45)){let t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}else return!0}}return!1}};function L(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Do(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0&&e===t}function Oo(e,t,n=4){let r=Math.abs(e.length-t.length);if(r>n)return 0;let i=[],a=[],o,s;for(o=0;o<t.length+1;++o)a.push(0);for(o=0;o<e.length+1;++o)i.push(a);for(o=1;o<e.length+1;++o)for(s=1;s<t.length+1;++s)e[o-1]===t[s-1]?i[o][s]=i[o-1][s-1]+1:i[o][s]=Math.max(i[o-1][s],i[o][s-1]);return i[e.length][t.length]-Math.sqrt(r)}function ko(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?`…`:``):``}function Ao(e,t){let n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}function jo(e,t){let n=``;for(;t>0;)(t&1)==1&&(n+=e),e+=e,t>>>=1;return n}var R;(function(e){e[e.Undefined=0]=`Undefined`,e[e.Identifier=1]=`Identifier`,e[e.Stylesheet=2]=`Stylesheet`,e[e.Ruleset=3]=`Ruleset`,e[e.Selector=4]=`Selector`,e[e.SimpleSelector=5]=`SimpleSelector`,e[e.SelectorInterpolation=6]=`SelectorInterpolation`,e[e.SelectorCombinator=7]=`SelectorCombinator`,e[e.SelectorCombinatorParent=8]=`SelectorCombinatorParent`,e[e.SelectorCombinatorSibling=9]=`SelectorCombinatorSibling`,e[e.SelectorCombinatorAllSiblings=10]=`SelectorCombinatorAllSiblings`,e[e.SelectorCombinatorShadowPiercingDescendant=11]=`SelectorCombinatorShadowPiercingDescendant`,e[e.Page=12]=`Page`,e[e.PageBoxMarginBox=13]=`PageBoxMarginBox`,e[e.ClassSelector=14]=`ClassSelector`,e[e.IdentifierSelector=15]=`IdentifierSelector`,e[e.ElementNameSelector=16]=`ElementNameSelector`,e[e.PseudoSelector=17]=`PseudoSelector`,e[e.AttributeSelector=18]=`AttributeSelector`,e[e.Declaration=19]=`Declaration`,e[e.Declarations=20]=`Declarations`,e[e.Property=21]=`Property`,e[e.Expression=22]=`Expression`,e[e.BinaryExpression=23]=`BinaryExpression`,e[e.Term=24]=`Term`,e[e.Operator=25]=`Operator`,e[e.Value=26]=`Value`,e[e.StringLiteral=27]=`StringLiteral`,e[e.URILiteral=28]=`URILiteral`,e[e.EscapedValue=29]=`EscapedValue`,e[e.Function=30]=`Function`,e[e.NumericValue=31]=`NumericValue`,e[e.HexColorValue=32]=`HexColorValue`,e[e.RatioValue=33]=`RatioValue`,e[e.MixinDeclaration=34]=`MixinDeclaration`,e[e.MixinReference=35]=`MixinReference`,e[e.VariableName=36]=`VariableName`,e[e.VariableDeclaration=37]=`VariableDeclaration`,e[e.Prio=38]=`Prio`,e[e.Interpolation=39]=`Interpolation`,e[e.NestedProperties=40]=`NestedProperties`,e[e.ExtendsReference=41]=`ExtendsReference`,e[e.SelectorPlaceholder=42]=`SelectorPlaceholder`,e[e.Debug=43]=`Debug`,e[e.If=44]=`If`,e[e.Else=45]=`Else`,e[e.For=46]=`For`,e[e.Each=47]=`Each`,e[e.While=48]=`While`,e[e.MixinContentReference=49]=`MixinContentReference`,e[e.MixinContentDeclaration=50]=`MixinContentDeclaration`,e[e.Media=51]=`Media`,e[e.Keyframe=52]=`Keyframe`,e[e.FontFace=53]=`FontFace`,e[e.Import=54]=`Import`,e[e.Namespace=55]=`Namespace`,e[e.Invocation=56]=`Invocation`,e[e.FunctionDeclaration=57]=`FunctionDeclaration`,e[e.ReturnStatement=58]=`ReturnStatement`,e[e.MediaQuery=59]=`MediaQuery`,e[e.MediaCondition=60]=`MediaCondition`,e[e.MediaFeature=61]=`MediaFeature`,e[e.FunctionParameter=62]=`FunctionParameter`,e[e.FunctionArgument=63]=`FunctionArgument`,e[e.KeyframeSelector=64]=`KeyframeSelector`,e[e.ViewPort=65]=`ViewPort`,e[e.Document=66]=`Document`,e[e.AtApplyRule=67]=`AtApplyRule`,e[e.CustomPropertyDeclaration=68]=`CustomPropertyDeclaration`,e[e.CustomPropertySet=69]=`CustomPropertySet`,e[e.ListEntry=70]=`ListEntry`,e[e.Supports=71]=`Supports`,e[e.SupportsCondition=72]=`SupportsCondition`,e[e.NamespacePrefix=73]=`NamespacePrefix`,e[e.GridLine=74]=`GridLine`,e[e.Plugin=75]=`Plugin`,e[e.UnknownAtRule=76]=`UnknownAtRule`,e[e.Use=77]=`Use`,e[e.ModuleConfiguration=78]=`ModuleConfiguration`,e[e.Forward=79]=`Forward`,e[e.ForwardVisibility=80]=`ForwardVisibility`,e[e.Module=81]=`Module`,e[e.UnicodeRange=82]=`UnicodeRange`,e[e.Layer=83]=`Layer`,e[e.LayerNameList=84]=`LayerNameList`,e[e.LayerName=85]=`LayerName`,e[e.PropertyAtRule=86]=`PropertyAtRule`,e[e.Container=87]=`Container`})(R||={});var z;(function(e){e[e.Mixin=0]=`Mixin`,e[e.Rule=1]=`Rule`,e[e.Variable=2]=`Variable`,e[e.Function=3]=`Function`,e[e.Keyframe=4]=`Keyframe`,e[e.Unknown=5]=`Unknown`,e[e.Module=6]=`Module`,e[e.Forward=7]=`Forward`,e[e.ForwardVisibility=8]=`ForwardVisibility`,e[e.Property=9]=`Property`})(z||={});function Mo(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept(e=>e.offset===-1&&e.length===-1||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0)),n)}function No(e,t){let n=Mo(e,t),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function Po(e){let t=e.findParent(R.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var B=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||R.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>`unknown`}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){let t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||=this.children=[],t===-1?n.push(e):n.splice(t,0,e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||=[],this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(t=>t.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(e=>e.isErroneous(!0))}setNode(e,t,n=-1){return t?(t.attachTo(this,n),this[e]=t,!0):!1}addChild(e){return e?(this.children||=[],e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);let t=e.end;(t>this.end||this.length===-1)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(let t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){let n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof V;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some(e=>t.type===e);)t=t.parent;return t}setData(e,t){this.options||={},this.options[e]=t}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},V=class extends B{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},Fo=class extends B{constructor(e,t){super(e,t)}get type(){return R.UnicodeRange}setRangeStart(e){return this.setNode(`rangeStart`,e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode(`rangeEnd`,e)}getRangeEnd(){return this.rangeEnd}},Io=class extends B{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return R.Identifier}containsInterpolation(){return this.hasChildren()}},Lo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Stylesheet}},Ro=class extends B{constructor(e,t){super(e,t)}get type(){return R.Declarations}},H=class extends B{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode(`declarations`,e)}},zo=class extends H{constructor(e,t){super(e,t)}get type(){return R.Ruleset}getSelectors(){return this.selectors||=new V(this),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(R.Declarations)!==null}},Bo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Selector}},Vo=class extends B{constructor(e,t){super(e,t)}get type(){return R.SimpleSelector}},Ho=class extends B{constructor(e,t){super(e,t)}},Uo=class extends H{constructor(e,t){super(e,t)}get type(){return R.CustomPropertySet}},Wo=class e extends Ho{constructor(e,t){super(e,t),this.property=null}get type(){return R.Declaration}setProperty(e){return this.setNode(`property`,e)}getProperty(){return this.property}getFullPropertyName(){let t=this.property?this.property.getName():`unknown`;if(this.parent instanceof Ro&&this.parent.getParent()instanceof as){let n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)===`-`){let t=e.indexOf(`-`,1);if(t!==-1)return e.substring(t+1)}return e}setValue(e){return this.setNode(`value`,e)}getValue(){return this.value}setNestedProperties(e){return this.setNode(`nestedProperties`,e)}getNestedProperties(){return this.nestedProperties}},Go=class extends Wo{constructor(e,t){super(e,t)}get type(){return R.CustomPropertyDeclaration}setPropertySet(e){return this.setNode(`propertySet`,e)}getPropertySet(){return this.propertySet}},Ko=class extends B{constructor(e,t){super(e,t)}get type(){return R.Property}setIdentifier(e){return this.setNode(`identifier`,e)}getIdentifier(){return this.identifier}getName(){return Ao(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},qo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Invocation}getArguments(){return this.arguments||=new V(this),this.arguments}},Jo=class extends qo{constructor(e,t){super(e,t)}get type(){return R.Function}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}},Yo=class extends B{constructor(e,t){super(e,t)}get type(){return R.FunctionParameter}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setDefaultValue(e){return this.setNode(`defaultValue`,e,0)}getDefaultValue(){return this.defaultValue}},Xo=class extends B{constructor(e,t){super(e,t)}get type(){return R.FunctionArgument}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setValue(e){return this.setNode(`value`,e,0)}getValue(){return this.value}},Zo=class extends H{constructor(e,t){super(e,t)}get type(){return R.If}setExpression(e){return this.setNode(`expression`,e,0)}setElseClause(e){return this.setNode(`elseClause`,e)}},Qo=class extends H{constructor(e,t){super(e,t)}get type(){return R.For}setVariable(e){return this.setNode(`variable`,e,0)}},$o=class extends H{constructor(e,t){super(e,t)}get type(){return R.Each}getVariables(){return this.variables||=new V(this),this.variables}},es=class extends H{constructor(e,t){super(e,t)}get type(){return R.While}},ts=class extends H{constructor(e,t){super(e,t)}get type(){return R.Else}},ns=class extends H{constructor(e,t){super(e,t)}get type(){return R.FunctionDeclaration}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}getParameters(){return this.parameters||=new V(this),this.parameters}},rs=class extends H{constructor(e,t){super(e,t)}get type(){return R.ViewPort}},is=class extends H{constructor(e,t){super(e,t)}get type(){return R.FontFace}},as=class extends H{constructor(e,t){super(e,t)}get type(){return R.NestedProperties}},os=class extends H{constructor(e,t){super(e,t)}get type(){return R.Keyframe}setKeyword(e){return this.setNode(`keyword`,e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}},ss=class extends H{constructor(e,t){super(e,t)}get type(){return R.KeyframeSelector}},cs=class extends B{constructor(e,t){super(e,t)}get type(){return R.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},ls=class extends B{get type(){return R.Use}getParameters(){return this.parameters||=new V(this),this.parameters}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}},us=class extends B{get type(){return R.ModuleConfiguration}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setValue(e){return this.setNode(`value`,e,0)}getValue(){return this.value}},ds=class extends B{get type(){return R.Forward}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||=new V(this),this.members}getParameters(){return this.parameters||=new V(this),this.parameters}},fs=class extends B{get type(){return R.ForwardVisibility}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}},ps=class extends B{constructor(e,t){super(e,t)}get type(){return R.Namespace}},ms=class extends H{constructor(e,t){super(e,t)}get type(){return R.Media}},hs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Supports}},gs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Layer}setNames(e){return this.setNode(`names`,e)}getNames(){return this.names}},_s=class extends H{constructor(e,t){super(e,t)}get type(){return R.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},vs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Document}},ys=class extends H{constructor(e,t){super(e,t)}get type(){return R.Container}},bs=class extends B{constructor(e,t){super(e,t)}},xs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaQuery}},Ss=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaCondition}},Cs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaFeature}},ws=class extends B{constructor(e,t){super(e,t)}get type(){return R.SupportsCondition}},Ts=class extends H{constructor(e,t){super(e,t)}get type(){return R.Page}},Es=class extends H{constructor(e,t){super(e,t)}get type(){return R.PageBoxMarginBox}},Ds=class extends B{constructor(e,t){super(e,t)}get type(){return R.Expression}},Os=class extends B{constructor(e,t){super(e,t)}get type(){return R.BinaryExpression}setLeft(e){return this.setNode(`left`,e)}getLeft(){return this.left}setRight(e){return this.setNode(`right`,e)}getRight(){return this.right}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}},ks=class extends B{constructor(e,t){super(e,t)}get type(){return R.Term}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}setExpression(e){return this.setNode(`expression`,e)}getExpression(){return this.expression}},As=class extends B{constructor(e,t){super(e,t)}get type(){return R.AttributeSelector}setNamespacePrefix(e){return this.setNode(`namespacePrefix`,e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode(`identifier`,e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}setValue(e){return this.setNode(`value`,e)}getValue(){return this.value}},js=class extends B{constructor(e,t){super(e,t)}get type(){return R.HexColorValue}},Ms=class extends B{constructor(e,t){super(e,t)}get type(){return R.RatioValue}},Ns=class extends B{constructor(e,t){super(e,t)}get type(){return R.NumericValue}getValue(){let e=this.getText(),t=0,n;for(let r=0,i=e.length;r<i&&(n=e.charCodeAt(r),48<=n&&n<=57||n===46);r++)t+=1;return{value:e.substring(0,t),unit:t<e.length?e.substring(t):void 0}}},Ps=class extends Ho{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return R.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():``}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Fs=class extends B{constructor(e,t){super(e,t)}get type(){return R.Interpolation}},Is=class extends B{constructor(e,t){super(e,t)}get type(){return R.VariableName}getName(){return this.getText()}},Ls=class extends B{constructor(e,t){super(e,t)}get type(){return R.ExtendsReference}getSelectors(){return this.selectors||=new V(this),this.selectors}},Rs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MixinContentReference}getArguments(){return this.arguments||=new V(this),this.arguments}},zs=class extends H{constructor(e,t){super(e,t)}get type(){return R.MixinContentDeclaration}getParameters(){return this.parameters||=new V(this),this.parameters}},Bs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MixinReference}getNamespaces(){return this.namespaces||=new V(this),this.namespaces}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}getArguments(){return this.arguments||=new V(this),this.arguments}setContent(e){return this.setNode(`content`,e)}getContent(){return this.content}},Vs=class extends H{constructor(e,t){super(e,t)}get type(){return R.MixinDeclaration}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}getParameters(){return this.parameters||=new V(this),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Hs=class extends H{constructor(e,t){super(e,t)}get type(){return R.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Us=class extends B{get type(){return R.ListEntry}setKey(e){return this.setNode(`key`,e,0)}setValue(e){return this.setNode(`value`,e,1)}},Ws=class extends B{getConditions(){return this.conditions||=new V(this),this.conditions}},Gs=class extends B{setVariable(e){return this.setNode(`variable`,e)}},Ks=class extends B{get type(){return R.Module}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}},qs;(function(e){e[e.Ignore=1]=`Ignore`,e[e.Warning=2]=`Warning`,e[e.Error=4]=`Error`})(qs||={});var Js=class{constructor(e,t,n,r,i=e.offset,a=e.length){this.node=e,this.rule=t,this.level=n,this.message=r||t.message,this.offset=i,this.length=a}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Ys=class e{static entries(t){let n=new e;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};function U(...e){let t=e[0],n,r,i;if(typeof t==`string`)n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!=`object`?e:e[0];else if(t instanceof Array){let n=e.slice(1);if(t.length!==n.length+1)throw Error(`expected a string as the first argument to l10n.t`);let r=t[0];for(let e=1;e<t.length;e++)r+=`{${e-1}}`+t[e];return U(r,...n)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(``):t.comment}`),i=t.args??{};return Zs(r,i)}var Xs=/{([^}]+)}/g;function Zs(e,t){return Object.keys(t).length===0?e:e.replace(Xs,(e,n)=>t[n]??e)}var W=class{constructor(e,t){this.id=e,this.message=t}};let G={NumberExpected:new W(`css-numberexpected`,U(`number expected`)),ConditionExpected:new W(`css-conditionexpected`,U(`condition expected`)),RuleOrSelectorExpected:new W(`css-ruleorselectorexpected`,U(`at-rule or selector expected`)),DotExpected:new W(`css-dotexpected`,U(`dot expected`)),ColonExpected:new W(`css-colonexpected`,U(`colon expected`)),SemiColonExpected:new W(`css-semicolonexpected`,U(`semi-colon expected`)),TermExpected:new W(`css-termexpected`,U(`term expected`)),ExpressionExpected:new W(`css-expressionexpected`,U(`expression expected`)),OperatorExpected:new W(`css-operatorexpected`,U(`operator expected`)),IdentifierExpected:new W(`css-identifierexpected`,U(`identifier expected`)),PercentageExpected:new W(`css-percentageexpected`,U(`percentage expected`)),URIOrStringExpected:new W(`css-uriorstringexpected`,U(`uri or string expected`)),URIExpected:new W(`css-uriexpected`,U(`URI expected`)),VariableNameExpected:new W(`css-varnameexpected`,U(`variable name expected`)),VariableValueExpected:new W(`css-varvalueexpected`,U(`variable value expected`)),PropertyValueExpected:new W(`css-propertyvalueexpected`,U(`property value expected`)),LeftCurlyExpected:new W(`css-lcurlyexpected`,U(`{ expected`)),RightCurlyExpected:new W(`css-rcurlyexpected`,U(`} expected`)),LeftSquareBracketExpected:new W(`css-rbracketexpected`,U(`[ expected`)),RightSquareBracketExpected:new W(`css-lbracketexpected`,U(`] expected`)),LeftParenthesisExpected:new W(`css-lparentexpected`,U(`( expected`)),RightParenthesisExpected:new W(`css-rparentexpected`,U(`) expected`)),CommaExpected:new W(`css-commaexpected`,U(`comma expected`)),PageDirectiveOrDeclarationExpected:new W(`css-pagedirordeclexpected`,U(`page directive or declaraton expected`)),UnknownAtRule:new W(`css-unknownatrule`,U(`at-rule unknown`)),UnknownKeyword:new W(`css-unknownkeyword`,U(`unknown keyword`)),SelectorExpected:new W(`css-selectorexpected`,U(`selector expected`)),StringLiteralExpected:new W(`css-stringliteralexpected`,U(`string literal expected`)),WhitespaceExpected:new W(`css-whitespaceexpected`,U(`whitespace expected`)),MediaQueryExpected:new W(`css-mediaqueryexpected`,U(`media query expected`)),IdentifierOrWildcardExpected:new W(`css-idorwildcardexpected`,U(`identifier or wildcard expected`)),WildcardExpected:new W(`css-wildcardexpected`,U(`wildcard expected`)),IdentifierOrVariableExpected:new W(`css-idorvarexpected`,U(`identifier or variable expected`))};var Qs;(function(e){function t(e){return typeof e==`string`}e.is=t})(Qs||={});var $s;(function(e){function t(e){return typeof e==`string`}e.is=t})($s||={});var ec;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(ec||={});var tc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(tc||={});var nc;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=tc.MAX_VALUE),t===Number.MAX_VALUE&&(t=tc.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.uinteger(t.line)&&Y.uinteger(t.character)}e.is=n})(nc||={});var K;(function(e){function t(e,t,n,r){if(Y.uinteger(e)&&Y.uinteger(t)&&Y.uinteger(n)&&Y.uinteger(r))return{start:nc.create(e,t),end:nc.create(n,r)};if(nc.is(e)&&nc.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&nc.is(t.start)&&nc.is(t.end)}e.is=n})(K||={});var rc;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.range)&&(Y.string(t.uri)||Y.undefined(t.uri))}e.is=n})(rc||={});var ic;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.targetRange)&&Y.string(t.targetUri)&&K.is(t.targetSelectionRange)&&(K.is(t.originSelectionRange)||Y.undefined(t.originSelectionRange))}e.is=n})(ic||={});var ac;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.numberRange(t.red,0,1)&&Y.numberRange(t.green,0,1)&&Y.numberRange(t.blue,0,1)&&Y.numberRange(t.alpha,0,1)}e.is=n})(ac||={});var oc;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.range)&&ac.is(t.color)}e.is=n})(oc||={});var sc;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.label)&&(Y.undefined(t.textEdit)||q.is(t))&&(Y.undefined(t.additionalTextEdits)||Y.typedArray(t.additionalTextEdits,q.is))}e.is=n})(sc||={});var cc;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(cc||={});var lc;(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return Y.defined(n)&&(o.startCharacter=n),Y.defined(r)&&(o.endCharacter=r),Y.defined(i)&&(o.kind=i),Y.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.uinteger(t.startLine)&&Y.uinteger(t.startLine)&&(Y.undefined(t.startCharacter)||Y.uinteger(t.startCharacter))&&(Y.undefined(t.endCharacter)||Y.uinteger(t.endCharacter))&&(Y.undefined(t.kind)||Y.string(t.kind))}e.is=n})(lc||={});var uc;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&rc.is(t.location)&&Y.string(t.message)}e.is=n})(uc||={});var dc;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(dc||={});var fc;(function(e){e.Unnecessary=1,e.Deprecated=2})(fc||={});var pc;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.href)}e.is=t})(pc||={});var mc;(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return Y.defined(n)&&(o.severity=n),Y.defined(r)&&(o.code=r),Y.defined(i)&&(o.source=i),Y.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&Y.string(t.message)&&(Y.number(t.severity)||Y.undefined(t.severity))&&(Y.integer(t.code)||Y.string(t.code)||Y.undefined(t.code))&&(Y.undefined(t.codeDescription)||Y.string(t.codeDescription?.href))&&(Y.string(t.source)||Y.undefined(t.source))&&(Y.undefined(t.relatedInformation)||Y.typedArray(t.relatedInformation,uc.is))}e.is=n})(mc||={});var hc;(function(e){function t(e,t,...n){let r={title:e,command:t};return Y.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.title)&&Y.string(t.command)}e.is=n})(hc||={});var q;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.newText)&&K.is(t.range)}e.is=i})(q||={});var gc;(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.label)&&(Y.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(Y.string(t.description)||t.description===void 0)}e.is=n})(gc||={});var _c;(function(e){function t(e){let t=e;return Y.string(t)}e.is=t})(_c||={});var vc;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return q.is(t)&&(gc.is(t.annotationId)||_c.is(t.annotationId))}e.is=i})(vc||={});var yc;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Ec.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(yc||={});var bc;(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&Y.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||Y.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||Y.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(bc||={});var xc;(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&Y.string(t.oldUri)&&Y.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||Y.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||Y.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(xc||={});var Sc;(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&Y.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||Y.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||Y.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(Sc||={});var Cc;(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>Y.string(e.kind)?bc.is(e)||xc.is(e)||Sc.is(e):yc.is(e)))}e.is=t})(Cc||={});var wc;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)}e.is=n})(wc||={});var Tc;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&Y.integer(t.version)}e.is=n})(Tc||={});var Ec;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&(t.version===null||Y.integer(t.version))}e.is=n})(Ec||={});var Dc;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&Y.string(t.languageId)&&Y.integer(t.version)&&Y.string(t.text)}e.is=n})(Dc||={});var Oc;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(Oc||={});var kc;(function(e){function t(e){let t=e;return Y.objectLiteral(e)&&Oc.is(t.kind)&&Y.string(t.value)}e.is=t})(kc||={});var J;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(J||={});var Ac;(function(e){e.PlainText=1,e.Snippet=2})(Ac||={});var jc;(function(e){e.Deprecated=1})(jc||={});var Mc;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&Y.string(t.newText)&&K.is(t.insert)&&K.is(t.replace)}e.is=n})(Mc||={});var Nc;(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||={});var Pc;(function(e){function t(e){let t=e;return t&&(Y.string(t.detail)||t.detail===void 0)&&(Y.string(t.description)||t.description===void 0)}e.is=t})(Pc||={});var Fc;(function(e){function t(e){return{label:e}}e.create=t})(Fc||={});var Ic;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(Ic||={});var Lc;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return Y.string(t)||Y.objectLiteral(t)&&Y.string(t.language)&&Y.string(t.value)}e.is=n})(Lc||={});var Rc;(function(e){function t(e){let t=e;return!!t&&Y.objectLiteral(t)&&(kc.is(t.contents)||Lc.is(t.contents)||Y.typedArray(t.contents,Lc.is))&&(e.range===void 0||K.is(e.range))}e.is=t})(Rc||={});var zc;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(zc||={});var Bc;(function(e){function t(e,t,...n){let r={label:e};return Y.defined(t)&&(r.documentation=t),r.parameters=Y.defined(n)?n:[],r}e.create=t})(Bc||={});var Vc;(function(e){e.Text=1,e.Read=2,e.Write=3})(Vc||={});var Hc;(function(e){function t(e,t){let n={range:e};return Y.number(t)&&(n.kind=t),n}e.create=t})(Hc||={});var Uc;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Uc||={});var Wc;(function(e){e.Deprecated=1})(Wc||={});var Gc;(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(Gc||={});var Kc;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(Kc||={});var qc;(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&Y.string(t.name)&&Y.number(t.kind)&&K.is(t.range)&&K.is(t.selectionRange)&&(t.detail===void 0||Y.string(t.detail))&&(t.deprecated===void 0||Y.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(qc||={});var Jc;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(Jc||={});var Yc;(function(e){e.Invoked=1,e.Automatic=2})(Yc||={});var Xc;(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.typedArray(t.diagnostics,mc.is)&&(t.only===void 0||Y.typedArray(t.only,Y.string))&&(t.triggerKind===void 0||t.triggerKind===Yc.Invoked||t.triggerKind===Yc.Automatic)}e.is=n})(Xc||={});var Zc;(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):hc.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&Y.string(t.title)&&(t.diagnostics===void 0||Y.typedArray(t.diagnostics,mc.is))&&(t.kind===void 0||Y.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||hc.is(t.command))&&(t.isPreferred===void 0||Y.boolean(t.isPreferred))&&(t.edit===void 0||Cc.is(t.edit))}e.is=n})(Zc||={});var Qc;(function(e){function t(e,t){let n={range:e};return Y.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&(Y.undefined(t.command)||hc.is(t.command))}e.is=n})(Qc||={});var $c;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.uinteger(t.tabSize)&&Y.boolean(t.insertSpaces)}e.is=n})($c||={});var el;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&(Y.undefined(t.target)||Y.string(t.target))}e.is=n})(el||={});var tl;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return Y.objectLiteral(n)&&K.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(tl||={});var nl;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(nl||={});var rl;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(rl||={});var il;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(il||={});var al;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&Y.string(t.text)}e.is=n})(al||={});var ol;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&Y.boolean(t.caseSensitiveLookup)&&(Y.string(t.variableName)||t.variableName===void 0)}e.is=n})(ol||={});var sl;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&(Y.string(t.expression)||t.expression===void 0)}e.is=n})(sl||={});var cl;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(e.stoppedLocation)}e.is=n})(cl||={});var ll;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(ll||={});var ul;(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&(t.tooltip===void 0||Y.string(t.tooltip)||kc.is(t.tooltip))&&(t.location===void 0||rc.is(t.location))&&(t.command===void 0||hc.is(t.command))}e.is=n})(ul||={});var dl;(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&nc.is(t.position)&&(Y.string(t.label)||Y.typedArray(t.label,ul.is))&&(t.kind===void 0||ll.is(t.kind))&&t.textEdits===void 0||Y.typedArray(t.textEdits,q.is)&&(t.tooltip===void 0||Y.string(t.tooltip)||kc.is(t.tooltip))&&(t.paddingLeft===void 0||Y.boolean(t.paddingLeft))&&(t.paddingRight===void 0||Y.boolean(t.paddingRight))}e.is=n})(dl||={});var fl;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t})(fl||={});var pl;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(pl||={});var ml;(function(e){function t(e){return{items:e}}e.create=t})(ml||={});var hl;(function(e){e.Invoked=0,e.Automatic=1})(hl||={});var gl;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(gl||={});var _l;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(_l||={});var vl;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&$s.is(t.uri)&&Y.string(t.name)}e.is=t})(vl||={});var yl;(function(e){function t(e,t,n,r){return new bl(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(Y.defined(t)&&Y.string(t.uri)&&(Y.undefined(t.languageId)||Y.string(t.languageId))&&Y.uinteger(t.lineCount)&&Y.func(t.getText)&&Y.func(t.positionAt)&&Y.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}})(yl||={});var bl=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&=(e.push(r),!1);let i=t.charAt(r);n=i===`\r`||i===`
|
|
28
28
|
`,i===`\r`&&r+1<t.length&&t.charAt(r+1)===`
|
|
29
29
|
`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return nc.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return nc.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},Y;(function(e){let t=Object.prototype.toString;function n(e){return e!==void 0}e.defined=n;function r(e){return e===void 0}e.undefined=r;function i(e){return e===!0||e===!1}e.boolean=i;function a(e){return t.call(e)===`[object String]`}e.string=a;function o(e){return t.call(e)===`[object Number]`}e.number=o;function s(e,n,r){return t.call(e)===`[object Number]`&&n<=e&&e<=r}e.numberRange=s;function c(e){return t.call(e)===`[object Number]`&&-2147483648<=e&&e<=2147483647}e.integer=c;function l(e){return t.call(e)===`[object Number]`&&0<=e&&e<=2147483647}e.uinteger=l;function u(e){return t.call(e)===`[object Function]`}e.func=u;function d(e){return typeof e==`object`&&!!e}e.objectLiteral=d;function f(e,t){return Array.isArray(e)&&e.every(t)}e.typedArray=f})(Y||={});var xl=class e{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=Tl(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=wl(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;e<t;e++)o[e+i+1]=s[e];else s.length<1e4?o.splice(i+1,a-i,...s):this._lineOffsets=o=o.slice(0,i+1).concat(s,o.slice(a+1));let c=n.text.length-(r-t);if(c!==0)for(let e=i+1+s.length,t=o.length;e<t;e++)o[e]=o[e]+c}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw Error(`Unknown change event received`);this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=wl(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return{line:0,character:e};for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},Sl;(function(e){function t(e,t,n,r){return new xl(e,t,n,r)}e.create=t;function n(e,t,n){if(e instanceof xl)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}e.update=n;function r(e,t){let n=e.getText(),r=Cl(t.map(El),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(r<i)throw Error(`Overlapping edit`);r>i&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}e.applyEdits=r})(Sl||={});function Cl(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Cl(r,t),Cl(i,t);let a=0,o=0,s=0;for(;a<r.length&&o<i.length;)t(r[a],i[o])<=0?e[s++]=r[a++]:e[s++]=i[o++];for(;a<r.length;)e[s++]=r[a++];for(;o<i.length;)e[s++]=i[o++];return e}function wl(e,t,n=0){let r=t?[n]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);(i===13||i===10)&&(i===13&&t+1<e.length&&e.charCodeAt(t+1)===10&&t++,r.push(n+t+1))}return r}function Tl(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function El(e){let t=Tl(e.range);return t===e.range?e:{newText:e.newText,range:t}}var Dl;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oc.Markdown,Oc.PlainText]}},hover:{contentFormat:[Oc.Markdown,Oc.PlainText]}}}})(Dl||={});var Ol;(function(e){e[e.Unknown=0]=`Unknown`,e[e.File=1]=`File`,e[e.Directory=2]=`Directory`,e[e.SymbolicLink=64]=`SymbolicLink`})(Ol||={});let kl=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Al=[{label:`rgb`,func:`rgb($red, $green, $blue)`,insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:U(`Creates a Color from red, green, and blue values.`)},{label:`rgba`,func:`rgba($red, $green, $blue, $alpha)`,insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:U(`Creates a Color from red, green, blue, and alpha values.`)},{label:`rgb relative`,func:`rgb(from $color $red $green $blue)`,insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:U(`Creates a Color from the red, green, and blue values of another Color.`)},{label:`hsl`,func:`hsl($hue, $saturation, $lightness)`,insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:U(`Creates a Color from hue, saturation, and lightness values.`)},{label:`hsla`,func:`hsla($hue, $saturation, $lightness, $alpha)`,insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:U(`Creates a Color from hue, saturation, lightness, and alpha values.`)},{label:`hsl relative`,func:`hsl(from $color $hue $saturation $lightness)`,insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:U(`Creates a Color from the hue, saturation, and lightness values of another Color.`)},{label:`hwb`,func:`hwb($hue $white $black)`,insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:U(`Creates a Color from hue, white, and black values.`)},{label:`hwb relative`,func:`hwb(from $color $hue $white $black)`,insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:U(`Creates a Color from the hue, white, and black values of another Color.`)},{label:`lab`,func:`lab($lightness $a $b)`,insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:U(`Creates a Color from lightness, a, and b values.`)},{label:`lab relative`,func:`lab(from $color $lightness $a $b)`,insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:U(`Creates a Color from the lightness, a, and b values of another Color.`)},{label:`oklab`,func:`oklab($lightness $a $b)`,insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:U(`Creates a Color from lightness, a, and b values.`)},{label:`oklab relative`,func:`oklab(from $color $lightness $a $b)`,insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:U(`Creates a Color from the lightness, a, and b values of another Color.`)},{label:`lch`,func:`lch($lightness $chroma $hue)`,insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:U(`Creates a Color from lightness, chroma, and hue values.`)},{label:`lch relative`,func:`lch(from $color $lightness $chroma $hue)`,insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:U(`Creates a Color from the lightness, chroma, and hue values of another Color.`)},{label:`oklch`,func:`oklch($lightness $chroma $hue)`,insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:U(`Creates a Color from lightness, chroma, and hue values.`)},{label:`oklch relative`,func:`oklch(from $color $lightness $chroma $hue)`,insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:U(`Creates a Color from the lightness, chroma, and hue values of another Color.`)},{label:`color`,func:`color($color-space $red $green $blue)`,insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:U(`Creates a Color in a specific color space from red, green, and blue values.`)},{label:`color relative`,func:`color(from $color $color-space $red $green $blue)`,insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:U(`Creates a Color in a specific color space from the red, green, and blue values of another Color.`)},{label:`color-mix`,func:`color-mix(in $color-space, $color $percentage, $color $percentage)`,insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:U(`Mix two colors together in a rectangular color space.`)},{label:`color-mix hue`,func:`color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)`,insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:U(`Mix two colors together in a polar color space.`)}],jl=/^(rgb|rgba|hsl|hsla|hwb)$/i,Ml={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`},Nl=RegExp(`^(${Object.keys(Ml).join(`|`)})$`,`i`),Pl={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.`},Fl=RegExp(`^(${Object.keys(Pl).join(`|`)})$`,`i`);function Il(e,t){let n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);let e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw Error()}function Ll(e){let t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case`deg`:return parseFloat(t)%360;case`rad`:return parseFloat(t)*180/Math.PI%360;case`grad`:return parseFloat(t)*.9%360;case`turn`:return parseFloat(t)*360%360;default:if(n[2]===void 0)return parseFloat(t)%360}throw Error()}function Rl(e){let t=e.getName();return t?jl.test(t):!1}function zl(e){return kl.test(e)||Nl.test(e)||Fl.test(e)}function X(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Bl(e){if(e[0]!==`#`)return null;switch(e.length){case 4:return{red:X(e.charCodeAt(1))*17/255,green:X(e.charCodeAt(2))*17/255,blue:X(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:X(e.charCodeAt(1))*17/255,green:X(e.charCodeAt(2))*17/255,blue:X(e.charCodeAt(3))*17/255,alpha:X(e.charCodeAt(4))*17/255};case 7:return{red:(X(e.charCodeAt(1))*16+X(e.charCodeAt(2)))/255,green:(X(e.charCodeAt(3))*16+X(e.charCodeAt(4)))/255,blue:(X(e.charCodeAt(5))*16+X(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(X(e.charCodeAt(1))*16+X(e.charCodeAt(2)))/255,green:(X(e.charCodeAt(3))*16+X(e.charCodeAt(4)))/255,blue:(X(e.charCodeAt(5))*16+X(e.charCodeAt(6)))/255,alpha:(X(e.charCodeAt(7))*16+X(e.charCodeAt(8)))/255}}return null}function Vl(e,t,n,r=1){if(e/=60,t===0)return{red:n,green:n,blue:n,alpha:r};{let i=(e,t,n)=>{for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},a=n<=.5?n*(t+1):n+t-n*t,o=n*2-a;return{red:i(o,a,e+2),green:i(o,a,e),blue:i(o,a,e-2),alpha:r}}}function Hl(e){let t=e.red,n=e.green,r=e.blue,i=e.alpha,a=Math.max(t,n,r),o=Math.min(t,n,r),s=0,c=0,l=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(l<=.5?u/(2*l):u/(2-2*l),1),a){case t:s=(n-r)/u+(n<r?6:0);break;case n:s=(r-t)/u+2;break;case r:s=(t-n)/u+4}s*=60,s=Math.round(s)}return{h:s,s:c,l,a:i}}function Ul(e,t,n,r=1){if(t+n>=1){let e=t/(t+n);return{red:e,green:e,blue:e,alpha:r}}let i=Vl(e,1,.5,r),a=i.red;a*=1-t-n,a+=t;let o=i.green;o*=1-t-n,o+=t;let s=i.blue;return s*=1-t-n,s+=t,{red:a,green:o,blue:s,alpha:r}}function Wl(e){let t=Hl(e),n=Math.min(e.red,e.green,e.blue),r=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:r,a:t.a}}function Gl(e){if(e.type===R.HexColorValue)return Bl(e.getText());if(e.type===R.Function){let t=e,n=t.getName(),r=t.getArguments().getChildren();if(r.length===1){let e=r[0].getChildren();if(e.length===1&&e[0].type===R.Expression&&(r=e[0].getChildren(),r.length===3)){let e=r[2];if(e instanceof Os){let t=e.getLeft(),n=e.getRight(),i=e.getOperator();t&&n&&i&&i.matches(`/`)&&(r=[r[0],r[1],t,n])}}}if(!n||r.length<3||r.length>4)return null;try{let e=r.length===4?Il(r[3],1):1;if(n===`rgb`||n===`rgba`)return{red:Il(r[0],255),green:Il(r[1],255),blue:Il(r[2],255),alpha:e};if(n===`hsl`||n===`hsla`)return Vl(Ll(r[0]),Il(r[1],100),Il(r[2],100),e);if(n===`hwb`)return Ul(Ll(r[0]),Il(r[1],100),Il(r[2],100),e)}catch{return null}}else if(e.type===R.Identifier){if(e.parent&&e.parent.type!==R.Term)return null;let t=e.parent;if(t&&t.parent&&t.parent.type===R.BinaryExpression){let e=t.parent;if(e.parent&&e.parent.type===R.ListEntry&&e.parent.key===e)return null}let n=e.getText().toLowerCase();if(n===`none`)return null;let r=Ml[n];if(r)return Bl(r)}return null}let Kl={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.`},ql={"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.`},Jl={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.`},Yl=[`medium`,`thick`,`thin`],Xl={"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.`},Zl={"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.`},Ql={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."},$l={"var()":`Evaluates the value of a custom variable.`,"calc()":`Evaluates an mathematical expression. The following operators can be used: + - * /.`},eu={"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.`},tu={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.`},nu={"circle()":`Defines a circle.`,"ellipse()":`Defines an ellipse.`,"inset()":`Defines an inset rectangle.`,"polygon()":`Defines a polygon.`},ru={length:/* @__PURE__ */ `cap.ch.cm.cqb.cqh.cqi.cqmax.cqmin.cqw.dvb.dvh.dvi.dvw.em.ex.ic.in.lh.lvb.lvh.lvi.lvw.mm.pc.pt.px.q.rcap.rch.rem.rex.ric.rlh.svb.svh.svi.svw.vb.vh.vi.vmax.vmin.vw`.split(`.`),angle:[`deg`,`rad`,`grad`,`turn`],time:[`ms`,`s`],frequency:[`Hz`,`kHz`],resolution:[`dpi`,`dpcm`,`dppx`],percentage:[`%`,`fr`]},iu=/* @__PURE__ */ `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`.split(`.`),au=/* @__PURE__ */ `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`.split(`.`),ou=[`@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 su(e){return Object.keys(e).map(t=>e[t])}function cu(e){return e!==void 0}var lu=class{constructor(e=new Eo){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:F.EOF,offset:-1,len:0,text:``},this.prevToken=void 0}peekIdent(e){return F.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return F.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return F.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,t){return e===this.token.type&&t.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){let e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){let t=this.mark();return e()||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(F.AtKeyword===this.token.type){for(let t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type&&(this.consumeToken(),!0)}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let t=this.createNode(R.Identifier);do;while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;)if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;else if(t&&t.indexOf(this.token.type)!==-1)return!0;else{if(this.token.type===F.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new B(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,r){if(!(e instanceof V)&&(t&&this.markError(e,t,n,r),this.prevToken)){let t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,r){this.token!==this.lastErrorToken&&(e.addIssue(new Js(e,t,qs.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||r)&&this.resync(n,r)}parseStylesheet(e){let t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,(r,i)=>{if(e.version!==t)throw Error(`Underlying model has changed, AST is no longer valid`);return n.substr(r,i)})}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();let r=t.bind(this)();return r&&(r.textProvider=n||((t,n)=>e.substr(t,n))),r}_parseStylesheet(){let e=this.create(Lo);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;let r=this._parseStylesheetStatement();for(r&&(e.addChild(r),n=!0,t=!1,!this.peek(F.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(F.SemiColon)&&this.markError(e,G.SemiColonExpected));this.accept(F.SemiColon)||this.accept(F.CDO)||this.accept(F.CDC);)n=!0,t=!1}while(n);if(this.peek(F.EOF))break;t||=(this.peek(F.AtKeyword)?this.markError(e,G.UnknownAtRule):this.markError(e,G.RuleOrSelectorExpected),!0),this.consumeToken()}while(!this.peek(F.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){let t=this.mark();if(this._parseSelector(e)){for(;this.accept(F.Comma)&&this._parseSelector(e););if(this.accept(F.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){let t=this.create(zo),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(F.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,G.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(F.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(F.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case R.Keyframe:case R.ViewPort:case R.Media:case R.Ruleset:case R.Namespace:case R.If:case R.For:case R.Each:case R.While:case R.MixinDeclaration:case R.FunctionDeclaration:case R.MixinContentDeclaration:return!1;case R.ExtendsReference:case R.MixinContentReference:case R.ReturnStatement:case R.MediaQuery:case R.Debug:case R.Import:case R.AtApplyRule:case R.CustomPropertyDeclaration:return!0;case R.VariableDeclaration:return e.needsSemicolon;case R.MixinReference:return!e.getContent();case R.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){let t=this.create(Ro);if(!this.accept(F.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(F.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(F.SemiColon))return this.finish(t,G.SemiColonExpected,[F.SemiColon,F.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===F.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(F.SemiColon););n=e()}return this.accept(F.CurlyR)?this.finish(t):this.finish(t,G.RightCurlyExpected,[F.CurlyR,F.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,G.LeftCurlyExpected,[F.CurlyR,F.SemiColon])}_parseSelector(e){let t=this.create(Bo),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let n=this.create(Wo);return n.setProperty(this._parseProperty())?this.accept(F.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(F.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,G.PropertyValueExpected)):this.finish(n,G.ColonExpected,[F.Colon],e||[F.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(F.Ident,/^--/))return null;let t=this.create(Go);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(F.Colon))return this.finish(t,G.ColonExpected,[F.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);let n=this.mark();if(this.peek(F.CurlyL)){let e=this.create(Uo),r=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(r)&&!r.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(F.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}let r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],F.SemiColon,F.EOF))?(t.setValue(r),this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),cu(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,G.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[F.CurlyR]){let t=this.create(B),n=()=>i===0&&a===0&&o===0,r=()=>e.indexOf(this.token.type)!==-1,i=0,a=0,o=0;done:for(;;){switch(this.token.type){case F.SemiColon:if(n())break done;break;case F.Exclamation:if(n())break done;break;case F.CurlyL:i++;break;case F.CurlyR:if(i--,i<0){if(r()&&a===0&&o===0)break done;return this.finish(t,G.LeftCurlyExpected)}break;case F.ParenthesisL:a++;break;case F.ParenthesisR:if(a--,a<0){if(r()&&o===0&&i===0)break done;return this.finish(t,G.LeftParenthesisExpected)}break;case F.BracketL:o++;break;case F.BracketR:if(o--,o<0)return this.finish(t,G.LeftSquareBracketExpected);break;case F.BadString:break done;case F.EOF:let e=G.RightCurlyExpected;return o>0?e=G.RightSquareBracketExpected:a>0&&(e=G.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){let t=this.mark();return this._parseProperty()&&this.accept(F.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){let e=this.create(Ko),t=this.mark();return(this.acceptDelim(`*`)||this.acceptDelim(`_`))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(F.Charset))return null;let e=this.create(B);return this.consumeToken(),this.accept(F.String)?this.accept(F.SemiColon)?this.finish(e):this.finish(e,G.SemiColonExpected):this.finish(e,G.IdentifierExpected)}_parseImport(){if(!this.peekKeyword(`@import`))return null;let e=this.create(cs);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,G.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent(`layer`)&&this.accept(F.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,G.IdentifierExpected,[F.SemiColon]);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[])}return this.acceptIdent(`supports`)&&this.accept(F.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(F.ParenthesisR))?this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[]):(!this.peek(F.SemiColon)&&!this.peek(F.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword(`@namespace`))return null;let e=this.create(ps);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,G.URIExpected,[F.SemiColon]):this.accept(F.SemiColon)?this.finish(e):this.finish(e,G.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword(`@font-face`))return null;let e=this.create(is);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword(`@-ms-viewport`)&&!this.peekKeyword(`@-o-viewport`)&&!this.peekKeyword(`@viewport`))return null;let e=this.create(rs);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(F.AtKeyword,this.keyframeRegex))return null;let e=this.create(os),t=this.create(B);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches(`@-ms-keyframes`)&&this.markError(t,G.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,G.IdentifierExpected,[F.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([z.Keyframe])}_parseKeyframeSelector(){let e=this.create(ss),t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(F.Percentage)&&(t=!0),!t)return null;for(;this.accept(F.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(F.Percentage)&&(t=!0),!t)return this.finish(e,G.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(ss),t=this.mark(),n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(F.Percentage)&&(n=!0),!n)return null;for(;this.accept(F.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(F.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(F.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword(`@property`))return null;let e=this.create(_s);return this.consumeToken(),!this.peekRegExp(F.Ident,/^--/)||!e.setName(this._parseIdent([z.Property]))?this.finish(e,G.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(e=!1){if(!this.peekKeyword(`@layer`))return null;let t=this.create(gs);this.consumeToken();let n=this._parseLayerNameList();return n&&t.setNames(n),(!n||n.getChildren().length===1)&&this.peek(F.CurlyL)?this._parseBody(t,this._parseLayerDeclaration.bind(this,e)):this.accept(F.SemiColon)?this.finish(t):this.finish(t,G.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){let e=this.createNode(R.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(F.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,G.IdentifierExpected);return this.finish(e)}_parseLayerName(){let e=this.createNode(R.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(`.`);)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,G.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword(`@supports`))return null;let t=this.create(hs);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(ws);if(this.acceptIdent(`not`))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(F.Ident,/^(and|or)$/i)){let t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(ws);if(this.accept(F.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([F.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,G.ConditionExpected):this.accept(F.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[]);if(this.peek(F.Ident)){let t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(F.ParenthesisL)){let t=1;for(;this.token.type!==F.EOF&&t!==0;)this.token.type===F.ParenthesisL?t++:this.token.type===F.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,G.LeftParenthesisExpected,[],[F.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword(`@media`))return null;let t=this.create(ms);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,G.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(bs);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,G.MediaQueryExpected);for(;this.accept(F.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,G.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(xs),t=this.mark();if(this.acceptIdent(`not`),this.peek(F.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent(`only`),!e.addChild(this._parseIdent()))return null;this.acceptIdent(`and`)&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){let e=this.mark(),t=this.create(Ms);return this._parseNumeric()?this.acceptDelim(`/`)?this._parseNumeric()?this.finish(t):this.finish(t,G.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(Ss);this.acceptIdent(`not`);let t=!0;for(;t;){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);if(this.peek(F.ParenthesisL)||this.peekIdent(`not`)?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL]);t=this.acceptIdent(`and`)||this.acceptIdent(`or`)}return this.finish(e)}_parseMediaFeature(){let e=[F.ParenthesisR],t=this.create(Cs);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(F.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,G.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()&&(!t.addChild(this._parseMediaFeatureValue())||this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue())))return this.finish(t,G.TermExpected,[],e)}else if(t.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(t,G.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,G.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,G.TermExpected,[],e)}else return this.finish(t,G.IdentifierExpected,[],e);return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim(`<`)||this.acceptDelim(`>`)?(this.hasWhitespace()||this.acceptDelim(`=`),!0):!!this.acceptDelim(`=`)}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(B);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword(`@page`))return null;let e=this.create(Ts);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(F.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,G.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(F.AtKeyword))return null;let e=this.create(Es);return this.acceptOneKeyword(ou)||this.markError(e,G.UnknownAtRule,[],[F.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(F.Ident)&&!this.peek(F.Colon))return null;let e=this.create(B);return e.addChild(this._parseIdent()),this.accept(F.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,G.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword(`@-moz-document`))return null;let e=this.create(vs);return this.consumeToken(),this.resync([],[F.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword(`@container`))return null;let t=this.create(ys);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){let e=this.create(B);if(this.acceptIdent(`not`))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent(`and`))for(;this.acceptIdent(`and`);)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent(`or`))for(;this.acceptIdent(`or`);)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){let e=this.create(B);if(this.accept(F.ParenthesisL)){if(this.peekIdent(`not`)||this.peek(F.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else if(this.acceptIdent(`style`)){if(this.hasWhitespace()||!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);return this.finish(e)}_parseStyleQuery(){let e=this.create(B);if(this.acceptIdent(`not`))e.addChild(this._parseStyleInParens());else if(this.peek(F.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent(`and`))for(;this.acceptIdent(`and`);)e.addChild(this._parseStyleInParens());else if(this.peekIdent(`or`))for(;this.acceptIdent(`or`);)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([F.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){let e=this.create(B);if(this.accept(F.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(F.AtKeyword))return null;let e=this.create(Hs);e.addChild(this._parseUnknownAtRuleName());let t=()=>r===0&&i===0&&a===0,n=0,r=0,i=0,a=0;done:for(;;){switch(this.token.type){case F.SemiColon:if(t())break done;break;case F.EOF:return r>0?this.finish(e,G.RightCurlyExpected):a>0?this.finish(e,G.RightSquareBracketExpected):i>0?this.finish(e,G.RightParenthesisExpected):this.finish(e);case F.CurlyL:n++,r++;break;case F.CurlyR:if(r--,n>0&&r===0){if(this.consumeToken(),a>0)return this.finish(e,G.RightSquareBracketExpected);if(i>0)return this.finish(e,G.RightParenthesisExpected);break done}if(r<0){if(i===0&&a===0)break done;return this.finish(e,G.LeftCurlyExpected)}break;case F.ParenthesisL:i++;break;case F.ParenthesisR:if(i--,i<0)return this.finish(e,G.LeftParenthesisExpected);break;case F.BracketL:a++;break;case F.BracketR:if(a--,a<0)return this.finish(e,G.LeftSquareBracketExpected)}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(B);return this.accept(F.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim(`/`)||this.peekDelim(`*`)||this.peekDelim(`+`)||this.peekDelim(`-`)||this.peek(F.Dashmatch)||this.peek(F.Includes)||this.peek(F.SubstringOperator)||this.peek(F.PrefixOperator)||this.peek(F.SuffixOperator)||this.peekDelim(`=`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.finish(e)}return null}_parseUnaryOperator(){if(!this.peekDelim(`+`)&&!this.peekDelim(`-`))return null;let e=this.create(B);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(`>`)){let e=this.create(B);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(`>`)){if(!this.hasWhitespace()&&this.acceptDelim(`>`))return e.type=R.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=R.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim(`+`)){let e=this.create(B);return this.consumeToken(),e.type=R.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim(`~`)){let e=this.create(B);return this.consumeToken(),e.type=R.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim(`/`)){let e=this.create(B);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent(`deep`)&&!this.hasWhitespace()&&this.acceptDelim(`/`))return e.type=R.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){let e=this.create(Vo),t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(F.Hash)&&!this.peekDelim(`#`))return null;let e=this.createNode(R.IdentifierSelector);if(this.acceptDelim(`#`)){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,G.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim(`.`))return null;let e=this.createNode(R.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,G.IdentifierExpected):this.finish(e)}_parseElementName(){let e=this.mark(),t=this.createNode(R.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim(`*`)?(this.restoreAtMark(e),null):this.finish(t)}_parseNamespacePrefix(){let e=this.mark(),t=this.createNode(R.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim(`*`),this.acceptDelim(`|`)?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(F.BracketL))return null;let e=this.create(As);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent(`i`),this.acceptIdent(`s`)),this.accept(F.BracketR)?this.finish(e):this.finish(e,G.RightSquareBracketExpected)):this.finish(e,G.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(F.ParenthesisL)){let t=()=>{let e=this.create(B);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(F.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(F.ParenthesisR)?this.finish(e):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent(`of`)&&!e.addChild(this.try(t)))return this.finish(e,G.SelectorExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(F.Colon))return null;let e=this.mark(),t=this.createNode(R.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(F.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,G.IdentifierExpected):this.finish(t))}_tryParsePrio(){let e=this.mark();return this._parsePrio()||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(F.Exclamation))return null;let e=this.createNode(R.Prio);return this.accept(F.Exclamation)&&this.acceptIdent(`important`)?this.finish(e):null}_parseExpr(e=!1){let t=this.create(Ds);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(F.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent(`u`))return null;let e=this.create(Fo);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(F.BracketL))return null;let e=this.createNode(R.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(F.BracketR)?this.finish(e):this.finish(e,G.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(Os);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,G.TermExpected);n=this.finish(n);let r=this._parseOperator();return r&&(n=this._parseBinaryExpr(n,r)),this.finish(n)}_parseTerm(){let e=this.create(ks);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(F.ParenthesisL))return null;let e=this.create(B);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseNumeric(){if(this.peek(F.Num)||this.peek(F.Percentage)||this.peek(F.Resolution)||this.peek(F.Length)||this.peek(F.EMS)||this.peek(F.EXS)||this.peek(F.Angle)||this.peek(F.Time)||this.peek(F.Dimension)||this.peek(F.ContainerQueryLength)||this.peek(F.Freq)){let e=this.create(Ns);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(F.String)&&!this.peek(F.BadString))return null;let e=this.createNode(R.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(F.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),t=this.createNode(R.URILiteral);return this.accept(F.Ident),this.hasWhitespace()||!this.peek(F.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(B);return!this.accept(F.String)&&!this.accept(F.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(F.Ident))return null;let t=this.create(Io);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(F.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){let e=this.mark(),t=this.create(Jo);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(F.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,G.ExpressionExpected);return this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(F.Ident))return null;let e=this.create(Io);if(e.referenceTypes=[z.Function],this.acceptIdent(`progid`)){if(this.accept(F.Colon))for(;this.accept(F.Ident)&&this.acceptDelim(`.`););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(Xo);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(F.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(js);return this.consumeToken(),this.finish(e)}return null}};function uu(e,t){let n=0,r=e.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function du(e,t){return e.indexOf(t)!==-1}function fu(...e){let t=[];for(let n of e)for(let e of n)du(t,e)||t.push(e);return t}var pu=class{constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,t=0){return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){let n=e+t,r=uu(this.children,e=>e.offset>n);if(r===0)return this;let i=this.children[r-1];return i.offset<=e&&i.offset+i.length>=e+t?i.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){let r=this.symbols[n];if(r.name===e&&r.type===t)return r}return null}getSymbols(){return this.symbols}},mu=class extends pu{constructor(){super(0,Number.MAX_VALUE)}},hu=class{constructor(e,t,n,r){this.name=e,this.value=t,this.node=n,this.type=r}},gu=class{constructor(e){this.scope=e}addSymbol(e,t,n,r){if(e.offset!==-1){let i=this.scope.findScope(e.offset,e.length);i&&i.addSymbol(new hu(t,n,e,r))}}addScope(e){if(e.offset!==-1){let t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){let n=new pu(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,r,i){if(e&&e.offset!==-1){let a=this.addScope(e);a&&a.addSymbol(new hu(n,r,t,i))}}visitNode(e){switch(e.type){case R.Keyframe:return this.addSymbol(e,e.getName(),void 0,z.Keyframe),!0;case R.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case R.VariableDeclaration:return this.visitVariableDeclarationNode(e);case R.Ruleset:return this.visitRuleSet(e);case R.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,z.Mixin),!0;case R.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,z.Function),!0;case R.FunctionParameter:return this.visitFunctionParameterNode(e);case R.Declarations:return this.addScope(e),!0;case R.For:let t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,z.Variable),!0;case R.Each:{let t=e,n=t.getDeclarations();if(n){let e=t.getVariables().getChildren();for(let t of e)this.addSymbolToChildScope(n,t,t.getName(),void 0,z.Variable)}return!0}}return!0}visitRuleSet(e){let t=this.scope.findScope(e.offset,e.length);if(t)for(let n of e.getSelectors().getChildren())n instanceof Bo&&n.getChildren().length===1&&t.addSymbol(new hu(n.getChild(0).getText(),void 0,n,z.Rule));return!0}visitVariableDeclarationNode(e){let t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,z.Variable),!0}visitFunctionParameterNode(e){let t=e.getParent().getDeclarations();if(t){let n=e.getDefaultValue(),r=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),r,z.Variable)}return!0}visitCustomPropertyDeclarationNode(e){let t=e.getValue()?e.getValue().getText():``;return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,z.Variable),!0}addCSSVariable(e,t,n,r){e.offset!==-1&&this.scope.addSymbol(new hu(t,n,e,r))}},_u=class{constructor(e){this.global=new mu,e.acceptVisitor(new gu(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0),r=[],i={};for(;n;){let e=n.getSymbols();for(let n=0;n<e.length;n++){let a=e[n];a.type===t&&!i[a.name]&&(r.push(a),i[a.name]=!0)}n=n.parent}return r}internalFindSymbol(e,t){let n=e;if(e.parent instanceof Yo&&e.parent.getParent()instanceof H&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Xo&&e.parent.getParent()instanceof Jo){let t=e.parent.getParent().getIdentifier();if(t){let e=this.internalFindSymbol(t,[z.Function]);e&&(n=e.node.getDeclarations())}}if(!n)return null;let r=e.getText(),i=this.global.findScope(n.offset,n.length);for(;i;){for(let e=0;e<t.length;e++){let n=t[e],a=i.getSymbol(r,n);if(a)return a}i=i.parent}return null}evaluateReferenceTypes(e){if(e instanceof Io){let t=e.referenceTypes;if(t)return t;{if(e.isCustomProperty)return[z.Variable];let t=Po(e);if(t){let n=t.getNonPrefixedPropertyName();if((n===`animation`||n===`animation-name`)&&t.getValue()&&t.getValue().offset===e.offset)return[z.Keyframe]}}}else if(e instanceof Is)return[z.Variable];return e.findAParent(R.Selector,R.ExtendsReference)?[z.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===R.Interpolation;)e=e.getParent();let t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===R.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;let n=this.evaluateReferenceTypes(e);return!n||n.indexOf(t.type)===-1?!1:this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let r=this.global.findScope(n);for(;r;){let n=r.getSymbol(e,t);if(n)return n;r=r.parent}return null}};let vu={E:`Edge`,FF:`Firefox`,S:`Safari`,C:`Chrome`,IE:`IE`,O:`Opera`};function yu(e){switch(e){case`experimental`:return`⚠️ Property is experimental. Be cautious when using it.️
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
|
|
40
40
|
(`+xu(t)+`)`),`syntax`in e&&e.syntax&&(n+=`\n\nSyntax: ${xu(e.syntax)}`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=`
|
|
41
41
|
|
|
42
|
-
`),n+=e.references.map(e=>`[${e.name}](${e.url})`).join(` | `)),n}function wu(e=[]){return e.length===0?null:e.map(e=>{let t=``,n=e.match(/([A-Z]+)(\d+)?/),r=n[1],i=n[2];return r in vu&&(t+=vu[r]),i&&(t+=` `+i),t}).join(`, `)}var Tu;(()=>{var e={470:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(a!==s-1&&o!==1){if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;n.r(r),n.d(r,{URI:()=>c,Utils:()=>x}),typeof process==`object`?e=process.platform===`win32`:typeof navigator==`object`&&(e=navigator.userAgent.indexOf(`Windows`)>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!i.test(e.path))throw 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(a.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,o(this,a))}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new u(t,n,r,i,a)}static parse(e,t=!1){let n=s.exec(e);return n?new u(n[2]||``,v(n[4]||``),v(n[5]||``),v(n[7]||``),v(n[9]||``),t):new u(``,``,``,``,``)}static file(t){let n=``;if(e&&(t=t.replace(/\\/g,`/`)),t[0]===`/`&&t[1]===`/`){let e=t.indexOf(`/`,2);e===-1?(n=t.substring(2),t=`/`):(n=t.substring(2,e),t=t.substring(e)||`/`)}return new u(`file`,n,t,``,``)}static from(e){let t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return h(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{let t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===l?e.fsPath:null,t}}return e}}let l=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=m(this),this._fsPath}toString(e=!1){return e?h(this,!0):(this._formatted||=h(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=l),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let d={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 f(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=d[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function p(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=d[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function m(t,n){let r;return r=t.authority&&t.path.length>1&&t.scheme===`file`?`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,`\\`)),r}function h(e,t){let n=t?p:f,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:f(c,!1,!1)),r}function g(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+g(e.substr(3)):e}}let _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(_)?e.replace(_,(e=>g(e))):e}var y=n(470);let b=y.posix||y;var x;(function(e){e.joinPath=function(e,...t){return e.with({path:b.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=b.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=b.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return b.basename(e.path)},e.extname=function(e){return b.extname(e.path)}})(x||={})})(),Tu=r})();let{URI:Eu,Utils:Du}=Tu;function Ou(e){return Du.dirname(Eu.parse(e)).toString(!0)}function ku(e,...t){return Du.joinPath(Eu.parse(e),...t).toString(!0)}var Au=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){let n={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let i=r.uriValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);for(let e of a)n.items.push(e)}}for(let r of this.importCompletions){let i=r.pathValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);e.languageId===`scss`&&a.forEach(e=>{L(e.label,`_`)&&Do(e.label,`.scss`)&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))});for(let e of a)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,r,i){let a=Mu(e),o=L(e,`'`)||L(e,`"`),s=o?a.slice(0,t.character-(n.start.character+1)):a.slice(0,t.character-n.start.character),c=r.uri,l=Nu(s,a,o?Lu(n,1,-1):n),u=s.substring(0,s.lastIndexOf(`/`)+1),d=i.resolveReference(u||`.`,c);if(d)try{let e=[],t=await this.readDirectory(d);for(let[n,r]of t)n.charCodeAt(0)!==ju&&(r===Ol.Directory||ku(d,n)!==c)&&e.push(Pu(n,r===Ol.Directory,l));return e}catch{}return[]}};let ju=46;function Mu(e){return L(e,`'`)||L(e,`"`)?e.slice(1,-1):e}function Nu(e,t,n){let r,i=e.lastIndexOf(`/`);if(i===-1)r=n;else{let e=t.slice(i+1),a=Iu(n.end,-e.length),o=e.indexOf(` `),s;s=o===-1?n.end:Iu(a,o),r=K.create(a,s)}return r}function Pu(e,t,n){return t?(e+=`/`,{label:Fu(e),kind:J.Folder,textEdit:q.replace(n,Fu(e)),command:{title:`Suggest`,command:`editor.action.triggerSuggest`}}):{label:Fu(e),kind:J.File,textEdit:q.replace(n,Fu(e))}}function Fu(e){return e.replace(/(\s|\(|\)|,|"|')/g,`\\$1`)}function Iu(e,t){return nc.create(e.line,e.character+t)}function Lu(e,t,n){let r=Iu(e.start,t),i=Iu(e.end,n);return K.create(r,i)}let Ru=Ac.Snippet,zu={title:`Suggest`,command:`editor.action.triggerSuggest`};var Bu;(function(e){e.Enums=` `,e.Normal=`d`,e.VendorPrefixed=`x`,e.Term=`y`,e.Variable=`z`})(Bu||={});var Vu=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||=new _u(this.styleSheet),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,r,i=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,i);let a=new Au(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[a].concat(o);let s=this.doComplete(e,t,n,i);try{let t=await a.computeCompletions(e,r);return{isIncomplete:s.isIncomplete||t.isIncomplete,itemDefaults:s.itemDefaults,items:t.items.concat(s.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=Ju(e,this.offset),this.defaultReplaceRange=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{let e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=No(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(n instanceof Ko)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof Ds)n.parent instanceof Fs?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof Vo){let t=n.findAParent(R.ExtendsReference,R.Ruleset);if(t){if(t.type===R.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{let n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}}else if(n instanceof Xo)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof Ro)this.getCompletionsForDeclarations(n,e);else if(n instanceof Ps)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof zo)this.getCompletionsForRuleSet(n,e);else if(n instanceof Fs)this.getCompletionsForInterpolation(n,e);else if(n instanceof ns)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof Bs)this.getCompletionsForMixinReference(n,e);else if(n instanceof Jo)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof hs)this.getCompletionsForSupports(n,e);else if(n instanceof ws)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof Ls)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===R.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(n.parent===null)this.getCompletionForTopLevel(e);else if(n.type===R.StringLiteral&&this.isImportPathParent(n.parent.type))this.getCompletionForImportPath(n,e);else continue;if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),e.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,e),this.finalize(e)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===R.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(e.indexOf(n.type)!==-1)return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){let n=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(i=>{let a,o,s=!1;e?(a=this.getCompletionRange(e.getProperty()),o=i.name,cu(e.colonPosition)||(o+=`: `,s=!0)):(a=this.getCompletionRange(null),o=i.name+`: `,s=!0),!e&&r&&(o+=`$0;`),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(o+=`$0;`);let c={label:i.name,documentation:bu(i,this.doesSupportMarkdown()),tags:Hu(i)?[jc.Deprecated]:[],textEdit:q.replace(a,o),insertTextFormat:Ac.Snippet,kind:J.Property};i.restrictions||(s=!1),n&&s&&(c.command=zu);let l=(255-(typeof i.relevance==`number`?Math.min(Math.max(i.relevance,0),99):50)).toString(16);c.sortText=(L(i.name,`-`)?Bu.VendorPrefixed:Bu.Normal)+`_`+l,t.items.push(c)}),this.completionParticipants.forEach(e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){let n=e.getFullPropertyName(),r=this.cssDataManager.getProperty(n),i=e.getValue()||null;for(;i&&i.hasChildren();)i=i.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(i)})}),r){if(r.restrictions)for(let e of r.restrictions)switch(e){case`color`:this.getColorProposals(r,i,t);break;case`position`:this.getPositionProposals(r,i,t);break;case`repeat`:this.getRepeatStyleProposals(r,i,t);break;case`line-style`:this.getLineStyleProposals(r,i,t);break;case`line-width`:this.getLineWidthProposals(r,i,t);break;case`geometry-box`:this.getGeometryBoxProposals(r,i,t);break;case`box`:this.getBoxProposals(r,i,t);break;case`image`:this.getImageProposals(r,i,t);break;case`timing-function`:this.getTimingFunctionProposals(r,i,t);break;case`shape`:this.getBasicShapeProposals(r,i,t)}this.getValueEnumProposals(r,i,t),this.getCSSWideKeywordProposals(r,i,t),this.getUnitProposals(r,i,t)}else{let n=Gu(this.styleSheet,e);for(let e of n.getEntries())t.items.push({label:e,textEdit:q.replace(this.getCompletionRange(i),e),kind:J.Value})}return this.getVariableProposals(i,t),this.getTermProposals(r,i,t),t}getValueEnumProposals(e,t,n){if(e.values)for(let r of e.values){let i=r.name,a;if(Do(i,`)`)){let e=i.lastIndexOf(`(`);e!==-1&&(i=i.substring(0,e+1)+`$1`+i.substring(e+1),a=Ru)}let o=Bu.Enums;L(r.name,`-`)&&(o+=Bu.VendorPrefixed);let s={label:r.name,documentation:bu(r,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],textEdit:q.replace(this.getCompletionRange(t),i),sortText:o,kind:J.Value,insertTextFormat:a};n.items.push(s)}return n}getCSSWideKeywordProposals(e,t,n){for(let e in Ql)n.items.push({label:e,documentation:Ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});for(let e in $l){let r=Wu(e);n.items.push({label:e,documentation:$l[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:Ru,command:L(e,`var`)?zu:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){let n=L(r.name,`--`)?`var(${r.name})`:r.name,i={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(e),n),kind:J.Variable,sortText:Bu.Variable};if(typeof i.documentation==`string`&&zl(i.documentation)&&(i.kind=J.Color),r.node.type===R.FunctionParameter){let e=r.node.getParent();e.type===R.MixinDeclaration&&(i.detail=U(`argument from '{0}'`,e.getName()))}t.items.push(i)}return t}getVariableProposalsForCSSVarFunction(e){let t=new Uu;this.styleSheet.acceptVisitor(new qu(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){if(L(r.name,`--`)){let t={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(null),r.name),kind:J.Variable};typeof t.documentation==`string`&&zl(t.documentation)&&(t.kind=J.Color),e.items.push(t)}t.remove(r.name)}for(let n of t.getEntries())if(L(n,`--`)){let t={label:n,textEdit:q.replace(this.getCompletionRange(null),n),kind:J.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let r=`0`;if(this.currentWord.length>0){let e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(r=e[0],n.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===R.Term&&(t=t.getParent()),e.restrictions)for(let i of e.restrictions){let e=ru[i];if(e)for(let i of e){let e=r+i;n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let t=e.end===-1?this.position:this.textDocument.positionAt(e.end),n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return K.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(let e in Ml)n.items.push({label:e,documentation:Ml[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e in Pl)n.items.push({label:e,documentation:Pl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});let r=new Uu;this.styleSheet.acceptVisitor(new Ku(r,this.offset));for(let e of r.getEntries())n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e of Al)n.items.push({label:e.label,detail:e.func,documentation:e.desc,textEdit:q.replace(this.getCompletionRange(t),e.insertText),insertTextFormat:Ru,kind:J.Function});return n}getPositionProposals(e,t,n){for(let e in Kl)n.items.push({label:e,documentation:Kl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getRepeatStyleProposals(e,t,n){for(let e in ql)n.items.push({label:e,documentation:ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineStyleProposals(e,t,n){for(let e in Jl)n.items.push({label:e,documentation:Jl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineWidthProposals(e,t,n){for(let e of Yl)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getGeometryBoxProposals(e,t,n){for(let e in Zl)n.items.push({label:e,documentation:Zl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getBoxProposals(e,t,n){for(let e in Xl)n.items.push({label:e,documentation:Xl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getImageProposals(e,t,n){for(let e in eu){let r=Wu(e);n.items.push({label:e,documentation:eu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getTimingFunctionProposals(e,t,n){for(let e in tu){let r=Wu(e);n.items.push({label:e,documentation:tu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getBasicShapeProposals(e,t,n){for(let e in nu){let r=Wu(e);n.items.push({label:e,documentation:nu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getCompletionsForStylesheet(e){let t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof zo?this.getCompletionsForRuleSet(t,e):t instanceof hs?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:q.replace(this.getCompletionRange(null),t.name),documentation:bu(t,this.doesSupportMarkdown()),tags:Hu(t)?[jc.Deprecated]:[],kind:J.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){let n=e.getDeclarations();return n&&n.endsWith(`}`)&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){let r=this.findInNodePath(R.PseudoSelector,R.IdentifierSelector,R.ClassSelector,R.ElementNameSelector);if(!r&&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=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`:-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),this.cssDataManager.getPseudoElements().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`::-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),!t){for(let e of iu)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword});for(let e of au)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword})}let i={};i[this.currentWord]=!0;let a=this.textDocument.getText();if(this.styleSheet.accept(e=>{if(e.type===R.SimpleSelector&&e.length>0){let t=a.substr(e.offset,e.length);return t.charAt(0)===`.`&&!i[t]&&(i[t]=!0,n.items.push({label:t,textEdit:q.replace(this.getCompletionRange(r),t),kind:J.Keyword})),!1}return!0}),e&&e.isNested()){let t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&e.getSelectors().getChildren().indexOf(t)===0&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;let n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ho){let e=n;if(!cu(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(cu(e.semicolonPosition)&&e.semicolonPosition<this.offset)return this.offset===e.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(e instanceof Wo)return this.getCompletionsForDeclarationValue(e,t)}else n instanceof Ls?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&this.currentWord[0]===`@`||n instanceof zo)&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&cu(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){let n=e.getParent();if(n instanceof Xo)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;let r=e.findParent(R.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;let i=e.findChildAtOffset(this.offset,!0);return!i||i instanceof Ns||i instanceof Io?this.getCompletionsForDeclarationValue(r,t):t}getCompletionsForFunctionArgument(e,t,n){let r=t.getIdentifier();return r&&r.matches(`var`)&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(n),n}getCompletionsForFunctionDeclaration(e,t){let n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Mixin);for(let e of n)e.node instanceof Vs&&t.items.push(this.makeTermProposal(e,e.node.getParameters(),null));let r=e.getIdentifier()||null;return this.completionParticipants.forEach(e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),t}getTermProposals(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Function);for(let e of r)e.node instanceof ns&&n.items.push(this.makeTermProposal(e,e.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;let r=t.getChildren().map(e=>e instanceof Yo?e.getName():e.getText()),i=e.name+`(`+r.map((e,t)=>"${"+(t+1)+`:`+e+`}`).join(`, `)+`)`;return{label:e.name,detail:e.name+`(`+r.join(`, `)+`)`,textEdit:q.replace(this.getCompletionRange(n),i),insertTextFormat:Ru,kind:J.Function,sortText:Bu.Term}}getCompletionsForSupportsCondition(e,t){let n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof Wo)return!cu(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof ws)return this.getCompletionsForSupportsCondition(n,t)}return cu(e.lParent)&&this.offset>e.lParent&&(!cu(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){let n=e.getDeclarations();if(!n||this.offset<=n.offset){let n=e.findFirstChildBeforeOffset(this.offset);return n instanceof ws?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,r,i;if(e.hasChildren()){let t=e.getChild(0);n=t.getText(),r=this.position,i=this.getCompletionRange(t)}else{n=``,r=this.position;let t=this.textDocument.positionAt(e.offset+4);i=K.create(t,t)}return this.completionParticipants.forEach(e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:r,range:i})}),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),t}hasCharacterAtPosition(e,t){let n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!cu(this.supportsMarkdown)){if(!cu(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Oc.Markdown)!==-1}return this.supportsMarkdown}};function Hu(e){return!(!e.status||e.status!==`nonstandard`&&e.status!==`obsolete`)}var Uu=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Wu(e){return e.replace(/\(\)$/,`($1)`)}function Gu(e,t){let n=t.getFullPropertyName(),r=new Uu;function i(e){return(e instanceof Io||e instanceof Ns||e instanceof js)&&r.add(e.getText()),!0}function a(e){let t=e.getFullPropertyName();return n===t}function o(e){if(e instanceof Wo&&e!==t&&a(e)){let t=e.getValue();t&&t.accept(i)}return!0}return e.accept(o),r}var Ku=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof js||e instanceof Jo&&Rl(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},qu=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof Io&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Ju(e,t){let n=t-1,r=e.getText();for(;n>=0&&`
|
|
42
|
+
`),n+=e.references.map(e=>`[${e.name}](${e.url})`).join(` | `)),n}function wu(e=[]){return e.length===0?null:e.map(e=>{let t=``,n=e.match(/([A-Z]+)(\d+)?/),r=n[1],i=n[2];return r in vu&&(t+=vu[r]),i&&(t+=` `+i),t}).join(`, `)}var Tu;(()=>{var e={470:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(a!==s-1&&o!==1){if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;n.r(r),n.d(r,{URI:()=>c,Utils:()=>x}),typeof process==`object`?e=process.platform===`win32`:typeof navigator==`object`&&(e=navigator.userAgent.indexOf(`Windows`)>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!i.test(e.path))throw 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(a.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,o(this,a))}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new u(t,n,r,i,a)}static parse(e,t=!1){let n=s.exec(e);return n?new u(n[2]||``,v(n[4]||``),v(n[5]||``),v(n[7]||``),v(n[9]||``),t):new u(``,``,``,``,``)}static file(t){let n=``;if(e&&(t=t.replace(/\\/g,`/`)),t[0]===`/`&&t[1]===`/`){let e=t.indexOf(`/`,2);e===-1?(n=t.substring(2),t=`/`):(n=t.substring(2,e),t=t.substring(e)||`/`)}return new u(`file`,n,t,``,``)}static from(e){let t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return h(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{let t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===l?e.fsPath:null,t}}return e}}let l=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=m(this),this._fsPath}toString(e=!1){return e?h(this,!0):(this._formatted||=h(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=l),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let d={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 f(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=d[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function p(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=d[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function m(t,n){let r;return r=t.authority&&t.path.length>1&&t.scheme===`file`?`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,`\\`)),r}function h(e,t){let n=t?p:f,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:f(c,!1,!1)),r}function g(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+g(e.substr(3)):e}}let _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(_)?e.replace(_,(e=>g(e))):e}var y=n(470);let b=y.posix||y;var x;(function(e){e.joinPath=function(e,...t){return e.with({path:b.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=b.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=b.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return b.basename(e.path)},e.extname=function(e){return b.extname(e.path)}})(x||={})})(),Tu=r})();let{URI:Eu,Utils:Du}=Tu;function Ou(e){return Du.dirname(Eu.parse(e)).toString(!0)}function ku(e,...t){return Du.joinPath(Eu.parse(e),...t).toString(!0)}var Au=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){let n={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let i=r.uriValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);for(let e of a)n.items.push(e)}}for(let r of this.importCompletions){let i=r.pathValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);e.languageId===`scss`&&a.forEach(e=>{L(e.label,`_`)&&Do(e.label,`.scss`)&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))});for(let e of a)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,r,i){let a=Mu(e),o=L(e,`'`)||L(e,`"`),s=o?a.slice(0,t.character-(n.start.character+1)):a.slice(0,t.character-n.start.character),c=r.uri,l=Nu(s,a,o?Lu(n,1,-1):n),u=s.substring(0,s.lastIndexOf(`/`)+1),d=i.resolveReference(u||`.`,c);if(d)try{let e=[],t=await this.readDirectory(d);for(let[n,r]of t)n.charCodeAt(0)!==ju&&(r===Ol.Directory||ku(d,n)!==c)&&e.push(Pu(n,r===Ol.Directory,l));return e}catch{}return[]}};let ju=46;function Mu(e){return L(e,`'`)||L(e,`"`)?e.slice(1,-1):e}function Nu(e,t,n){let r,i=e.lastIndexOf(`/`);if(i===-1)r=n;else{let e=t.slice(i+1),a=Iu(n.end,-e.length),o=e.indexOf(` `),s;s=o===-1?n.end:Iu(a,o),r=K.create(a,s)}return r}function Pu(e,t,n){return t?(e+=`/`,{label:Fu(e),kind:J.Folder,textEdit:q.replace(n,Fu(e)),command:{title:`Suggest`,command:`editor.action.triggerSuggest`}}):{label:Fu(e),kind:J.File,textEdit:q.replace(n,Fu(e))}}function Fu(e){return e.replace(/(\s|\(|\)|,|"|')/g,`\\$1`)}function Iu(e,t){return nc.create(e.line,e.character+t)}function Lu(e,t,n){let r=Iu(e.start,t),i=Iu(e.end,n);return K.create(r,i)}let Ru=Ac.Snippet,zu={title:`Suggest`,command:`editor.action.triggerSuggest`};var Bu;(function(e){e.Enums=` `,e.Normal=`d`,e.VendorPrefixed=`x`,e.Term=`y`,e.Variable=`z`})(Bu||={});var Vu=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||=new _u(this.styleSheet),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,r,i=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,i);let a=new Au(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[a].concat(o);let s=this.doComplete(e,t,n,i);try{let t=await a.computeCompletions(e,r);return{isIncomplete:s.isIncomplete||t.isIncomplete,itemDefaults:s.itemDefaults,items:t.items.concat(s.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=Ju(e,this.offset),this.defaultReplaceRange=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{let e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=No(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(n instanceof Ko)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof Ds)n.parent instanceof Fs?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof Vo){let t=n.findAParent(R.ExtendsReference,R.Ruleset);if(t){if(t.type===R.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{let n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}}else if(n instanceof Xo)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof Ro)this.getCompletionsForDeclarations(n,e);else if(n instanceof Ps)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof zo)this.getCompletionsForRuleSet(n,e);else if(n instanceof Fs)this.getCompletionsForInterpolation(n,e);else if(n instanceof ns)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof Bs)this.getCompletionsForMixinReference(n,e);else if(n instanceof Jo)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof hs)this.getCompletionsForSupports(n,e);else if(n instanceof ws)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof Ls)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===R.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(n.parent===null)this.getCompletionForTopLevel(e);else if(n.type===R.StringLiteral&&this.isImportPathParent(n.parent.type))this.getCompletionForImportPath(n,e);else continue;if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),e.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,e),this.finalize(e)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===R.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(e.indexOf(n.type)!==-1)return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){let n=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(i=>{let a,o,s=!1;e?(a=this.getCompletionRange(e.getProperty()),o=i.name,cu(e.colonPosition)||(o+=`: `,s=!0)):(a=this.getCompletionRange(null),o=i.name+`: `,s=!0),!e&&r&&(o+=`$0;`),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(o+=`$0;`);let c={label:i.name,documentation:bu(i,this.doesSupportMarkdown()),tags:Hu(i)?[jc.Deprecated]:[],textEdit:q.replace(a,o),insertTextFormat:Ac.Snippet,kind:J.Property};i.restrictions||(s=!1),n&&s&&(c.command=zu);let l=(255-(typeof i.relevance==`number`?Math.min(Math.max(i.relevance,0),99):50)).toString(16);c.sortText=(L(i.name,`-`)?Bu.VendorPrefixed:Bu.Normal)+`_`+l,t.items.push(c)}),this.completionParticipants.forEach(e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){let n=e.getFullPropertyName(),r=this.cssDataManager.getProperty(n),i=e.getValue()||null;for(;i&&i.hasChildren();)i=i.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(i)})}),r){if(r.restrictions)for(let e of r.restrictions)switch(e){case`color`:this.getColorProposals(r,i,t);break;case`position`:this.getPositionProposals(r,i,t);break;case`repeat`:this.getRepeatStyleProposals(r,i,t);break;case`line-style`:this.getLineStyleProposals(r,i,t);break;case`line-width`:this.getLineWidthProposals(r,i,t);break;case`geometry-box`:this.getGeometryBoxProposals(r,i,t);break;case`box`:this.getBoxProposals(r,i,t);break;case`image`:this.getImageProposals(r,i,t);break;case`timing-function`:this.getTimingFunctionProposals(r,i,t);break;case`shape`:this.getBasicShapeProposals(r,i,t)}this.getValueEnumProposals(r,i,t),this.getCSSWideKeywordProposals(r,i,t),this.getUnitProposals(r,i,t)}else{let n=Gu(this.styleSheet,e);for(let e of n.getEntries())t.items.push({label:e,textEdit:q.replace(this.getCompletionRange(i),e),kind:J.Value})}return this.getVariableProposals(i,t),this.getTermProposals(r,i,t),t}getValueEnumProposals(e,t,n){if(e.values)for(let r of e.values){let i=r.name,a;if(Do(i,`)`)){let e=i.lastIndexOf(`(`);e!==-1&&(i=i.substring(0,e+1)+`$1`+i.substring(e+1),a=Ru)}let o=Bu.Enums;L(r.name,`-`)&&(o+=Bu.VendorPrefixed);let s={label:r.name,documentation:bu(r,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],textEdit:q.replace(this.getCompletionRange(t),i),sortText:o,kind:J.Value,insertTextFormat:a};n.items.push(s)}return n}getCSSWideKeywordProposals(e,t,n){for(let e in Ql)n.items.push({label:e,documentation:Ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});for(let e in $l){let r=Wu(e);n.items.push({label:e,documentation:$l[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:Ru,command:L(e,`var`)?zu:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){let n=L(r.name,`--`)?`var(${r.name})`:r.name,i={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(e),n),kind:J.Variable,sortText:Bu.Variable};if(typeof i.documentation==`string`&&zl(i.documentation)&&(i.kind=J.Color),r.node.type===R.FunctionParameter){let e=r.node.getParent();e.type===R.MixinDeclaration&&(i.detail=U(`argument from '{0}'`,e.getName()))}t.items.push(i)}return t}getVariableProposalsForCSSVarFunction(e){let t=new Uu;this.styleSheet.acceptVisitor(new qu(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){if(L(r.name,`--`)){let t={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(null),r.name),kind:J.Variable};typeof t.documentation==`string`&&zl(t.documentation)&&(t.kind=J.Color),e.items.push(t)}t.remove(r.name)}for(let n of t.getEntries())if(L(n,`--`)){let t={label:n,textEdit:q.replace(this.getCompletionRange(null),n),kind:J.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let r=`0`;if(this.currentWord.length>0){let e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(r=e[0],n.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===R.Term&&(t=t.getParent()),e.restrictions)for(let i of e.restrictions){let e=ru[i];if(e)for(let i of e){let e=r+i;n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let t=e.end===-1?this.position:this.textDocument.positionAt(e.end),n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return K.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(let e in Ml)n.items.push({label:e,documentation:Ml[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e in Pl)n.items.push({label:e,documentation:Pl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});let r=new Uu;this.styleSheet.acceptVisitor(new Ku(r,this.offset));for(let e of r.getEntries())n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e of Al)n.items.push({label:e.label,detail:e.func,documentation:e.desc,textEdit:q.replace(this.getCompletionRange(t),e.insertText),insertTextFormat:Ru,kind:J.Function});return n}getPositionProposals(e,t,n){for(let e in Kl)n.items.push({label:e,documentation:Kl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getRepeatStyleProposals(e,t,n){for(let e in ql)n.items.push({label:e,documentation:ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineStyleProposals(e,t,n){for(let e in Jl)n.items.push({label:e,documentation:Jl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineWidthProposals(e,t,n){for(let e of Yl)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getGeometryBoxProposals(e,t,n){for(let e in Zl)n.items.push({label:e,documentation:Zl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getBoxProposals(e,t,n){for(let e in Xl)n.items.push({label:e,documentation:Xl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getImageProposals(e,t,n){for(let e in eu){let r=Wu(e);n.items.push({label:e,documentation:eu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getTimingFunctionProposals(e,t,n){for(let e in tu){let r=Wu(e);n.items.push({label:e,documentation:tu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getBasicShapeProposals(e,t,n){for(let e in nu){let r=Wu(e);n.items.push({label:e,documentation:nu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getCompletionsForStylesheet(e){let t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof zo?this.getCompletionsForRuleSet(t,e):t instanceof hs?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:q.replace(this.getCompletionRange(null),t.name),documentation:bu(t,this.doesSupportMarkdown()),tags:Hu(t)?[jc.Deprecated]:[],kind:J.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){let n=e.getDeclarations();return n&&n.endsWith(`}`)&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){let r=this.findInNodePath(R.PseudoSelector,R.IdentifierSelector,R.ClassSelector,R.ElementNameSelector);if(!r&&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=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`:-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),this.cssDataManager.getPseudoElements().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`::-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),!t){for(let e of iu)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword});for(let e of au)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword})}let i={};i[this.currentWord]=!0;let a=this.textDocument.getText();if(this.styleSheet.accept(e=>{if(e.type===R.SimpleSelector&&e.length>0){let t=a.substr(e.offset,e.length);return t.charAt(0)===`.`&&!i[t]&&(i[t]=!0,n.items.push({label:t,textEdit:q.replace(this.getCompletionRange(r),t),kind:J.Keyword})),!1}return!0}),e&&e.isNested()){let t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&e.getSelectors().getChildren().indexOf(t)===0&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;let n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ho){let e=n;if(!cu(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(cu(e.semicolonPosition)&&e.semicolonPosition<this.offset)return this.offset===e.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(e instanceof Wo)return this.getCompletionsForDeclarationValue(e,t)}else n instanceof Ls?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&this.currentWord[0]===`@`||n instanceof zo)&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&cu(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){let n=e.getParent();if(n instanceof Xo)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;let r=e.findParent(R.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;let i=e.findChildAtOffset(this.offset,!0);return!i||i instanceof Ns||i instanceof Io?this.getCompletionsForDeclarationValue(r,t):t}getCompletionsForFunctionArgument(e,t,n){let r=t.getIdentifier();return r&&r.matches(`var`)&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n}getCompletionsForFunctionDeclaration(e,t){let n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Mixin);for(let e of n)e.node instanceof Vs&&t.items.push(this.makeTermProposal(e,e.node.getParameters(),null));let r=e.getIdentifier()||null;return this.completionParticipants.forEach(e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),t}getTermProposals(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Function);for(let e of r)e.node instanceof ns&&n.items.push(this.makeTermProposal(e,e.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;let r=t.getChildren().map(e=>e instanceof Yo?e.getName():e.getText()),i=e.name+`(`+r.map((e,t)=>"${"+(t+1)+`:`+e+`}`).join(`, `)+`)`;return{label:e.name,detail:e.name+`(`+r.join(`, `)+`)`,textEdit:q.replace(this.getCompletionRange(n),i),insertTextFormat:Ru,kind:J.Function,sortText:Bu.Term}}getCompletionsForSupportsCondition(e,t){let n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof Wo)return!cu(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof ws)return this.getCompletionsForSupportsCondition(n,t)}return cu(e.lParent)&&this.offset>e.lParent&&(!cu(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){let n=e.getDeclarations();if(!n||this.offset<=n.offset){let n=e.findFirstChildBeforeOffset(this.offset);return n instanceof ws?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,r,i;if(e.hasChildren()){let t=e.getChild(0);n=t.getText(),r=this.position,i=this.getCompletionRange(t)}else{n=``,r=this.position;let t=this.textDocument.positionAt(e.offset+4);i=K.create(t,t)}return this.completionParticipants.forEach(e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:r,range:i})}),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),t}hasCharacterAtPosition(e,t){let n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!cu(this.supportsMarkdown)){if(!cu(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Oc.Markdown)!==-1}return this.supportsMarkdown}};function Hu(e){return!(!e.status||e.status!==`nonstandard`&&e.status!==`obsolete`)}var Uu=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Wu(e){return e.replace(/\(\)$/,`($1)`)}function Gu(e,t){let n=t.getFullPropertyName(),r=new Uu;function i(e){return(e instanceof Io||e instanceof Ns||e instanceof js)&&r.add(e.getText()),!0}function a(e){let t=e.getFullPropertyName();return n===t}function o(e){if(e instanceof Wo&&e!==t&&a(e)){let t=e.getValue();t&&t.accept(i)}return!0}return e.accept(o),r}var Ku=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof js||e instanceof Jo&&Rl(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},qu=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof Io&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Ju(e,t){let n=t-1,r=e.getText();for(;n>=0&&`
|
|
43
43
|
\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}var Yu=class e{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(let t of this.attributes)if(t.name===e)return t.value}return null}addChild(t){t instanceof e&&(t.parent=this),this.children||=[],this.children.push(t)}append(e){if(this.attributes){let t=this.attributes[this.attributes.length-1];t.value+=e}}prepend(e){if(this.attributes){let t=this.attributes[0];t.value=e+t.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Xu);)e=e.parent;return e}removeChild(e){if(this.children){let t=this.children.indexOf(e);if(t!==-1)return this.children.splice(t,1),!0}return!1}addAttr(e,t){this.attributes||=[];for(let n of this.attributes)if(n.name===e){n.value+=` `+t;return}this.attributes.push({name:e,value:t})}clone(t=!0){let n=new e;if(this.attributes){n.attributes=[];for(let e of this.attributes)n.addAttr(e.name,e.value)}if(t&&this.children){n.children=[];for(let e=0;e<this.children.length;e++)n.addChild(this.children[e].clone())}return n}cloneWithParent(){let e=this.clone(!1);return this.parent&&!(this.parent instanceof Xu)&&this.parent.cloneWithParent().addChild(e),e}},Xu=class extends Yu{},Zu=class extends Yu{constructor(e){super(),this.addAttr(`name`,e)}},Qu=class{constructor(e){this.quote=e,this.result=[]}print(e,t){this.result=[],e instanceof Xu?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);let n;return n=t?`${t.text}\n … `+this.result.join(`
|
|
44
44
|
`):this.result.join(`
|
|
45
|
-
`),[{language:`html`,value:n}]}doPrint(e,t){for(let n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){let n=Array(e+1).join(` `);this.result.push(n+t)}doPrintElement(e,t){let n=e.findAttribute(`name`);if(e instanceof Zu||n===`…`){this.writeLine(t,n);return}let r=[`<`];if(n?r.push(n):r.push(`element`),e.attributes){for(let t of e.attributes)if(t.name!==`name`){r.push(` `),r.push(t.name);let e=t.value;e&&(r.push(`=`),r.push($u.ensure(e,this.quote)))}}r.push(`>`),this.writeLine(t,r.join(``))}},$u;(function(e){function t(e,t){return t+n(e)+t}e.ensure=t;function n(e){let t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.remove=n})($u||={});var ed=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function td(e,t){let n=new Yu;for(let r of e.getChildren())switch(r.type){case R.SelectorCombinator:if(t){let e=r.getText().split(`&`);if(e.length===1){n.addAttr(`name`,e[0]);break}n=t.cloneWithParent(),e[0]&&n.findRoot().prepend(e[0]);for(let r=1;r<e.length;r++){if(r>1){let e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[r])}}break;case R.SelectorPlaceholder:if(r.matches(`@at-root`))return n;case R.ElementNameSelector:let e=r.getText();n.addAttr(`name`,e===`*`?`element`:nd(e));break;case R.ClassSelector:n.addAttr(`class`,nd(r.getText().substring(1)));break;case R.IdentifierSelector:n.addAttr(`id`,nd(r.getText().substring(1)));break;case R.MixinDeclaration:n.addAttr(`class`,r.getName());break;case R.PseudoSelector:n.addAttr(nd(r.getText()),``);break;case R.AttributeSelector:let i=r,a=i.getIdentifier();if(a){let e=i.getValue(),t=i.getOperator(),r;if(e&&t)switch(nd(t.getText())){case`|=`:r=`${$u.remove(nd(e.getText()))}-\u2026`;break;case`^=`:r=`${$u.remove(nd(e.getText()))}\u2026`;break;case`$=`:r=`\u2026${$u.remove(nd(e.getText()))}`;break;case`~=`:r=` \u2026 ${$u.remove(nd(e.getText()))} \u2026 `;break;case`*=`:r=`\u2026${$u.remove(nd(e.getText()))}\u2026`;break;default:r=$u.remove(nd(e.getText()))}n.addAttr(nd(a.getText()),r)}}return n}function nd(e){let t=new Eo;t.setSource(e);let n=t.scanUnquotedString();return n?n.text:e}var rd=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){let n=od(e);if(n){let r=new Qu(`"`).print(n,t);return r.push(this.selectorToSpecificityMarkedString(e)),r}return[]}simpleSelectorToMarkedString(e){let t=td(e),n=new Qu(`"`).print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){let t=e.match(/^::?([\w-]+)/);return t?!!this.cssDataManager.getPseudoElement(`::`+t[1]):!1}selectorToSpecificityMarkedString(e){let t=e=>{let t=new ed,r=new ed;for(let t of e)for(let e of t.getChildren()){let t=n(e);if(t.id>r.id){r=t;continue}if(!(t.id<r.id)){if(t.attr>r.attr){r=t;continue}if(!(t.attr<r.attr)&&t.tag>r.tag){r=t;continue}}}return t.id+=r.id,t.attr+=r.attr,t.tag+=r.tag,t},n=e=>{let r=new ed;elementLoop:for(let i of e.getChildren()){switch(i.type){case R.IdentifierSelector:r.id++;break;case R.ClassSelector:case R.AttributeSelector:r.attr++;break;case R.ElementNameSelector:if(i.matches(`*`))break;r.tag++;break;case R.PseudoSelector:let e=i.getText(),n=i.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){r.tag++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}r.tag++;continue elementLoop}if(e.match(/^:where/i))continue elementLoop;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){r.attr++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(r.attr++,n.length===3&&n[1].type===23){let e=t(n[2].getChildren());r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}let e=new lu,i=n[1].getText();e.scanner.setSource(i);let a=e.scanner.scan(),o=e.scanner.scan();if(a.text===`n`||a.text===`-n`&&o.text===`of`){let n=[],a=i.slice(o.offset+2).split(`,`);for(let t of a){let r=e.internalParse(t,e._parseSelector);r&&n.push(r)}let s=t(n);r.id+=s.id,r.attr+=s.attr,r.tag+=s.tag;continue elementLoop}continue elementLoop}r.attr++;continue elementLoop}if(i.getChildren().length>0){let e=n(i);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag}}return r},r=n(e);return`[${U(`Selector Specificity`)}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`}},id=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Xu)&&e.getChildren().some(e=>e.hasChildren()&&e.getChild(0).type===R.SelectorCombinator)){let e=this.element.findRoot();e.parent instanceof Xu&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(let n of e.getChildren()){if(n instanceof Vo){if(this.prev instanceof Vo){let e=new Zu(`…`);this.element.addChild(e),this.element=e}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 Zu(`⋮`));let e=td(n,t),r=e.findRoot();this.element.addChild(r),this.element=e}(n instanceof Vo||n.type===R.SelectorCombinatorParent||n.type===R.SelectorCombinatorShadowPiercingDescendant||n.type===R.SelectorCombinatorSibling||n.type===R.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function ad(e){switch(e.type){case R.MixinDeclaration:case R.Stylesheet:return!0}return!1}function od(e){if(e.matches(`@at-root`))return null;let t=new Xu,n=[],r=e.getParent();if(r instanceof zo){let e=r.getParent();for(;e&&!ad(e);){if(e instanceof zo){if(e.getSelectors().matches(`@at-root`))break;n.push(e)}e=e.getParent()}}let i=new id(t);for(let e=n.length-1;e>=0;e--){let t=n[e].getSelectors().getChild(0);t&&i.processSelector(t)}return i.processSelector(e),t}var sd=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new rd(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,r=this.defaultSettings){function i(t){return K.create(e.positionAt(t.offset),e.positionAt(t.end))}let a=No(n,e.offsetAt(t)),o=null,s;for(let e=0;e<a.length;e++){let t=a[e];if(t instanceof ms&&(s={isMedia:!0,text:t.getText().match(/@media[^\{]+/g)?.[0]}),t instanceof Bo){o={contents:this.selectorPrinting.selectorToMarkedString(t,s),range:i(t)};break}if(t instanceof Vo){L(t.getText(),`@`)||(o={contents:this.selectorPrinting.simpleSelectorToMarkedString(t),range:i(t)});break}if(t instanceof Wo){let e=t.getFullPropertyName(),n=this.cssDataManager.getProperty(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}continue}if(t instanceof Hs){let e=t.getText(),n=this.cssDataManager.getAtDirective(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}continue}if(t instanceof B&&t.type===R.PseudoSelector){let e=t.getText(),n=e.slice(0,2)===`::`?this.cssDataManager.getPseudoElement(e):this.cssDataManager.getPseudoClass(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}continue}}return o&&(o.contents=this.convertContents(o.contents)),o}convertContents(e){return this.doesSupportMarkdown()||typeof e==`string`?e:`kind`in e?{kind:`plaintext`,value:e.value}:Array.isArray(e)?e.map(e=>typeof e==`string`?e:e.value):e.value}doesSupportMarkdown(){if(!cu(this.supportsMarkdown)){if(!cu(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(Oc.Markdown)!==-1}return this.supportsMarkdown}};let cd=/^\w+:\/\//,ld=/^data:/;var ud=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){let r=new _u(n),i=Mo(n,e.offsetAt(t));if(!i)return null;let a=r.findSymbolFromNode(i);return a?{uri:e.uri,range:fd(a.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map(t=>({uri:e.uri,range:t.range}))}getHighlightNode(e,t,n){let r=Mo(n,e.offsetAt(t));if(r&&r.type!==R.Stylesheet&&r.type!==R.Declarations)return r.type===R.Identifier&&r.parent&&r.parent.type===R.ClassSelector&&(r=r.parent),r}findDocumentHighlights(e,t,n){let r=[],i=this.getHighlightNode(e,t,n);if(!i)return r;let a=new _u(n),o=a.findSymbolFromNode(i),s=i.getText();return n.accept(t=>{if(o){if(a.matchesSymbol(t,o))return r.push({kind:md(t),range:fd(t,e)}),!1}else i&&i.type===t.type&&t.matches(s)&&r.push({kind:md(t),range:fd(t,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===R.Import}findDocumentLinks(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(a&&!ld.test(a)){if(cd.test(a))i.push(r);else{let t=n.resolveReference(a,e.uri);t&&(r.target=t),i.push(r)}}}return i}async findDocumentLinks2(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(a&&!ld.test(a)){if(cd.test(a))i.push(r);else{let o=await this.resolveReference(a,e.uri,n,t.isRawLink);o!==void 0&&(r.target=o,i.push(r))}}}return i}findUnresolvedLinks(e,t){let n=[],r=t=>{let r=t.getText(),i=fd(t,e);if(i.start.line===i.end.line&&i.start.character===i.end.character)return;(L(r,`'`)||L(r,`"`))&&(r=r.slice(1,-1));let a=t.parent?this.isRawStringDocumentLinkNode(t.parent):!1;n.push({link:{target:r,range:i},isRawLink:a})};return t.accept(e=>{if(e.type===R.URILiteral){let t=e.getChild(0);return t&&r(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){let t=e.getText();return(L(t,`'`)||L(t,`"`))&&r(e),!1}return!0}),n}findSymbolInformations(e,t){let n=[];return this.collectDocumentSymbols(e,t,(t,r,i)=>{let a=i instanceof B?fd(i,e):i,o={name:t||U(`<undefined>`),kind:r,location:rc.create(e.uri,a)};n.push(o)}),n}findDocumentSymbols(e,t){let n=[],r=[];return this.collectDocumentSymbols(e,t,(t,i,a,o,s)=>{let c=a instanceof B?fd(a,e):a,l=o instanceof B?fd(o,e):o;(!l||!pd(c,l))&&(l=K.create(c.start,c.start));let u={name:t||U(`<undefined>`),kind:i,range:c,selectionRange:l},d=r.pop();for(;d&&!pd(d[1],c);)d=r.pop();if(d){let e=d[0];e.children||=[],e.children.push(u),r.push(d)}else n.push(u);s&&r.push([u,fd(s,e)])}),n}collectDocumentSymbols(e,t,n){t.accept(t=>{if(t instanceof zo){for(let r of t.getSelectors().getChildren())if(r instanceof Bo){let i=K.create(e.positionAt(r.offset),e.positionAt(t.end));n(r.getText(),Uc.Class,i,r,t.getDeclarations())}}else if(t instanceof Ps)n(t.getName(),Uc.Variable,t,t.getVariable(),void 0);else if(t instanceof Vs)n(t.getName(),Uc.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ns)n(t.getName(),Uc.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof os)n(U(`@keyframes {0}`,t.getName()),Uc.Class,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof is)n(U(`@font-face`),Uc.Class,t,void 0,t.getDeclarations());else if(t instanceof ms){let e=t.getChild(0);e instanceof bs&&n(`@media `+e.getText(),Uc.Module,t,e,t.getDeclarations())}return!0})}findDocumentColors(e,t){let n=[];return t.accept(t=>{let r=dd(t,e);return r&&n.push(r),!0}),n}getColorPresentations(e,t,n,r){let i=[],a=Math.round(n.red*255),o=Math.round(n.green*255),s=Math.round(n.blue*255),c;c=n.alpha===1?`rgb(${a}, ${o}, ${s})`:`rgba(${a}, ${o}, ${s}, ${n.alpha})`,i.push({label:c,textEdit:q.replace(r,c)}),c=n.alpha===1?`#${hd(a)}${hd(o)}${hd(s)}`:`#${hd(a)}${hd(o)}${hd(s)}${hd(Math.round(n.alpha*255))}`,i.push({label:c,textEdit:q.replace(r,c)});let l=Hl(n);c=l.a===1?`hsl(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%)`:`hsla(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%, ${l.a})`,i.push({label:c,textEdit:q.replace(r,c)});let u=Wl(n);return c=u.a===1?`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}%)`:`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}% / ${u.a})`,i.push({label:c,textEdit:q.replace(r,c)}),i}prepareRename(e,t,n){let r=this.getHighlightNode(e,t,n);if(r)return K.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,t,n,r){let i=this.findDocumentHighlights(e,t,r).map(e=>q.replace(e.range,n));return{changes:{[e.uri]:i}}}async resolveModuleReference(e,t,n){if(L(t,`file://`)){let r=gd(e);if(r&&r!==`.`&&r!==`..`){let i=n.resolveReference(`/`,t),a=Ou(t),o=await this.resolvePathToModule(r,a,i);if(o)return ku(o,e.substring(r.length+1))}}}async mapReference(e,t){return e}async resolveReference(e,t,n,r=!1,i=this.defaultSettings){if(e[0]===`~`&&e[1]!==`/`&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),r);let a=await this.mapReference(n.resolveReference(e,t),r);if(this.resolveModuleReferences){if(a&&await this.fileExists(a))return a;let i=await this.mapReference(await this.resolveModuleReference(e,t,n),r);if(i)return i}if(a&&!await this.fileExists(a)){let a=n.resolveReference(`/`,t);if(i&&a){if(e in i)return this.mapReference(ku(a,i[e]),r);let t=e.indexOf(`/`),n=`${e.substring(0,t)}/`;if(n in i){let t=ku(a,i[n].slice(0,-1));return this.mapReference(t=ku(t,e.substring(n.length-1)),r)}}}return a}async resolvePathToModule(e,t,n){let r=ku(t,`node_modules`,e,`package.json`);if(await this.fileExists(r))return Ou(r);if(n&&t.startsWith(n)&&t.length!==n.length)return this.resolvePathToModule(e,Ou(t),n)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let t=await this.fileSystemProvider.stat(e);return t.type!==Ol.Unknown||t.size!==-1}catch{return!1}}};function dd(e,t){let n=Gl(e);return n?{color:n,range:fd(e,t)}:null}function fd(e,t){return K.create(t.positionAt(e.offset),t.positionAt(e.end))}function pd(e,t){let n=t.start.line,r=t.end.line,i=e.start.line,a=e.end.line;return!(n<i||r<i||n>a||r>a||n===i&&t.start.character<e.start.character||r===a&&t.end.character>e.end.character)}function md(e){if(e.type===R.Selector||e instanceof Io&&e.parent&&e.parent instanceof Ko&&e.isCustomProperty)return Vc.Write;if(e.parent)switch(e.parent.type){case R.FunctionDeclaration:case R.MixinDeclaration:case R.Keyframe:case R.VariableDeclaration:case R.FunctionParameter:return Vc.Write}return Vc.Read}function hd(e){let t=e.toString(16);return t.length===2?t:`0`+t}function gd(e){let t=e.indexOf(`/`);if(t===-1)return``;if(e[0]===`@`){let n=e.indexOf(`/`,t+1);return n===-1?e:e.substring(0,n)}return e.substring(0,t)}let _d=qs.Warning,vd=qs.Error,yd=qs.Ignore;var Z=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},bd=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}};let Q={AllVendorPrefixes:new Z(`compatibleVendorPrefixes`,U(`When using a vendor-specific prefix make sure to also include all other vendor-specific properties`),yd),IncludeStandardPropertyWhenUsingVendorPrefix:new Z(`vendorPrefix`,U(`When using a vendor-specific prefix also include the standard property`),_d),DuplicateDeclarations:new Z(`duplicateProperties`,U(`Do not use duplicate style definitions`),yd),EmptyRuleSet:new Z(`emptyRules`,U(`Do not use empty rulesets`),_d),ImportStatemement:new Z(`importStatement`,U(`Import statements do not load in parallel`),yd),BewareOfBoxModelSize:new Z(`boxModel`,U(`Do not use width or height when using padding or border`),yd),UniversalSelector:new Z(`universalSelector`,U(`The universal selector (*) is known to be slow`),yd),ZeroWithUnit:new Z(`zeroUnits`,U(`No unit for zero needed`),yd),RequiredPropertiesForFontFace:new Z(`fontFaceProperties`,U(`@font-face rule must define 'src' and 'font-family' properties`),_d),HexColorLength:new Z(`hexColorLength`,U(`Hex colors must consist of three, four, six or eight hex numbers`),vd),ArgsInColorFunction:new Z(`argumentsInColorFunction`,U(`Invalid number of parameters`),vd),UnknownProperty:new Z(`unknownProperties`,U(`Unknown property.`),_d),UnknownAtRules:new Z(`unknownAtRules`,U(`Unknown at-rule.`),_d),IEStarHack:new Z(`ieHack`,U(`IE hacks are only necessary when supporting IE7 and older`),yd),UnknownVendorSpecificProperty:new Z(`unknownVendorSpecificProperties`,U(`Unknown vendor specific property.`),yd),PropertyIgnoredDueToDisplay:new Z(`propertyIgnoredDueToDisplay`,U(`Property is ignored due to the display.`),_d),AvoidImportant:new Z(`important`,U(`Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.`),yd),AvoidFloat:new Z(`float`,U(`Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.`),yd),AvoidIdSelector:new Z(`idSelector`,U(`Selectors should not contain IDs because these rules are too tightly coupled with the HTML.`),yd)},xd={ValidProperties:new bd(`validProperties`,U("A list of properties that are not validated against the `unknownProperties` rule."),[])};var Sd=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let t=Cd(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function Cd(e){switch(e){case`ignore`:return qs.Ignore;case`warning`:return qs.Warning;case`error`:return qs.Error}return null}var wd=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,r){return this.doCodeActions2(e,t,n,r).map(t=>{let n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return hc.create(t.title,`_css.applyCodeAction`,e.uri,e.version,n&&n.edits)})}doCodeActions2(e,t,n,r){let i=[];if(n.diagnostics)for(let t of n.diagnostics)this.appendFixesForMarker(e,r,t,i);return i}getFixesForUnknownProperty(e,t,n,r){let i=t.getName(),a=[];this.cssDataManager.getProperties().forEach(e=>{let t=Oo(i,e.name);t>=i.length/2&&a.push({property:e.name,score:t})}),a.sort((e,t)=>t.score-e.score||e.property.localeCompare(t.property));let o=3;for(let t of a){let i=t.property,a=U(`Rename to '{0}'`,i),s=q.replace(n.range,i),c=Tc.create(e.uri,e.version),l={documentChanges:[yc.create(c,[s])]},u=Zc.create(a,l,Jc.QuickFix);if(u.diagnostics=[n],r.push(u),--o<=0)return}}appendFixesForMarker(e,t,n,r){if(n.code!==Q.UnknownProperty.id)return;let i=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end),o=No(t,i);for(let t=o.length-1;t>=0;t--){let s=o[t];if(s instanceof Wo){let t=s.getProperty();if(t&&t.offset===i&&t.end===a){this.getFixesForUnknownProperty(e,t,n,r);return}}}}},Td=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function Ed(e,t,n,r){let i=e[t];i.value=n,n&&(du(i.properties,r)||i.properties.push(r))}function Dd(e,t,n){Ed(e,`top`,t,n),Ed(e,`right`,t,n),Ed(e,`bottom`,t,n),Ed(e,`left`,t,n)}function $(e,t,n,r){t===`top`||t===`right`||t===`bottom`||t===`left`?Ed(e,t,n,r):Dd(e,n,r)}function Od(e,t,n){switch(t.length){case 1:$(e,void 0,t[0],n);break;case 2:$(e,`top`,t[0],n),$(e,`bottom`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n);break;case 3:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n),$(e,`bottom`,t[2],n);break;case 4:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`bottom`,t[2],n),$(e,`left`,t[3],n)}}function kd(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function Ad(e,t=!0){return t&&kd(e,[`initial`,`unset`])?!1:parseFloat(e.getText())!==0}function jd(e,t=!0){return e.map(e=>Ad(e,t))}function Md(e,t=!0){return!(kd(e,[`none`,`hidden`])||t&&kd(e,[`initial`,`unset`]))}function Nd(e,t=!0){return e.map(e=>Md(e,t))}function Pd(e){let t=e.getChildren();if(t.length===1){let e=t[0];return Ad(e)&&Md(e)}for(let e of t){let t=e;if(!Ad(t,!1)||!Md(t,!1))return!1}return!0}function Fd(e){let t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of e){let e=n.node.value;if(e!==void 0)switch(n.fullPropertyName){case`box-sizing`:return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case`width`:t.width=n;break;case`height`:t.height=n;break;default:let r=n.fullPropertyName.split(`-`);switch(r[0]){case`border`:switch(r[1]){case void 0:case`top`:case`right`:case`bottom`:case`left`:switch(r[2]){case void 0:$(t,r[1],Pd(e),n);break;case`width`:$(t,r[1],Ad(e,!1),n);break;case`style`:$(t,r[1],Md(e,!0),n)}break;case`width`:Od(t,jd(e.getChildren(),!1),n);break;case`style`:Od(t,Nd(e.getChildren(),!0),n)}break;case`padding`:r.length===1?Od(t,jd(e.getChildren(),!0),n):$(t,r[1],Ad(e,!0),n)}}}return t}var Id=class{constructor(){this.data={}}add(e,t,n){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),n&&r.nodes.push(n)}},Ld=class e{static entries(t,n,r,i,a){let o=new e(n,r,i);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(a)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new Id,this.validProperties={};let r=t.getSetting(xd.ValidProperties);Array.isArray(r)&&r.forEach(e=>{if(typeof e==`string`){let t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}})}isValidPropertyDeclaration(e){let t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){let n=[];for(let r of e)r.fullPropertyName===t&&n.push(r);return n}fetchWithValue(e,t,n){let r=[];for(let i of e)if(i.fullPropertyName===t){let e=i.node.getValue();e&&this.findValueInExpression(e,n)&&r.push(i)}return r}findValueInExpression(e,t){let n=!1;return e.accept(e=>(e.type===R.Identifier&&e.matches(t)&&(n=!0),!n)),n}getEntries(e=qs.Warning|qs.Error){return this.warnings.filter(t=>(t.getLevel()&e)!==0)}addEntry(e,t,n){let r=new Js(e,t,this.settings.getRule(t),n);this.warnings.push(r)}getMissingNames(e,t){let n=e.slice(0);for(let e=0;e<t.length;e++){let r=n.indexOf(t[e]);r!==-1&&(n[r]=null)}let r=null;for(let e=0;e<n.length;e++){let t=n[e];t&&(r=r===null?U(`'{0}'`,t):U(`{0}, '{1}'`,r,t))}return r}visitNode(e){switch(e.type){case R.UnknownAtRule:return this.visitUnknownAtRule(e);case R.Keyframe:return this.visitKeyframe(e);case R.FontFace:return this.visitFontFace(e);case R.Ruleset:return this.visitRuleSet(e);case R.SimpleSelector:return this.visitSimpleSelector(e);case R.Function:return this.visitFunction(e);case R.NumericValue:return this.visitNumericValue(e);case R.Import:return this.visitImport(e);case R.HexColorValue:return this.visitHexColorValue(e);case R.Prio:return this.visitPrio(e);case R.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let t=e.getChild(0);return!t||this.cssDataManager.getAtDirective(t.getText())?!1:(this.addEntry(t,Q.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0)}visitKeyframe(e){let t=e.getKeyword();if(!t)return!1;let n=t.getText();return this.keyframes.add(e.getName(),n,n===`@keyframes`?null:t),!0}validateKeyframes(){let e=[`@-webkit-keyframes`,`@-moz-keyframes`,`@-o-keyframes`];for(let t in this.keyframes.data){let n=this.keyframes.data[t].names,r=n.indexOf(`@keyframes`)===-1;if(!r&&n.length===1)continue;let i=this.getMissingNames(e,n);if(i||r)for(let e of this.keyframes.data[t].nodes){if(r){let t=U(`Always define standard rule '@keyframes' when defining keyframes.`);this.addEntry(e,Q.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(i){let t=U(`Always include all vendor specific rules: Missing: {0}`,i);this.addEntry(e,Q.AllVendorPrefixes,t)}}}return!0}visitSimpleSelector(e){let t=this.documentText.charAt(e.offset);return e.length===1&&t===`*`&&this.addEntry(e,Q.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,Q.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,Q.ImportStatemement),!0}visitRuleSet(t){let n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),Q.EmptyRuleSet);let r=[];for(let e of n.getChildren())e instanceof Wo&&r.push(new Td(e));let i=Fd(r);if(i.width){let e=[];if(i.right.value&&(e=fu(e,i.right.properties)),i.left.value&&(e=fu(e,i.left.properties)),e.length!==0){for(let t of e)this.addEntry(t.node,Q.BewareOfBoxModelSize);this.addEntry(i.width.node,Q.BewareOfBoxModelSize)}}if(i.height){let e=[];if(i.top.value&&(e=fu(e,i.top.properties)),i.bottom.value&&(e=fu(e,i.bottom.properties)),e.length!==0){for(let t of e)this.addEntry(t.node,Q.BewareOfBoxModelSize);this.addEntry(i.height.node,Q.BewareOfBoxModelSize)}}let a=this.fetchWithValue(r,`display`,`inline-block`);if(a.length>0){let e=this.fetch(r,`float`);for(let t=0;t<e.length;t++){let n=e[t].node,r=n.getValue();r&&!r.matches(`none`)&&this.addEntry(n,Q.PropertyIgnoredDueToDisplay,U(`inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'`))}}if(a=this.fetchWithValue(r,`display`,`block`),a.length>0){let e=this.fetch(r,`vertical-align`);for(let t=0;t<e.length;t++)this.addEntry(e[t].node,Q.PropertyIgnoredDueToDisplay,U(`Property is ignored due to the display. With 'display: block', vertical-align should not be used.`))}let o=this.fetch(r,`float`);for(let e=0;e<o.length;e++){let t=o[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,Q.AvoidFloat)}for(let e=0;e<r.length;e++){let t=r[e];if(t.fullPropertyName!==`background`&&!this.validProperties[t.fullPropertyName]){let e=t.node.getValue();if(e&&this.documentText.charAt(e.offset)!==`-`){let e=this.fetch(r,t.fullPropertyName);if(e.length>1)for(let n=0;n<e.length;n++){let r=e[n].node.getValue();r&&this.documentText.charAt(r.offset)!==`-`&&e[n]!==t&&this.addEntry(t.node,Q.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(`:export`)){let n=new Id,i=!1;for(let e of r){let t=e.node;if(this.isCSSDeclaration(t)){let r=e.fullPropertyName,i=r.charAt(0);if(i===`-`){if(r.charAt(1)!==`-`){!this.cssDataManager.isKnownProperty(r)&&!this.validProperties[r]&&this.addEntry(t.getProperty(),Q.UnknownVendorSpecificProperty);let e=t.getNonPrefixedPropertyName();n.add(e,r,t.getProperty())}}else{let e=r;(i===`*`||i===`_`)&&(this.addEntry(t.getProperty(),Q.IEStarHack),r=r.substr(1)),!this.cssDataManager.isKnownProperty(e)&&!this.cssDataManager.isKnownProperty(r)&&(this.validProperties[r]||this.addEntry(t.getProperty(),Q.UnknownProperty,U(`Unknown property: '{0}'`,t.getFullPropertyName()))),n.add(r,r,null)}}else i=!0}if(!i)for(let r in n.data){let i=n.data[r],a=i.names,o=this.cssDataManager.isStandardProperty(r)&&a.indexOf(r)===-1;if(!o&&a.length===1)continue;let s=new Set(o?i.nodes:[]);if(o){let e=this.getContextualVendorSpecificPseudoElements(t);for(let t of i.nodes){let n=t.getName(),i=n.substring(0,n.length-r.length);e.some(e=>e.startsWith(i))&&s.delete(t)}}let c=[];for(let t=0,n=e.prefixes.length;t<n;t++){let n=e.prefixes[t];this.cssDataManager.isStandardProperty(n+r)&&c.push(n+r)}let l=this.getMissingNames(c,a);if(l||o)for(let e of i.nodes){if(o&&s.has(e)){let t=U(`Also define the standard property '{0}' for compatibility`,r);this.addEntry(e,Q.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(l){let t=U(`Always include all vendor specific properties: Missing: {0}`,l);this.addEntry(e,Q.AllVendorPrefixes,t)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function t(e,n){for(let r of n.getChildren()){if(r.type===R.PseudoSelector){let t=r.getChildren()[0]?.getText();t&&e.add(t)}t(e,r)}}function n(e,r){if(r.type===R.Ruleset)for(let n of r.getSelectors().getChildren())t(e,n);return r.parent?n(e,r.parent):void 0}let r=/* @__PURE__ */ new Set;return n(r,e),Array.from(r)}visitPrio(e){return this.addEntry(e,Q.AvoidImportant),!0}visitNumericValue(e){let t=e.findParent(R.Function);if(t&&t.getName()===`calc`)return!0;let n=e.findParent(R.Declaration);if(n&&n.getValue()){let t=e.getValue();if(!t.unit||ru.length.indexOf(t.unit.toLowerCase())===-1)return!0;parseFloat(t.value)===0&&t.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,Q.ZeroWithUnit)}return!0}visitFontFace(e){let t=e.getDeclarations();if(!t)return!1;let n=!1,r=!1,i=!1;for(let e of t.getChildren())if(this.isCSSDeclaration(e)){let t=e.getProperty().getName().toLowerCase();t===`src`&&(n=!0),t===`font-family`&&(r=!0)}else i=!0;return!i&&(!n||!r)&&this.addEntry(e,Q.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof Wo){if(!e.getValue())return!1;let t=e.getProperty();if(!t)return!1;let n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1}visitHexColorValue(e){let t=e.length;return t!==9&&t!==7&&t!==5&&t!==4&&this.addEntry(e,Q.HexColorLength),!1}visitFunction(e){let t=e.getName().toLowerCase(),n=-1,r=0;switch(t){case`rgb(`:case`hsl(`:n=3;break;case`rgba(`:case`hsla(`:n=4}return n!==-1&&(e.getArguments().accept(e=>e instanceof Os?(r+=1,!1):!0),r!==n&&this.addEntry(e,Q.ArgsInColorFunction)),!0}};Ld.prefixes=[`-ms-`,`-moz-`,`-o-`,`-webkit-`];var Rd=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&n.validate===!1)return[];let r=[];r.push.apply(r,Ys.entries(t)),r.push.apply(r,Ld.entries(t,e,new Sd(n&&n.lint),this.cssDataManager));let i=[];for(let e in Q)i.push(Q[e].id);function a(t){let n=K.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),r=e.languageId;return{code:t.getRule().id,source:r,message:t.getMessage(),severity:t.getLevel()===qs.Warning?dc.Warning:dc.Error,range:n}}return r.filter(e=>e.getLevel()!==qs.Ignore).map(a)}};let zd=F.CustomToken,Bd=zd++,Vd=zd++;zd++;let Hd=zd++,Ud=zd++,Wd=zd++,Gd=zd++,Kd=zd++;zd++;var qd=class extends Eo{scanNext(e){if(this.stream.advanceIfChar(36)){let t=[`$`];if(this.ident(t))return this.finishToken(e,Bd,t.join(``));this.stream.goBackTo(e)}return this.stream.advanceIfChars([35,123])?this.finishToken(e,Vd):this.stream.advanceIfChars([61,61])?this.finishToken(e,Hd):this.stream.advanceIfChars([33,61])?this.finishToken(e,Ud):this.stream.advanceIfChar(60)?this.stream.advanceIfChar(61)?this.finishToken(e,Gd):this.finishToken(e,F.Delim):this.stream.advanceIfChar(62)?this.stream.advanceIfChar(61)?this.finishToken(e,Wd):this.finishToken(e,F.Delim):this.stream.advanceIfChars([46,46,46])?this.finishToken(e,Kd):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([47,47])?(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0}}),!0):!1}},Jd=class{constructor(e,t){this.id=e,this.message=t}};let Yd={FromExpected:new Jd(`scss-fromexpected`,U(`'from' expected`)),ThroughOrToExpected:new Jd(`scss-throughexpected`,U(`'through' or 'to' expected`)),InExpected:new Jd(`scss-fromexpected`,U(`'in' expected`))};var Xd=class extends lu{constructor(){super(new qd)}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword(`@import`))return null;let e=this.create(cs);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);for(;this.accept(F.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Bd))return null;let t=this.create(Ps);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(F.Colon))return this.finish(t,G.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,G.VariableValueExpected,[],e);for(;this.peek(F.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(F.Ident,/^(default|global)$/))return this.finish(t,G.UnknownKeyword);this.consumeToken()}return this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Gd)||this.accept(Wd)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Bd))return null;let e=this.create(Is);return this.consumeToken(),e}_parseModuleMember(){let e=this.mark(),t=this.create(Ks);return t.setIdentifier(this._parseIdent([z.Module]))?this.hasWhitespace()||!this.acceptDelim(`.`)||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,G.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(F.Ident)&&!this.peek(Vd)&&!this.peekDelim(`-`))return null;let t=this.create(Io);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(F.Ident,/^--/);let n=!1,r=()=>{let e=this.mark();return this.acceptDelim(`-`)&&(this.hasWhitespace()||this.acceptDelim(`-`),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(F.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Vd)){let e=this.create(Fs);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.ExpressionExpected):this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Hd)||this.peek(Ud)||this.peek(Wd)||this.peek(Gd)||this.peekDelim(`>`)||this.peekDelim(`<`)||this.peekIdent(`and`)||this.peekIdent(`or`)||this.peekDelim(`%`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent(`not`)){let e=this.create(B);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(F.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)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let n=this.create(Wo);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(F.Colon))return this.finish(n,G.ColonExpected,[F.Colon],e||[F.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(F.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,G.PropertyValueExpected);return this.peek(F.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){let e=this.create(as);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword(`@extend`)){let e=this.create(Ls);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,G.SelectorExpected);for(;this.accept(F.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(F.Exclamation)&&!this.acceptIdent(`optional`)?this.finish(e,G.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim(`-`)||this.accept(F.Num)||this.accept(F.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim(`&`)););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim(`%`)){let e=this.createNode(R.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword(`@at-root`)){let e=this.createNode(R.SelectorPlaceholder);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(!this.acceptIdent(`with`)&&!this.acceptIdent(`without`))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.Colon))return this.finish(e,G.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this.finish(e)}return null}_parseElementName(){let e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(F.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword(`@debug`)&&!this.peekKeyword(`@warn`)&&!this.peekKeyword(`@error`))return null;let e=this.createNode(R.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(F.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword(`@if`)?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){let t=this.create(Zo);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,G.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword(`@else`)){if(this.peekIdent(`if`))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(F.CurlyL)){let n=this.create(ts);this._parseBody(n,e),t.setElseClause(n)}}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword(`@for`))return null;let t=this.create(Qo);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent(`from`)?t.addChild(this._parseBinaryExpr())?!this.acceptIdent(`to`)&&!this.acceptIdent(`through`)?this.finish(t,Yd.ThroughOrToExpected,[F.CurlyR]):t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.FromExpected,[F.CurlyR]):this.finish(t,G.VariableNameExpected,[F.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword(`@each`))return null;let t=this.create($o);this.consumeToken();let n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);for(;this.accept(F.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);return this.finish(n),this.acceptIdent(`in`)?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.InExpected,[F.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword(`@while`))return null;let t=this.create(es);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword(`@function`))return null;let e=this.create(ns);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Function])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}return this.accept(F.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword(`@return`))return null;let e=this.createNode(R.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,G.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword(`@mixin`))return null;let e=this.create(Vs);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Mixin])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(this.accept(F.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){let e=this.create(Yo);return e.setIdentifier(this._parseVariable())?(this.accept(Kd),this.accept(F.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword(`@content`))return null;let e=this.create(Rs);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword(`@include`))return null;let e=this.create(Bs);this.consumeToken();let t=this._parseIdent([z.Mixin]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(`.`)&&!this.hasWhitespace()){let n=this._parseIdent([z.Mixin]);if(!n)return this.finish(e,G.IdentifierExpected,[F.CurlyR]);let r=this.create(Ks);t.referenceTypes=[z.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return(this.peekIdent(`using`)||this.peek(F.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){let e=this.create(zs);if(this.acceptIdent(`using`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyL])}return this.peek(F.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){let e=this.create(Xo),t=this.mark(),n=this._parseVariable();if(n){if(this.accept(F.Colon))e.setIdentifier(n);else{if(this.accept(Kd))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}}return e.setValue(this._parseExpr(!0))?(this.accept(Kd),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(F.ParenthesisR)){this.restoreAtMark(e);let t=this.create(B);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(F.ParenthesisL))return null;let e=this.create(B);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(F.Comma);return this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseListElement(){let e=this.create(Us),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(F.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,G.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword(`@use`))return null;let e=this.create(ls);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(!this.peek(F.SemiColon)&&!this.peek(F.EOF)){if(!this.peekRegExp(F.Ident,/as|with/))return this.finish(e,G.UnknownKeyword);if(this.acceptIdent(`as`)&&!e.setIdentifier(this._parseIdent([z.Module]))&&!this.acceptDelim(`*`))return this.finish(e,G.IdentifierOrWildcardExpected);if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}}return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){let e=this.create(us);return e.setIdentifier(this._parseVariable())?!this.accept(F.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.accept(F.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent(`default`))?this.finish(e,G.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword(`@forward`))return null;let e=this.create(ds);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(this.acceptIdent(`as`)){let t=this._parseIdent([z.Forward]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim(`*`))return this.finish(e,G.WildcardExpected)}if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}else if((this.peekIdent(`hide`)||this.peekIdent(`show`))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,G.IdentifierOrVariableExpected);return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){let e=this.create(fs);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(F.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}};let Zd=U(`Sass documentation`);var Qd=class e extends Vu{constructor(t,n){super(`$`,t,n),$d(e.scssModuleLoaders),$d(e.scssModuleBuiltIns)}isImportPathParent(e){return e===R.Forward||e===R.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){let r=t.getParent().type;if(r===R.Forward||r===R.Use)for(let r of e.scssModuleBuiltIns){let e={label:r.label,documentation:r.documentation,textEdit:q.replace(this.getCompletionRange(t),`'${r.label}'`),kind:J.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,r)=>`\\`+r+": ${"+t+++`:`+(e.variableDefaults[r]||``)+`}`}createFunctionProposals(e,t,n,r){for(let i of e){let e=i.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),a={label:i.func.substr(0,i.func.indexOf(`(`)),detail:i.func,documentation:i.desc,textEdit:q.replace(this.getCompletionRange(t),e),insertTextFormat:Ac.Snippet,kind:J.Function};n&&(a.sortText=`z`),r.items.push(a)}return r}getCompletionsForSelector(t,n,r){return this.createFunctionProposals(e.selectorFuncs,null,!0,r),super.getCompletionsForSelector(t,n,r)}getTermProposals(t,n,r){let i=e.builtInFuncs;return t&&(i=i.filter(e=>!e.type||!t.restrictions||t.restrictions.indexOf(e.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(e.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Rule);for(let e of r){let r={label:e.name,textEdit:q.replace(this.getCompletionRange(t),e.name),kind:J.Function};n.items.push(r)}return n}getCompletionForAtDirectives(t){return t.items.push(...e.scssAtDirectives),t}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(t){return t.items.push(...e.scssModuleLoaders),t}};Qd.variableDefaults={$red:`1`,$green:`2`,$blue:`3`,$alpha:`1.0`,$color:`#000000`,$weight:`0.5`,$hue:`0`,$saturation:`0%`,$lightness:`0%`,$degrees:`0`,$amount:`0`,$string:`""`,$substring:`"s"`,$number:`0`,$limit:`1`},Qd.colorProposals=[{func:`red($color)`,desc:U(`Gets the red component of a color.`)},{func:`green($color)`,desc:U(`Gets the green component of a color.`)},{func:`blue($color)`,desc:U(`Gets the blue component of a color.`)},{func:`mix($color, $color, [$weight])`,desc:U(`Mixes two colors together.`)},{func:`hue($color)`,desc:U(`Gets the hue component of a color.`)},{func:`saturation($color)`,desc:U(`Gets the saturation component of a color.`)},{func:`lightness($color)`,desc:U(`Gets the lightness component of a color.`)},{func:`adjust-hue($color, $degrees)`,desc:U(`Changes the hue of a color.`)},{func:`lighten($color, $amount)`,desc:U(`Makes a color lighter.`)},{func:`darken($color, $amount)`,desc:U(`Makes a color darker.`)},{func:`saturate($color, $amount)`,desc:U(`Makes a color more saturated.`)},{func:`desaturate($color, $amount)`,desc:U(`Makes a color less saturated.`)},{func:`grayscale($color)`,desc:U(`Converts a color to grayscale.`)},{func:`complement($color)`,desc:U(`Returns the complement of a color.`)},{func:`invert($color)`,desc:U(`Returns the inverse of a color.`)},{func:`alpha($color)`,desc:U(`Gets the opacity component of a color.`)},{func:`opacity($color)`,desc:`Gets the alpha component (opacity) of a color.`},{func:`rgba($color, $alpha)`,desc:U(`Changes the alpha component for a color.`)},{func:`opacify($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`fade-in($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`transparentize($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`fade-out($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Increases or decreases one or more components of a color.`)},{func:`scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])`,desc:U(`Fluidly scales one or more properties of a color.`)},{func:`change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Changes one or more properties of a color.`)},{func:`ie-hex-str($color)`,desc:U(`Converts a color into the format understood by IE filters.`)}],Qd.selectorFuncs=[{func:`selector-nest($selectors…)`,desc:U(`Nests selector beneath one another like they would be nested in the stylesheet.`)},{func:`selector-append($selectors…)`,desc:U(`Appends selectors to one another without spaces in between.`)},{func:`selector-extend($selector, $extendee, $extender)`,desc:U(`Extends $extendee with $extender within $selector.`)},{func:`selector-replace($selector, $original, $replacement)`,desc:U(`Replaces $original with $replacement within $selector.`)},{func:`selector-unify($selector1, $selector2)`,desc:U(`Unifies two selectors to produce a selector that matches elements matched by both.`)},{func:`is-superselector($super, $sub)`,desc:U(`Returns whether $super matches all the elements $sub does, and possibly more.`)},{func:`simple-selectors($selector)`,desc:U(`Returns the simple selectors that comprise a compound selector.`)},{func:`selector-parse($selector)`,desc:U(`Parses a selector into the format returned by &.`)}],Qd.builtInFuncs=[{func:`unquote($string)`,desc:U(`Removes quotes from a string.`)},{func:`quote($string)`,desc:U(`Adds quotes to a string.`)},{func:`str-length($string)`,desc:U(`Returns the number of characters in a string.`)},{func:`str-insert($string, $insert, $index)`,desc:U(`Inserts $insert into $string at $index.`)},{func:`str-index($string, $substring)`,desc:U(`Returns the index of the first occurance of $substring in $string.`)},{func:`str-slice($string, $start-at, [$end-at])`,desc:U(`Extracts a substring from $string.`)},{func:`to-upper-case($string)`,desc:U(`Converts a string to upper case.`)},{func:`to-lower-case($string)`,desc:U(`Converts a string to lower case.`)},{func:`percentage($number)`,desc:U(`Converts a unitless number to a percentage.`),type:`percentage`},{func:`round($number)`,desc:U(`Rounds a number to the nearest whole number.`)},{func:`ceil($number)`,desc:U(`Rounds a number up to the next whole number.`)},{func:`floor($number)`,desc:U(`Rounds a number down to the previous whole number.`)},{func:`abs($number)`,desc:U(`Returns the absolute value of a number.`)},{func:`min($numbers)`,desc:U(`Finds the minimum of several numbers.`)},{func:`max($numbers)`,desc:U(`Finds the maximum of several numbers.`)},{func:`random([$limit])`,desc:U(`Returns a random number.`)},{func:`length($list)`,desc:U(`Returns the length of a list.`)},{func:`nth($list, $n)`,desc:U(`Returns a specific item in a list.`)},{func:`set-nth($list, $n, $value)`,desc:U(`Replaces the nth item in a list.`)},{func:`join($list1, $list2, [$separator])`,desc:U(`Joins together two lists into one.`)},{func:`append($list1, $val, [$separator])`,desc:U(`Appends a single value onto the end of a list.`)},{func:`zip($lists)`,desc:U(`Combines several lists into a single multidimensional list.`)},{func:`index($list, $value)`,desc:U(`Returns the position of a value within a list.`)},{func:`list-separator(#list)`,desc:U(`Returns the separator of a list.`)},{func:`map-get($map, $key)`,desc:U(`Returns the value in a map associated with a given key.`)},{func:`map-merge($map1, $map2)`,desc:U(`Merges two maps together into a new map.`)},{func:`map-remove($map, $keys)`,desc:U(`Returns a new map with keys removed.`)},{func:`map-keys($map)`,desc:U(`Returns a list of all keys in a map.`)},{func:`map-values($map)`,desc:U(`Returns a list of all values in a map.`)},{func:`map-has-key($map, $key)`,desc:U(`Returns whether a map has a value associated with a given key.`)},{func:`keywords($args)`,desc:U(`Returns the keywords passed to a function that takes variable arguments.`)},{func:`feature-exists($feature)`,desc:U(`Returns whether a feature exists in the current Sass runtime.`)},{func:`variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the current scope.`)},{func:`global-variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the global scope.`)},{func:`function-exists($name)`,desc:U(`Returns whether a function with the given name exists.`)},{func:`mixin-exists($name)`,desc:U(`Returns whether a mixin with the given name exists.`)},{func:`inspect($value)`,desc:U(`Returns the string representation of a value as it would be represented in Sass.`)},{func:`type-of($value)`,desc:U(`Returns the type of a value.`)},{func:`unit($number)`,desc:U(`Returns the unit(s) associated with a number.`)},{func:`unitless($number)`,desc:U(`Returns whether a number has units.`)},{func:`comparable($number1, $number2)`,desc:U(`Returns whether two numbers can be added, subtracted, or compared.`)},{func:`call($name, $args…)`,desc:U(`Dynamically calls a Sass function.`)}],Qd.scssAtDirectives=[{label:`@extend`,documentation:U(`Inherits the styles of another selector.`),kind:J.Keyword},{label:`@at-root`,documentation:U(`Causes one or more rules to be emitted at the root of the document.`),kind:J.Keyword},{label:`@debug`,documentation:U(`Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files.`),kind:J.Keyword},{label:`@warn`,documentation:U("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:J.Keyword},{label:`@error`,documentation:U(`Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions.`),kind:J.Keyword},{label:`@if`,documentation:U("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
45
|
+
`),[{language:`html`,value:n}]}doPrint(e,t){for(let n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){let n=Array(e+1).join(` `);this.result.push(n+t)}doPrintElement(e,t){let n=e.findAttribute(`name`);if(e instanceof Zu||n===`…`){this.writeLine(t,n);return}let r=[`<`];if(n?r.push(n):r.push(`element`),e.attributes){for(let t of e.attributes)if(t.name!==`name`){r.push(` `),r.push(t.name);let e=t.value;e&&(r.push(`=`),r.push($u.ensure(e,this.quote)))}}r.push(`>`),this.writeLine(t,r.join(``))}},$u;(function(e){function t(e,t){return t+n(e)+t}e.ensure=t;function n(e){let t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.remove=n})($u||={});var ed=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function td(e,t){let n=new Yu;for(let r of e.getChildren())switch(r.type){case R.SelectorCombinator:if(t){let e=r.getText().split(`&`);if(e.length===1){n.addAttr(`name`,e[0]);break}n=t.cloneWithParent(),e[0]&&n.findRoot().prepend(e[0]);for(let r=1;r<e.length;r++){if(r>1){let e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[r])}}break;case R.SelectorPlaceholder:if(r.matches(`@at-root`))return n;case R.ElementNameSelector:let e=r.getText();n.addAttr(`name`,e===`*`?`element`:nd(e));break;case R.ClassSelector:n.addAttr(`class`,nd(r.getText().substring(1)));break;case R.IdentifierSelector:n.addAttr(`id`,nd(r.getText().substring(1)));break;case R.MixinDeclaration:n.addAttr(`class`,r.getName());break;case R.PseudoSelector:n.addAttr(nd(r.getText()),``);break;case R.AttributeSelector:let i=r,a=i.getIdentifier();if(a){let e=i.getValue(),t=i.getOperator(),r;if(e&&t)switch(nd(t.getText())){case`|=`:r=`${$u.remove(nd(e.getText()))}-\u2026`;break;case`^=`:r=`${$u.remove(nd(e.getText()))}\u2026`;break;case`$=`:r=`\u2026${$u.remove(nd(e.getText()))}`;break;case`~=`:r=` \u2026 ${$u.remove(nd(e.getText()))} \u2026 `;break;case`*=`:r=`\u2026${$u.remove(nd(e.getText()))}\u2026`;break;default:r=$u.remove(nd(e.getText()))}n.addAttr(nd(a.getText()),r)}}return n}function nd(e){let t=new Eo;t.setSource(e);let n=t.scanUnquotedString();return n?n.text:e}var rd=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){let n=od(e);if(n){let r=new Qu(`"`).print(n,t);return r.push(this.selectorToSpecificityMarkedString(e)),r}return[]}simpleSelectorToMarkedString(e){let t=td(e),n=new Qu(`"`).print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){let t=e.match(/^::?([\w-]+)/);return t?!!this.cssDataManager.getPseudoElement(`::`+t[1]):!1}selectorToSpecificityMarkedString(e){let t=e=>{let t=new ed,r=new ed;for(let t of e)for(let e of t.getChildren()){let t=n(e);t.id>r.id?r=t:t.id<r.id||(t.attr>r.attr?r=t:t.attr<r.attr||t.tag>r.tag&&(r=t))}return t.id+=r.id,t.attr+=r.attr,t.tag+=r.tag,t},n=e=>{let r=new ed;elementLoop:for(let i of e.getChildren()){switch(i.type){case R.IdentifierSelector:r.id++;break;case R.ClassSelector:case R.AttributeSelector:r.attr++;break;case R.ElementNameSelector:if(i.matches(`*`))break;r.tag++;break;case R.PseudoSelector:let e=i.getText(),n=i.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){r.tag++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}r.tag++;continue elementLoop}if(e.match(/^:where/i))continue elementLoop;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){r.attr++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(r.attr++,n.length===3&&n[1].type===23){let e=t(n[2].getChildren());r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}let e=new lu,i=n[1].getText();e.scanner.setSource(i);let a=e.scanner.scan(),o=e.scanner.scan();if(a.text===`n`||a.text===`-n`&&o.text===`of`){let n=[],a=i.slice(o.offset+2).split(`,`);for(let t of a){let r=e.internalParse(t,e._parseSelector);r&&n.push(r)}let s=t(n);r.id+=s.id,r.attr+=s.attr,r.tag+=s.tag;continue elementLoop}continue elementLoop}r.attr++;continue elementLoop}if(i.getChildren().length>0){let e=n(i);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag}}return r},r=n(e);return`[${U(`Selector Specificity`)}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`}},id=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Xu)&&e.getChildren().some(e=>e.hasChildren()&&e.getChild(0).type===R.SelectorCombinator)){let e=this.element.findRoot();e.parent instanceof Xu&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(let n of e.getChildren()){if(n instanceof Vo){if(this.prev instanceof Vo){let e=new Zu(`…`);this.element.addChild(e),this.element=e}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 Zu(`⋮`));let e=td(n,t),r=e.findRoot();this.element.addChild(r),this.element=e}(n instanceof Vo||n.type===R.SelectorCombinatorParent||n.type===R.SelectorCombinatorShadowPiercingDescendant||n.type===R.SelectorCombinatorSibling||n.type===R.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function ad(e){switch(e.type){case R.MixinDeclaration:case R.Stylesheet:return!0}return!1}function od(e){if(e.matches(`@at-root`))return null;let t=new Xu,n=[],r=e.getParent();if(r instanceof zo){let e=r.getParent();for(;e&&!ad(e);){if(e instanceof zo){if(e.getSelectors().matches(`@at-root`))break;n.push(e)}e=e.getParent()}}let i=new id(t);for(let e=n.length-1;e>=0;e--){let t=n[e].getSelectors().getChild(0);t&&i.processSelector(t)}return i.processSelector(e),t}var sd=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new rd(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,r=this.defaultSettings){function i(t){return K.create(e.positionAt(t.offset),e.positionAt(t.end))}let a=No(n,e.offsetAt(t)),o=null,s;for(let e=0;e<a.length;e++){let t=a[e];if(t instanceof ms&&(s={isMedia:!0,text:t.getText().match(/@media[^\{]+/g)?.[0]}),t instanceof Bo){o={contents:this.selectorPrinting.selectorToMarkedString(t,s),range:i(t)};break}if(t instanceof Vo){L(t.getText(),`@`)||(o={contents:this.selectorPrinting.simpleSelectorToMarkedString(t),range:i(t)});break}if(t instanceof Wo){let e=t.getFullPropertyName(),n=this.cssDataManager.getProperty(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}}else if(t instanceof Hs){let e=t.getText(),n=this.cssDataManager.getAtDirective(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}}else if(t instanceof B&&t.type===R.PseudoSelector){let e=t.getText(),n=e.slice(0,2)===`::`?this.cssDataManager.getPseudoElement(e):this.cssDataManager.getPseudoClass(e);if(n){let e=bu(n,this.doesSupportMarkdown(),r);o=e?{contents:e,range:i(t)}:null}}}return o&&(o.contents=this.convertContents(o.contents)),o}convertContents(e){return this.doesSupportMarkdown()||typeof e==`string`?e:`kind`in e?{kind:`plaintext`,value:e.value}:Array.isArray(e)?e.map(e=>typeof e==`string`?e:e.value):e.value}doesSupportMarkdown(){if(!cu(this.supportsMarkdown)){if(!cu(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(Oc.Markdown)!==-1}return this.supportsMarkdown}};let cd=/^\w+:\/\//,ld=/^data:/;var ud=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){let r=new _u(n),i=Mo(n,e.offsetAt(t));if(!i)return null;let a=r.findSymbolFromNode(i);return a?{uri:e.uri,range:fd(a.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map(t=>({uri:e.uri,range:t.range}))}getHighlightNode(e,t,n){let r=Mo(n,e.offsetAt(t));if(r&&r.type!==R.Stylesheet&&r.type!==R.Declarations)return r.type===R.Identifier&&r.parent&&r.parent.type===R.ClassSelector&&(r=r.parent),r}findDocumentHighlights(e,t,n){let r=[],i=this.getHighlightNode(e,t,n);if(!i)return r;let a=new _u(n),o=a.findSymbolFromNode(i),s=i.getText();return n.accept(t=>{if(o){if(a.matchesSymbol(t,o))return r.push({kind:md(t),range:fd(t,e)}),!1}else i&&i.type===t.type&&t.matches(s)&&r.push({kind:md(t),range:fd(t,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===R.Import}findDocumentLinks(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(a&&!ld.test(a)){if(cd.test(a))i.push(r);else{let t=n.resolveReference(a,e.uri);t&&(r.target=t),i.push(r)}}}return i}async findDocumentLinks2(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(a&&!ld.test(a)){if(cd.test(a))i.push(r);else{let o=await this.resolveReference(a,e.uri,n,t.isRawLink);o!==void 0&&(r.target=o,i.push(r))}}}return i}findUnresolvedLinks(e,t){let n=[],r=t=>{let r=t.getText(),i=fd(t,e);if(i.start.line===i.end.line&&i.start.character===i.end.character)return;(L(r,`'`)||L(r,`"`))&&(r=r.slice(1,-1));let a=t.parent?this.isRawStringDocumentLinkNode(t.parent):!1;n.push({link:{target:r,range:i},isRawLink:a})};return t.accept(e=>{if(e.type===R.URILiteral){let t=e.getChild(0);return t&&r(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){let t=e.getText();return(L(t,`'`)||L(t,`"`))&&r(e),!1}return!0}),n}findSymbolInformations(e,t){let n=[];return this.collectDocumentSymbols(e,t,(t,r,i)=>{let a=i instanceof B?fd(i,e):i,o={name:t||U(`<undefined>`),kind:r,location:rc.create(e.uri,a)};n.push(o)}),n}findDocumentSymbols(e,t){let n=[],r=[];return this.collectDocumentSymbols(e,t,(t,i,a,o,s)=>{let c=a instanceof B?fd(a,e):a,l=o instanceof B?fd(o,e):o;l&&pd(c,l)||(l=K.create(c.start,c.start));let u={name:t||U(`<undefined>`),kind:i,range:c,selectionRange:l},d=r.pop();for(;d&&!pd(d[1],c);)d=r.pop();if(d){let e=d[0];e.children||=[],e.children.push(u),r.push(d)}else n.push(u);s&&r.push([u,fd(s,e)])}),n}collectDocumentSymbols(e,t,n){t.accept(t=>{if(t instanceof zo){for(let r of t.getSelectors().getChildren())if(r instanceof Bo){let i=K.create(e.positionAt(r.offset),e.positionAt(t.end));n(r.getText(),Uc.Class,i,r,t.getDeclarations())}}else if(t instanceof Ps)n(t.getName(),Uc.Variable,t,t.getVariable(),void 0);else if(t instanceof Vs)n(t.getName(),Uc.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ns)n(t.getName(),Uc.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof os)n(U(`@keyframes {0}`,t.getName()),Uc.Class,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof is)n(U(`@font-face`),Uc.Class,t,void 0,t.getDeclarations());else if(t instanceof ms){let e=t.getChild(0);e instanceof bs&&n(`@media `+e.getText(),Uc.Module,t,e,t.getDeclarations())}return!0})}findDocumentColors(e,t){let n=[];return t.accept(t=>{let r=dd(t,e);return r&&n.push(r),!0}),n}getColorPresentations(e,t,n,r){let i=[],a=Math.round(n.red*255),o=Math.round(n.green*255),s=Math.round(n.blue*255),c;c=n.alpha===1?`rgb(${a}, ${o}, ${s})`:`rgba(${a}, ${o}, ${s}, ${n.alpha})`,i.push({label:c,textEdit:q.replace(r,c)}),c=n.alpha===1?`#${hd(a)}${hd(o)}${hd(s)}`:`#${hd(a)}${hd(o)}${hd(s)}${hd(Math.round(n.alpha*255))}`,i.push({label:c,textEdit:q.replace(r,c)});let l=Hl(n);c=l.a===1?`hsl(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%)`:`hsla(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%, ${l.a})`,i.push({label:c,textEdit:q.replace(r,c)});let u=Wl(n);return c=u.a===1?`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}%)`:`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}% / ${u.a})`,i.push({label:c,textEdit:q.replace(r,c)}),i}prepareRename(e,t,n){let r=this.getHighlightNode(e,t,n);if(r)return K.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,t,n,r){let i=this.findDocumentHighlights(e,t,r).map(e=>q.replace(e.range,n));return{changes:{[e.uri]:i}}}async resolveModuleReference(e,t,n){if(L(t,`file://`)){let r=gd(e);if(r&&r!==`.`&&r!==`..`){let i=n.resolveReference(`/`,t),a=Ou(t),o=await this.resolvePathToModule(r,a,i);if(o)return ku(o,e.substring(r.length+1))}}}async mapReference(e,t){return e}async resolveReference(e,t,n,r=!1,i=this.defaultSettings){if(e[0]===`~`&&e[1]!==`/`&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),r);let a=await this.mapReference(n.resolveReference(e,t),r);if(this.resolveModuleReferences){if(a&&await this.fileExists(a))return a;let i=await this.mapReference(await this.resolveModuleReference(e,t,n),r);if(i)return i}if(a&&!await this.fileExists(a)){let a=n.resolveReference(`/`,t);if(i&&a){if(e in i)return this.mapReference(ku(a,i[e]),r);let t=e.indexOf(`/`),n=`${e.substring(0,t)}/`;if(n in i){let t=ku(a,i[n].slice(0,-1));return this.mapReference(t=ku(t,e.substring(n.length-1)),r)}}}return a}async resolvePathToModule(e,t,n){let r=ku(t,`node_modules`,e,`package.json`);if(await this.fileExists(r))return Ou(r);if(n&&t.startsWith(n)&&t.length!==n.length)return this.resolvePathToModule(e,Ou(t),n)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let t=await this.fileSystemProvider.stat(e);return t.type!==Ol.Unknown||t.size!==-1}catch{return!1}}};function dd(e,t){let n=Gl(e);return n?{color:n,range:fd(e,t)}:null}function fd(e,t){return K.create(t.positionAt(e.offset),t.positionAt(e.end))}function pd(e,t){let n=t.start.line,r=t.end.line,i=e.start.line,a=e.end.line;return!(n<i||r<i||n>a||r>a||n===i&&t.start.character<e.start.character||r===a&&t.end.character>e.end.character)}function md(e){if(e.type===R.Selector||e instanceof Io&&e.parent&&e.parent instanceof Ko&&e.isCustomProperty)return Vc.Write;if(e.parent)switch(e.parent.type){case R.FunctionDeclaration:case R.MixinDeclaration:case R.Keyframe:case R.VariableDeclaration:case R.FunctionParameter:return Vc.Write}return Vc.Read}function hd(e){let t=e.toString(16);return t.length===2?t:`0`+t}function gd(e){let t=e.indexOf(`/`);if(t===-1)return``;if(e[0]===`@`){let n=e.indexOf(`/`,t+1);return n===-1?e:e.substring(0,n)}return e.substring(0,t)}let _d=qs.Warning,vd=qs.Error,yd=qs.Ignore;var Z=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},bd=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}};let Q={AllVendorPrefixes:new Z(`compatibleVendorPrefixes`,U(`When using a vendor-specific prefix make sure to also include all other vendor-specific properties`),yd),IncludeStandardPropertyWhenUsingVendorPrefix:new Z(`vendorPrefix`,U(`When using a vendor-specific prefix also include the standard property`),_d),DuplicateDeclarations:new Z(`duplicateProperties`,U(`Do not use duplicate style definitions`),yd),EmptyRuleSet:new Z(`emptyRules`,U(`Do not use empty rulesets`),_d),ImportStatemement:new Z(`importStatement`,U(`Import statements do not load in parallel`),yd),BewareOfBoxModelSize:new Z(`boxModel`,U(`Do not use width or height when using padding or border`),yd),UniversalSelector:new Z(`universalSelector`,U(`The universal selector (*) is known to be slow`),yd),ZeroWithUnit:new Z(`zeroUnits`,U(`No unit for zero needed`),yd),RequiredPropertiesForFontFace:new Z(`fontFaceProperties`,U(`@font-face rule must define 'src' and 'font-family' properties`),_d),HexColorLength:new Z(`hexColorLength`,U(`Hex colors must consist of three, four, six or eight hex numbers`),vd),ArgsInColorFunction:new Z(`argumentsInColorFunction`,U(`Invalid number of parameters`),vd),UnknownProperty:new Z(`unknownProperties`,U(`Unknown property.`),_d),UnknownAtRules:new Z(`unknownAtRules`,U(`Unknown at-rule.`),_d),IEStarHack:new Z(`ieHack`,U(`IE hacks are only necessary when supporting IE7 and older`),yd),UnknownVendorSpecificProperty:new Z(`unknownVendorSpecificProperties`,U(`Unknown vendor specific property.`),yd),PropertyIgnoredDueToDisplay:new Z(`propertyIgnoredDueToDisplay`,U(`Property is ignored due to the display.`),_d),AvoidImportant:new Z(`important`,U(`Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.`),yd),AvoidFloat:new Z(`float`,U(`Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.`),yd),AvoidIdSelector:new Z(`idSelector`,U(`Selectors should not contain IDs because these rules are too tightly coupled with the HTML.`),yd)},xd={ValidProperties:new bd(`validProperties`,U("A list of properties that are not validated against the `unknownProperties` rule."),[])};var Sd=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let t=Cd(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function Cd(e){switch(e){case`ignore`:return qs.Ignore;case`warning`:return qs.Warning;case`error`:return qs.Error}return null}var wd=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,r){return this.doCodeActions2(e,t,n,r).map(t=>{let n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return hc.create(t.title,`_css.applyCodeAction`,e.uri,e.version,n&&n.edits)})}doCodeActions2(e,t,n,r){let i=[];if(n.diagnostics)for(let t of n.diagnostics)this.appendFixesForMarker(e,r,t,i);return i}getFixesForUnknownProperty(e,t,n,r){let i=t.getName(),a=[];this.cssDataManager.getProperties().forEach(e=>{let t=Oo(i,e.name);t>=i.length/2&&a.push({property:e.name,score:t})}),a.sort((e,t)=>t.score-e.score||e.property.localeCompare(t.property));let o=3;for(let t of a){let i=t.property,a=U(`Rename to '{0}'`,i),s=q.replace(n.range,i),c=Tc.create(e.uri,e.version),l={documentChanges:[yc.create(c,[s])]},u=Zc.create(a,l,Jc.QuickFix);if(u.diagnostics=[n],r.push(u),--o<=0)return}}appendFixesForMarker(e,t,n,r){if(n.code!==Q.UnknownProperty.id)return;let i=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end),o=No(t,i);for(let t=o.length-1;t>=0;t--){let s=o[t];if(s instanceof Wo){let t=s.getProperty();if(t&&t.offset===i&&t.end===a){this.getFixesForUnknownProperty(e,t,n,r);return}}}}},Td=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function Ed(e,t,n,r){let i=e[t];i.value=n,n&&(du(i.properties,r)||i.properties.push(r))}function Dd(e,t,n){Ed(e,`top`,t,n),Ed(e,`right`,t,n),Ed(e,`bottom`,t,n),Ed(e,`left`,t,n)}function $(e,t,n,r){t===`top`||t===`right`||t===`bottom`||t===`left`?Ed(e,t,n,r):Dd(e,n,r)}function Od(e,t,n){switch(t.length){case 1:$(e,void 0,t[0],n);break;case 2:$(e,`top`,t[0],n),$(e,`bottom`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n);break;case 3:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n),$(e,`bottom`,t[2],n);break;case 4:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`bottom`,t[2],n),$(e,`left`,t[3],n)}}function kd(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function Ad(e,t=!0){return t&&kd(e,[`initial`,`unset`])?!1:parseFloat(e.getText())!==0}function jd(e,t=!0){return e.map(e=>Ad(e,t))}function Md(e,t=!0){return!(kd(e,[`none`,`hidden`])||t&&kd(e,[`initial`,`unset`]))}function Nd(e,t=!0){return e.map(e=>Md(e,t))}function Pd(e){let t=e.getChildren();if(t.length===1){let e=t[0];return Ad(e)&&Md(e)}for(let e of t){let t=e;if(!Ad(t,!1)||!Md(t,!1))return!1}return!0}function Fd(e){let t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of e){let e=n.node.value;if(e!==void 0)switch(n.fullPropertyName){case`box-sizing`:return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case`width`:t.width=n;break;case`height`:t.height=n;break;default:let r=n.fullPropertyName.split(`-`);switch(r[0]){case`border`:switch(r[1]){case void 0:case`top`:case`right`:case`bottom`:case`left`:switch(r[2]){case void 0:$(t,r[1],Pd(e),n);break;case`width`:$(t,r[1],Ad(e,!1),n);break;case`style`:$(t,r[1],Md(e,!0),n)}break;case`width`:Od(t,jd(e.getChildren(),!1),n);break;case`style`:Od(t,Nd(e.getChildren(),!0),n)}break;case`padding`:r.length===1?Od(t,jd(e.getChildren(),!0),n):$(t,r[1],Ad(e,!0),n)}}}return t}var Id=class{constructor(){this.data={}}add(e,t,n){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),n&&r.nodes.push(n)}},Ld=class e{static entries(t,n,r,i,a){let o=new e(n,r,i);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(a)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new Id,this.validProperties={};let r=t.getSetting(xd.ValidProperties);Array.isArray(r)&&r.forEach(e=>{if(typeof e==`string`){let t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}})}isValidPropertyDeclaration(e){let t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){let n=[];for(let r of e)r.fullPropertyName===t&&n.push(r);return n}fetchWithValue(e,t,n){let r=[];for(let i of e)if(i.fullPropertyName===t){let e=i.node.getValue();e&&this.findValueInExpression(e,n)&&r.push(i)}return r}findValueInExpression(e,t){let n=!1;return e.accept(e=>(e.type===R.Identifier&&e.matches(t)&&(n=!0),!n)),n}getEntries(e=qs.Warning|qs.Error){return this.warnings.filter(t=>(t.getLevel()&e)!==0)}addEntry(e,t,n){let r=new Js(e,t,this.settings.getRule(t),n);this.warnings.push(r)}getMissingNames(e,t){let n=e.slice(0);for(let e=0;e<t.length;e++){let r=n.indexOf(t[e]);r!==-1&&(n[r]=null)}let r=null;for(let e=0;e<n.length;e++){let t=n[e];t&&(r=r===null?U(`'{0}'`,t):U(`{0}, '{1}'`,r,t))}return r}visitNode(e){switch(e.type){case R.UnknownAtRule:return this.visitUnknownAtRule(e);case R.Keyframe:return this.visitKeyframe(e);case R.FontFace:return this.visitFontFace(e);case R.Ruleset:return this.visitRuleSet(e);case R.SimpleSelector:return this.visitSimpleSelector(e);case R.Function:return this.visitFunction(e);case R.NumericValue:return this.visitNumericValue(e);case R.Import:return this.visitImport(e);case R.HexColorValue:return this.visitHexColorValue(e);case R.Prio:return this.visitPrio(e);case R.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let t=e.getChild(0);return!t||this.cssDataManager.getAtDirective(t.getText())?!1:(this.addEntry(t,Q.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0)}visitKeyframe(e){let t=e.getKeyword();if(!t)return!1;let n=t.getText();return this.keyframes.add(e.getName(),n,n===`@keyframes`?null:t),!0}validateKeyframes(){let e=[`@-webkit-keyframes`,`@-moz-keyframes`,`@-o-keyframes`];for(let t in this.keyframes.data){let n=this.keyframes.data[t].names,r=n.indexOf(`@keyframes`)===-1;if(!r&&n.length===1)continue;let i=this.getMissingNames(e,n);if(i||r)for(let e of this.keyframes.data[t].nodes){if(r){let t=U(`Always define standard rule '@keyframes' when defining keyframes.`);this.addEntry(e,Q.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(i){let t=U(`Always include all vendor specific rules: Missing: {0}`,i);this.addEntry(e,Q.AllVendorPrefixes,t)}}}return!0}visitSimpleSelector(e){let t=this.documentText.charAt(e.offset);return e.length===1&&t===`*`&&this.addEntry(e,Q.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,Q.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,Q.ImportStatemement),!0}visitRuleSet(t){let n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),Q.EmptyRuleSet);let r=[];for(let e of n.getChildren())e instanceof Wo&&r.push(new Td(e));let i=Fd(r);if(i.width){let e=[];if(i.right.value&&(e=fu(e,i.right.properties)),i.left.value&&(e=fu(e,i.left.properties)),e.length!==0){for(let t of e)this.addEntry(t.node,Q.BewareOfBoxModelSize);this.addEntry(i.width.node,Q.BewareOfBoxModelSize)}}if(i.height){let e=[];if(i.top.value&&(e=fu(e,i.top.properties)),i.bottom.value&&(e=fu(e,i.bottom.properties)),e.length!==0){for(let t of e)this.addEntry(t.node,Q.BewareOfBoxModelSize);this.addEntry(i.height.node,Q.BewareOfBoxModelSize)}}let a=this.fetchWithValue(r,`display`,`inline-block`);if(a.length>0){let e=this.fetch(r,`float`);for(let t=0;t<e.length;t++){let n=e[t].node,r=n.getValue();r&&!r.matches(`none`)&&this.addEntry(n,Q.PropertyIgnoredDueToDisplay,U(`inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'`))}}if(a=this.fetchWithValue(r,`display`,`block`),a.length>0){let e=this.fetch(r,`vertical-align`);for(let t=0;t<e.length;t++)this.addEntry(e[t].node,Q.PropertyIgnoredDueToDisplay,U(`Property is ignored due to the display. With 'display: block', vertical-align should not be used.`))}let o=this.fetch(r,`float`);for(let e=0;e<o.length;e++){let t=o[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,Q.AvoidFloat)}for(let e=0;e<r.length;e++){let t=r[e];if(t.fullPropertyName!==`background`&&!this.validProperties[t.fullPropertyName]){let e=t.node.getValue();if(e&&this.documentText.charAt(e.offset)!==`-`){let e=this.fetch(r,t.fullPropertyName);if(e.length>1)for(let n=0;n<e.length;n++){let r=e[n].node.getValue();r&&this.documentText.charAt(r.offset)!==`-`&&e[n]!==t&&this.addEntry(t.node,Q.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(`:export`)){let n=new Id,i=!1;for(let e of r){let t=e.node;if(this.isCSSDeclaration(t)){let r=e.fullPropertyName,i=r.charAt(0);if(i===`-`){if(r.charAt(1)!==`-`){!this.cssDataManager.isKnownProperty(r)&&!this.validProperties[r]&&this.addEntry(t.getProperty(),Q.UnknownVendorSpecificProperty);let e=t.getNonPrefixedPropertyName();n.add(e,r,t.getProperty())}}else{let e=r;(i===`*`||i===`_`)&&(this.addEntry(t.getProperty(),Q.IEStarHack),r=r.substr(1)),this.cssDataManager.isKnownProperty(e)||this.cssDataManager.isKnownProperty(r)||this.validProperties[r]||this.addEntry(t.getProperty(),Q.UnknownProperty,U(`Unknown property: '{0}'`,t.getFullPropertyName())),n.add(r,r,null)}}else i=!0}if(!i)for(let r in n.data){let i=n.data[r],a=i.names,o=this.cssDataManager.isStandardProperty(r)&&a.indexOf(r)===-1;if(!o&&a.length===1)continue;let s=new Set(o?i.nodes:[]);if(o){let e=this.getContextualVendorSpecificPseudoElements(t);for(let t of i.nodes){let n=t.getName(),i=n.substring(0,n.length-r.length);e.some(e=>e.startsWith(i))&&s.delete(t)}}let c=[];for(let t=0,n=e.prefixes.length;t<n;t++){let n=e.prefixes[t];this.cssDataManager.isStandardProperty(n+r)&&c.push(n+r)}let l=this.getMissingNames(c,a);if(l||o)for(let e of i.nodes){if(o&&s.has(e)){let t=U(`Also define the standard property '{0}' for compatibility`,r);this.addEntry(e,Q.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(l){let t=U(`Always include all vendor specific properties: Missing: {0}`,l);this.addEntry(e,Q.AllVendorPrefixes,t)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function t(e,n){for(let r of n.getChildren()){if(r.type===R.PseudoSelector){let t=r.getChildren()[0]?.getText();t&&e.add(t)}t(e,r)}}function n(e,r){if(r.type===R.Ruleset)for(let n of r.getSelectors().getChildren())t(e,n);return r.parent?n(e,r.parent):void 0}let r=/* @__PURE__ */ new Set;return n(r,e),Array.from(r)}visitPrio(e){return this.addEntry(e,Q.AvoidImportant),!0}visitNumericValue(e){let t=e.findParent(R.Function);if(t&&t.getName()===`calc`)return!0;let n=e.findParent(R.Declaration);if(n&&n.getValue()){let t=e.getValue();if(!t.unit||ru.length.indexOf(t.unit.toLowerCase())===-1)return!0;parseFloat(t.value)===0&&t.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,Q.ZeroWithUnit)}return!0}visitFontFace(e){let t=e.getDeclarations();if(!t)return!1;let n=!1,r=!1,i=!1;for(let e of t.getChildren())if(this.isCSSDeclaration(e)){let t=e.getProperty().getName().toLowerCase();t===`src`&&(n=!0),t===`font-family`&&(r=!0)}else i=!0;return i||n&&r||this.addEntry(e,Q.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof Wo){if(!e.getValue())return!1;let t=e.getProperty();if(!t)return!1;let n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1}visitHexColorValue(e){let t=e.length;return t!==9&&t!==7&&t!==5&&t!==4&&this.addEntry(e,Q.HexColorLength),!1}visitFunction(e){let t=e.getName().toLowerCase(),n=-1,r=0;switch(t){case`rgb(`:case`hsl(`:n=3;break;case`rgba(`:case`hsla(`:n=4}return n!==-1&&(e.getArguments().accept(e=>e instanceof Os?(r+=1,!1):!0),r!==n&&this.addEntry(e,Q.ArgsInColorFunction)),!0}};Ld.prefixes=[`-ms-`,`-moz-`,`-o-`,`-webkit-`];var Rd=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&n.validate===!1)return[];let r=[];r.push.apply(r,Ys.entries(t)),r.push.apply(r,Ld.entries(t,e,new Sd(n&&n.lint),this.cssDataManager));let i=[];for(let e in Q)i.push(Q[e].id);function a(t){let n=K.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),r=e.languageId;return{code:t.getRule().id,source:r,message:t.getMessage(),severity:t.getLevel()===qs.Warning?dc.Warning:dc.Error,range:n}}return r.filter(e=>e.getLevel()!==qs.Ignore).map(a)}};let zd=F.CustomToken,Bd=zd++,Vd=zd++;zd++;let Hd=zd++,Ud=zd++,Wd=zd++,Gd=zd++,Kd=zd++;zd++;var qd=class extends Eo{scanNext(e){if(this.stream.advanceIfChar(36)){let t=[`$`];if(this.ident(t))return this.finishToken(e,Bd,t.join(``));this.stream.goBackTo(e)}return this.stream.advanceIfChars([35,123])?this.finishToken(e,Vd):this.stream.advanceIfChars([61,61])?this.finishToken(e,Hd):this.stream.advanceIfChars([33,61])?this.finishToken(e,Ud):this.stream.advanceIfChar(60)?this.stream.advanceIfChar(61)?this.finishToken(e,Gd):this.finishToken(e,F.Delim):this.stream.advanceIfChar(62)?this.stream.advanceIfChar(61)?this.finishToken(e,Wd):this.finishToken(e,F.Delim):this.stream.advanceIfChars([46,46,46])?this.finishToken(e,Kd):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([47,47])?(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0}}),!0):!1}},Jd=class{constructor(e,t){this.id=e,this.message=t}};let Yd={FromExpected:new Jd(`scss-fromexpected`,U(`'from' expected`)),ThroughOrToExpected:new Jd(`scss-throughexpected`,U(`'through' or 'to' expected`)),InExpected:new Jd(`scss-fromexpected`,U(`'in' expected`))};var Xd=class extends lu{constructor(){super(new qd)}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword(`@import`))return null;let e=this.create(cs);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);for(;this.accept(F.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Bd))return null;let t=this.create(Ps);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(F.Colon))return this.finish(t,G.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,G.VariableValueExpected,[],e);for(;this.peek(F.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(F.Ident,/^(default|global)$/))return this.finish(t,G.UnknownKeyword);this.consumeToken()}return this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Gd)||this.accept(Wd)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Bd))return null;let e=this.create(Is);return this.consumeToken(),e}_parseModuleMember(){let e=this.mark(),t=this.create(Ks);return t.setIdentifier(this._parseIdent([z.Module]))?this.hasWhitespace()||!this.acceptDelim(`.`)||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,G.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(F.Ident)&&!this.peek(Vd)&&!this.peekDelim(`-`))return null;let t=this.create(Io);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(F.Ident,/^--/);let n=!1,r=()=>{let e=this.mark();return this.acceptDelim(`-`)&&(this.hasWhitespace()||this.acceptDelim(`-`),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(F.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Vd)){let e=this.create(Fs);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.ExpressionExpected):this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Hd)||this.peek(Ud)||this.peek(Wd)||this.peek(Gd)||this.peekDelim(`>`)||this.peekDelim(`<`)||this.peekIdent(`and`)||this.peekIdent(`or`)||this.peekDelim(`%`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent(`not`)){let e=this.create(B);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(F.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)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let n=this.create(Wo);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(F.Colon))return this.finish(n,G.ColonExpected,[F.Colon],e||[F.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(F.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,G.PropertyValueExpected);return this.peek(F.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){let e=this.create(as);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword(`@extend`)){let e=this.create(Ls);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,G.SelectorExpected);for(;this.accept(F.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(F.Exclamation)&&!this.acceptIdent(`optional`)?this.finish(e,G.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim(`-`)||this.accept(F.Num)||this.accept(F.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim(`&`)););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim(`%`)){let e=this.createNode(R.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword(`@at-root`)){let e=this.createNode(R.SelectorPlaceholder);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(!this.acceptIdent(`with`)&&!this.acceptIdent(`without`))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.Colon))return this.finish(e,G.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this.finish(e)}return null}_parseElementName(){let e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(F.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword(`@debug`)&&!this.peekKeyword(`@warn`)&&!this.peekKeyword(`@error`))return null;let e=this.createNode(R.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(F.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword(`@if`)?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){let t=this.create(Zo);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,G.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword(`@else`)){if(this.peekIdent(`if`))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(F.CurlyL)){let n=this.create(ts);this._parseBody(n,e),t.setElseClause(n)}}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword(`@for`))return null;let t=this.create(Qo);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent(`from`)?t.addChild(this._parseBinaryExpr())?!this.acceptIdent(`to`)&&!this.acceptIdent(`through`)?this.finish(t,Yd.ThroughOrToExpected,[F.CurlyR]):t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.FromExpected,[F.CurlyR]):this.finish(t,G.VariableNameExpected,[F.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword(`@each`))return null;let t=this.create($o);this.consumeToken();let n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);for(;this.accept(F.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);return this.finish(n),this.acceptIdent(`in`)?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.InExpected,[F.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword(`@while`))return null;let t=this.create(es);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword(`@function`))return null;let e=this.create(ns);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Function])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}return this.accept(F.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword(`@return`))return null;let e=this.createNode(R.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,G.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword(`@mixin`))return null;let e=this.create(Vs);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Mixin])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(this.accept(F.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){let e=this.create(Yo);return e.setIdentifier(this._parseVariable())?(this.accept(Kd),this.accept(F.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword(`@content`))return null;let e=this.create(Rs);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword(`@include`))return null;let e=this.create(Bs);this.consumeToken();let t=this._parseIdent([z.Mixin]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(`.`)&&!this.hasWhitespace()){let n=this._parseIdent([z.Mixin]);if(!n)return this.finish(e,G.IdentifierExpected,[F.CurlyR]);let r=this.create(Ks);t.referenceTypes=[z.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return(this.peekIdent(`using`)||this.peek(F.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){let e=this.create(zs);if(this.acceptIdent(`using`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyL])}return this.peek(F.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){let e=this.create(Xo),t=this.mark(),n=this._parseVariable();if(n){if(this.accept(F.Colon))e.setIdentifier(n);else{if(this.accept(Kd))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}}return e.setValue(this._parseExpr(!0))?(this.accept(Kd),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(F.ParenthesisR)){this.restoreAtMark(e);let t=this.create(B);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(F.ParenthesisL))return null;let e=this.create(B);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(F.Comma);return this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseListElement(){let e=this.create(Us),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(F.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,G.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword(`@use`))return null;let e=this.create(ls);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(!this.peek(F.SemiColon)&&!this.peek(F.EOF)){if(!this.peekRegExp(F.Ident,/as|with/))return this.finish(e,G.UnknownKeyword);if(this.acceptIdent(`as`)&&!e.setIdentifier(this._parseIdent([z.Module]))&&!this.acceptDelim(`*`))return this.finish(e,G.IdentifierOrWildcardExpected);if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}}return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){let e=this.create(us);return e.setIdentifier(this._parseVariable())?!this.accept(F.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.accept(F.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent(`default`))?this.finish(e,G.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword(`@forward`))return null;let e=this.create(ds);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(this.acceptIdent(`as`)){let t=this._parseIdent([z.Forward]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim(`*`))return this.finish(e,G.WildcardExpected)}if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}else if((this.peekIdent(`hide`)||this.peekIdent(`show`))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,G.IdentifierOrVariableExpected);return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){let e=this.create(fs);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(F.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}};let Zd=U(`Sass documentation`);var Qd=class e extends Vu{constructor(t,n){super(`$`,t,n),$d(e.scssModuleLoaders),$d(e.scssModuleBuiltIns)}isImportPathParent(e){return e===R.Forward||e===R.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){let r=t.getParent().type;if(r===R.Forward||r===R.Use)for(let r of e.scssModuleBuiltIns){let e={label:r.label,documentation:r.documentation,textEdit:q.replace(this.getCompletionRange(t),`'${r.label}'`),kind:J.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,r)=>`\\`+r+": ${"+t+++`:`+(e.variableDefaults[r]||``)+`}`}createFunctionProposals(e,t,n,r){for(let i of e){let e=i.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),a={label:i.func.substr(0,i.func.indexOf(`(`)),detail:i.func,documentation:i.desc,textEdit:q.replace(this.getCompletionRange(t),e),insertTextFormat:Ac.Snippet,kind:J.Function};n&&(a.sortText=`z`),r.items.push(a)}return r}getCompletionsForSelector(t,n,r){return this.createFunctionProposals(e.selectorFuncs,null,!0,r),super.getCompletionsForSelector(t,n,r)}getTermProposals(t,n,r){let i=e.builtInFuncs;return t&&(i=i.filter(e=>!e.type||!t.restrictions||t.restrictions.indexOf(e.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(e.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Rule);for(let e of r){let r={label:e.name,textEdit:q.replace(this.getCompletionRange(t),e.name),kind:J.Function};n.items.push(r)}return n}getCompletionForAtDirectives(t){return t.items.push(...e.scssAtDirectives),t}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(t){return t.items.push(...e.scssModuleLoaders),t}};Qd.variableDefaults={$red:`1`,$green:`2`,$blue:`3`,$alpha:`1.0`,$color:`#000000`,$weight:`0.5`,$hue:`0`,$saturation:`0%`,$lightness:`0%`,$degrees:`0`,$amount:`0`,$string:`""`,$substring:`"s"`,$number:`0`,$limit:`1`},Qd.colorProposals=[{func:`red($color)`,desc:U(`Gets the red component of a color.`)},{func:`green($color)`,desc:U(`Gets the green component of a color.`)},{func:`blue($color)`,desc:U(`Gets the blue component of a color.`)},{func:`mix($color, $color, [$weight])`,desc:U(`Mixes two colors together.`)},{func:`hue($color)`,desc:U(`Gets the hue component of a color.`)},{func:`saturation($color)`,desc:U(`Gets the saturation component of a color.`)},{func:`lightness($color)`,desc:U(`Gets the lightness component of a color.`)},{func:`adjust-hue($color, $degrees)`,desc:U(`Changes the hue of a color.`)},{func:`lighten($color, $amount)`,desc:U(`Makes a color lighter.`)},{func:`darken($color, $amount)`,desc:U(`Makes a color darker.`)},{func:`saturate($color, $amount)`,desc:U(`Makes a color more saturated.`)},{func:`desaturate($color, $amount)`,desc:U(`Makes a color less saturated.`)},{func:`grayscale($color)`,desc:U(`Converts a color to grayscale.`)},{func:`complement($color)`,desc:U(`Returns the complement of a color.`)},{func:`invert($color)`,desc:U(`Returns the inverse of a color.`)},{func:`alpha($color)`,desc:U(`Gets the opacity component of a color.`)},{func:`opacity($color)`,desc:`Gets the alpha component (opacity) of a color.`},{func:`rgba($color, $alpha)`,desc:U(`Changes the alpha component for a color.`)},{func:`opacify($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`fade-in($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`transparentize($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`fade-out($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Increases or decreases one or more components of a color.`)},{func:`scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])`,desc:U(`Fluidly scales one or more properties of a color.`)},{func:`change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Changes one or more properties of a color.`)},{func:`ie-hex-str($color)`,desc:U(`Converts a color into the format understood by IE filters.`)}],Qd.selectorFuncs=[{func:`selector-nest($selectors…)`,desc:U(`Nests selector beneath one another like they would be nested in the stylesheet.`)},{func:`selector-append($selectors…)`,desc:U(`Appends selectors to one another without spaces in between.`)},{func:`selector-extend($selector, $extendee, $extender)`,desc:U(`Extends $extendee with $extender within $selector.`)},{func:`selector-replace($selector, $original, $replacement)`,desc:U(`Replaces $original with $replacement within $selector.`)},{func:`selector-unify($selector1, $selector2)`,desc:U(`Unifies two selectors to produce a selector that matches elements matched by both.`)},{func:`is-superselector($super, $sub)`,desc:U(`Returns whether $super matches all the elements $sub does, and possibly more.`)},{func:`simple-selectors($selector)`,desc:U(`Returns the simple selectors that comprise a compound selector.`)},{func:`selector-parse($selector)`,desc:U(`Parses a selector into the format returned by &.`)}],Qd.builtInFuncs=[{func:`unquote($string)`,desc:U(`Removes quotes from a string.`)},{func:`quote($string)`,desc:U(`Adds quotes to a string.`)},{func:`str-length($string)`,desc:U(`Returns the number of characters in a string.`)},{func:`str-insert($string, $insert, $index)`,desc:U(`Inserts $insert into $string at $index.`)},{func:`str-index($string, $substring)`,desc:U(`Returns the index of the first occurance of $substring in $string.`)},{func:`str-slice($string, $start-at, [$end-at])`,desc:U(`Extracts a substring from $string.`)},{func:`to-upper-case($string)`,desc:U(`Converts a string to upper case.`)},{func:`to-lower-case($string)`,desc:U(`Converts a string to lower case.`)},{func:`percentage($number)`,desc:U(`Converts a unitless number to a percentage.`),type:`percentage`},{func:`round($number)`,desc:U(`Rounds a number to the nearest whole number.`)},{func:`ceil($number)`,desc:U(`Rounds a number up to the next whole number.`)},{func:`floor($number)`,desc:U(`Rounds a number down to the previous whole number.`)},{func:`abs($number)`,desc:U(`Returns the absolute value of a number.`)},{func:`min($numbers)`,desc:U(`Finds the minimum of several numbers.`)},{func:`max($numbers)`,desc:U(`Finds the maximum of several numbers.`)},{func:`random([$limit])`,desc:U(`Returns a random number.`)},{func:`length($list)`,desc:U(`Returns the length of a list.`)},{func:`nth($list, $n)`,desc:U(`Returns a specific item in a list.`)},{func:`set-nth($list, $n, $value)`,desc:U(`Replaces the nth item in a list.`)},{func:`join($list1, $list2, [$separator])`,desc:U(`Joins together two lists into one.`)},{func:`append($list1, $val, [$separator])`,desc:U(`Appends a single value onto the end of a list.`)},{func:`zip($lists)`,desc:U(`Combines several lists into a single multidimensional list.`)},{func:`index($list, $value)`,desc:U(`Returns the position of a value within a list.`)},{func:`list-separator(#list)`,desc:U(`Returns the separator of a list.`)},{func:`map-get($map, $key)`,desc:U(`Returns the value in a map associated with a given key.`)},{func:`map-merge($map1, $map2)`,desc:U(`Merges two maps together into a new map.`)},{func:`map-remove($map, $keys)`,desc:U(`Returns a new map with keys removed.`)},{func:`map-keys($map)`,desc:U(`Returns a list of all keys in a map.`)},{func:`map-values($map)`,desc:U(`Returns a list of all values in a map.`)},{func:`map-has-key($map, $key)`,desc:U(`Returns whether a map has a value associated with a given key.`)},{func:`keywords($args)`,desc:U(`Returns the keywords passed to a function that takes variable arguments.`)},{func:`feature-exists($feature)`,desc:U(`Returns whether a feature exists in the current Sass runtime.`)},{func:`variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the current scope.`)},{func:`global-variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the global scope.`)},{func:`function-exists($name)`,desc:U(`Returns whether a function with the given name exists.`)},{func:`mixin-exists($name)`,desc:U(`Returns whether a mixin with the given name exists.`)},{func:`inspect($value)`,desc:U(`Returns the string representation of a value as it would be represented in Sass.`)},{func:`type-of($value)`,desc:U(`Returns the type of a value.`)},{func:`unit($number)`,desc:U(`Returns the unit(s) associated with a number.`)},{func:`unitless($number)`,desc:U(`Returns whether a number has units.`)},{func:`comparable($number1, $number2)`,desc:U(`Returns whether two numbers can be added, subtracted, or compared.`)},{func:`call($name, $args…)`,desc:U(`Dynamically calls a Sass function.`)}],Qd.scssAtDirectives=[{label:`@extend`,documentation:U(`Inherits the styles of another selector.`),kind:J.Keyword},{label:`@at-root`,documentation:U(`Causes one or more rules to be emitted at the root of the document.`),kind:J.Keyword},{label:`@debug`,documentation:U(`Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files.`),kind:J.Keyword},{label:`@warn`,documentation:U("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:J.Keyword},{label:`@error`,documentation:U(`Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions.`),kind:J.Keyword},{label:`@if`,documentation:U("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
46
46
|
$0
|
|
47
47
|
}`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@for`,documentation:U("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@each`,documentation:U("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:`@each \\$\${1:var} in \${2:list} {
|
|
48
48
|
$0
|
|
@@ -86,4 +86,4 @@ Specifying any precise animations or physics used to enforce those snap points i
|
|
|
86
86
|
|
|
87
87
|
This is used to produce an effect that is known as tate-chū-yoko (縦中横) in Japanese, or as 直書橫向 in Chinese.`},{name:`text-decoration-skip`,status:`experimental`,syntax:`none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]`,relevance:52,browsers:[`S12.1`,`C57`,`O44`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip`}],description:`The text-decoration-skip CSS property specifies what parts of the element’s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors.`},{name:`text-decoration-skip-ink`,syntax:`auto | all | none`,values:[{name:`auto`},{name:`all`},{name:`none`}],relevance:51,browsers:[`E79`,`FF70`,`S15.4`,`C64`,`O50`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink`}],description:`The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders.`},{name:`text-decoration-thickness`,syntax:`auto | from-font | <length> | <percentage> `,relevance:50,browsers:[`E89`,`FF70`,`S12.1`,`C89`,`O75`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness`}],description:`The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline.`},{name:`text-emphasis`,syntax:`<'text-emphasis-style'> || <'text-emphasis-color'>`,relevance:50,browsers:[`E99`,`FF46`,`S7`,`C99`,`O85`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-emphasis`}],description:`The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters.`},{name:`text-emphasis-color`,syntax:`<color>`,relevance:50,browsers:[`E99`,`FF46`,`S7`,`C99`,`O85`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color`}],description:`The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand.`},{name:`text-emphasis-position`,syntax:`[ over | under ] && [ right | left ]`,relevance:50,browsers:[`E99`,`FF46`,`S7`,`C99`,`O85`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position`}],description:`The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased.`},{name:`text-emphasis-style`,syntax:`none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>`,relevance:50,browsers:[`E99`,`FF46`,`S7`,`C99`,`O85`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style`}],description:`The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand.`},{name:`text-size-adjust`,status:`experimental`,syntax:`none | auto | <percentage>`,relevance:57,browsers:[`E79`,`C54`,`O41`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-size-adjust`}],description:`The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property.`},{name:`text-underline-offset`,syntax:`auto | <length> | <percentage> `,relevance:51,browsers:[`E87`,`FF70`,`S12.1`,`C87`,`O73`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-underline-offset`}],description:`The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position.`},{name:`text-wrap`,syntax:`wrap | nowrap | balance | stable | pretty`,values:[{name:`wrap`},{name:`nowrap`},{name:`balance`},{name:`stable`},{name:`pretty`}],relevance:54,browsers:[`E114`,`FF121`,`Spreview`,`C114`,`O100`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/text-wrap`}],description:`The text-wrap CSS property controls how text inside an element is wrapped.`},{name:`timeline-scope`,status:`experimental`,syntax:`none | <dashed-ident>#`,relevance:50,browsers:[`E116`,`C116`,`O102`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/timeline-scope`}],description:`The timeline-scope CSS property modifies the scope of a named animation timeline.`},{name:`transform-box`,syntax:`content-box | border-box | fill-box | stroke-box | view-box`,values:[{name:`content-box`},{name:`border-box`},{name:`fill-box`},{name:`stroke-box`},{name:`view-box`}],relevance:50,browsers:[`E79`,`FF55`,`S11`,`C64`,`O51`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/transform-box`}],description:`The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate.`},{name:`transition-behavior`,status:`experimental`,syntax:`<transition-behavior-value>#`,relevance:50,browsers:[`E117`,`C117`,`O103`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/transition-behavior`}],description:`The transition-behavior CSS property specifies whether transitions will be started for properties whose animation behavior is discrete.`},{name:`translate`,syntax:`none | <length-percentage> [ <length-percentage> <length>? ]?`,relevance:50,browsers:[`E104`,`FF72`,`S14.1`,`C104`,`O90`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/translate`}],description:`The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value.`},{name:`view-timeline`,status:`experimental`,syntax:`[ <'view-timeline-name'> <'view-timeline-axis'>? ]#`,relevance:50,browsers:[`E115`,`FF114`,`C115`,`O101`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/view-timeline`}],description:`The view-timeline CSS shorthand property is used to define a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject.`},{name:`view-timeline-axis`,status:`experimental`,syntax:`[ block | inline | x | y ]#`,relevance:50,browsers:[`E115`,`FF114`,`C115`,`O101`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/view-timeline-axis`}],description:`The view-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a named view progress timeline animation, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline-axis is set on the subject. See CSS scroll-driven animations for more details.`},{name:`view-timeline-inset`,status:`experimental`,syntax:`[ [ auto | <length-percentage> ]{1,2} ]#`,relevance:50,browsers:[`E115`,`C115`,`O101`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/view-timeline-inset`}],description:`The view-timeline-inset CSS property is used to specify one or two values representing an adjustment to the position of the scrollport (see Scroll container for more details) in which the subject element of a named view progress timeline animation is deemed to be visible. Put another way, this allows you to specify start and/or end inset (or outset) values that offset the position of the timeline.`},{name:`view-timeline-name`,status:`experimental`,syntax:`none | <dashed-ident>#`,relevance:50,browsers:[`E115`,`FF111`,`C115`,`O101`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/view-timeline-name`}],description:`The view-timeline-name CSS property is used to define the name of a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject.`},{name:`view-transition-name`,status:`experimental`,syntax:`none | <custom-ident>`,relevance:50,browsers:[`E111`,`C111`,`O97`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/view-transition-name`}],description:`The view-transition-name CSS property provides the selected element with a distinct identifying name (a custom-ident) and causes it to participate in a separate view transition from the root view transition — or no view transition if the none value is specified.`},{name:`white-space`,syntax:`normal | pre | nowrap | pre-wrap | pre-line | break-spaces | [ <'white-space-collapse'> || <'text-wrap'> || <'white-space-trim'> ]`,relevance:89,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE5.5`,`O4`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/white-space`}],description:`Specifies how whitespace is handled in an element.`},{name:`white-space-collapse`,syntax:`collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces`,values:[{name:`collapse`},{name:`discard`},{name:`preserve`},{name:`preserve-breaks`},{name:`preserve-spaces`},{name:`break-spaces`}],relevance:50,browsers:[`E114`,`Spreview`,`C114`,`O100`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/white-space-collapse`}],description:`The white-space-collapse CSS property controls how white space inside an element is collapsed.`},{name:`speak-as`,atRule:`@counter-style`,syntax:`auto | bullets | numbers | words | spell-out | <counter-style-name>`,relevance:50,browsers:[`S11.1`],description:`The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue.`},{name:`base-palette`,atRule:`@font-palette-values`,syntax:`light | dark | <integer [0,∞]>`,relevance:50,description:`The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used.`},{name:`override-colors`,atRule:`@font-palette-values`,syntax:`[ <integer [0,∞]> <absolute-color-base> ]#`,relevance:50,description:`The override-colors CSS descriptor is used to override colors in the chosen base-palette for a color font.`},{name:`ascent-override`,atRule:`@font-face`,status:`experimental`,syntax:`normal | <percentage>`,relevance:50,description:`Describes the ascent metric of a font.`},{name:`descent-override`,atRule:`@font-face`,status:`experimental`,syntax:`normal | <percentage>`,relevance:50,description:`Describes the descent metric of a font.`},{name:`font-display`,atRule:`@font-face`,status:`experimental`,syntax:`[ auto | block | swap | fallback | optional ]`,relevance:74,description:`The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use.`},{name:`line-gap-override`,atRule:`@font-face`,status:`experimental`,syntax:`normal | <percentage>`,relevance:50,description:`Describes the line-gap metric of a font.`},{name:`size-adjust`,atRule:`@font-face`,status:`experimental`,syntax:`<percentage>`,relevance:50,description:`A multiplier for glyph outlines and metrics of a font.`},{name:`bleed`,atRule:`@page`,syntax:`auto | <length>`,relevance:50,description:`The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property.`},{name:`marks`,atRule:`@page`,syntax:`none | [ crop || cross ]`,relevance:50,description:`The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets.`},{name:`page-orientation`,atRule:`@page`,syntax:`upright | rotate-left | rotate-right `,relevance:50,description:`The page-orientation CSS descriptor for the @page at-rule controls the rotation of a printed page. It handles the flow of content across pages when the orientation of a page is changed. This behavior differs from the size descriptor in that a user can define the direction in which to rotate the page.`},{name:`syntax`,atRule:`@property`,status:`experimental`,syntax:`<string>`,relevance:50,description:`Specifies the syntax of the custom property registration represented by the @property rule, controlling how the property’s value is parsed at computed value time.`},{name:`inherits`,atRule:`@property`,status:`experimental`,syntax:`true | false`,values:[{name:`true`},{name:`false`}],relevance:50,description:`Specifies the inherit flag of the custom property registration represented by the @property rule, controlling whether or not the property inherits by default.`},{name:`initial-value`,atRule:`@property`,status:`experimental`,syntax:`<declaration-value>?`,relevance:50,description:`Specifies the initial value of the custom property registration represented by the @property rule, controlling the property’s initial value.`}],atDirectives:[{name:`@charset`,browsers:[`E12`,`FF1.5`,`S4`,`C2`,`IE5.5`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@charset`}],description:`Defines character set of the document.`},{name:`@counter-style`,browsers:[`E91`,`FF33`,`S17`,`C91`,`O77`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@counter-style`}],description:`Defines a custom counter style.`},{name:`@font-face`,browsers:[`E12`,`FF3.5`,`S3.1`,`C1`,`IE4`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@font-face`}],description:`Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment.`},{name:`@font-feature-values`,browsers:[`E111`,`FF34`,`S9.1`,`C111`,`O97`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@font-feature-values`}],description:`Defines named values for the indices used to select alternate glyphs for a given font family.`},{name:`@import`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE5.5`,`O3.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@import`}],description:`Includes content of another file.`},{name:`@keyframes`,browsers:[`E12`,`FF16`,`S9`,`C43`,`IE10`,`O30`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@keyframes`}],description:`Defines set of animation key frames.`},{name:`@layer`,browsers:[`E99`,`FF97`,`S15.4`,`C99`,`O85`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@layer`}],description:`Declare a cascade layer and the order of precedence in case of multiple cascade layers.`},{name:`@media`,browsers:[`E12`,`FF1`,`S3`,`C1`,`IE6`,`O9.2`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@media`}],description:`Defines a stylesheet for a particular media type.`},{name:`@-moz-document`,browsers:[`FF1.8`],description:`Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document.`},{name:`@-moz-keyframes`,browsers:[`FF5`],description:`Defines set of animation key frames.`},{name:`@-ms-viewport`,browsers:[`E`,`IE10`],description:`Specifies the size, zoom factor, and orientation of the viewport.`},{name:`@namespace`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE9`,`O8`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@namespace`}],description:`Declares a prefix and associates it with a namespace name.`},{name:`@-o-keyframes`,browsers:[`O12`],description:`Defines set of animation key frames.`},{name:`@-o-viewport`,browsers:[`O11`],description:`Specifies the size, zoom factor, and orientation of the viewport.`},{name:`@page`,browsers:[`E12`,`FF19`,`S13.1`,`C2`,`IE8`,`O6`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@page`}],description:`Directive defines various page parameters.`},{name:`@property`,browsers:[`E85`,`FFpreview`,`S16.4`,`C85`,`O71`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@property`}],description:`Describes the aspect of custom properties and variables.`},{name:`@supports`,browsers:[`E12`,`FF22`,`S9`,`C28`,`O12.1`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/@supports`}],description:`A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs.`},{name:`@-webkit-keyframes`,browsers:[`C`,`S4`],description:`Defines set of animation key frames.`}],pseudoClasses:[{name:`:active`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE4`,`O5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:active`}],description:`Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it.`},{name:`:any-link`,browsers:[`E79`,`FF50`,`S9`,`C65`,`O52`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:any-link`}],description:`Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links.`},{name:`:checked`,browsers:[`E12`,`FF1`,`S3.1`,`C1`,`IE9`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:checked`}],description:`Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies.`},{name:`:corner-present`,browsers:[`C`,`S5`],description:`Non-standard. Indicates whether or not a scrollbar corner is present.`},{name:`:decrement`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view's position when used.`},{name:`:default`,browsers:[`E79`,`FF4`,`S5`,`C10`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:default`}],description:`Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus.`},{name:`:disabled`,browsers:[`E12`,`FF1`,`S3.1`,`C1`,`IE9`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:disabled`}],description:`Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state.`},{name:`:double-button`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar.`},{name:`:empty`,browsers:[`E12`,`FF1`,`S3.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:empty`}],description:`Represents an element that has no children at all.`},{name:`:enabled`,browsers:[`E12`,`FF1`,`S3.1`,`C1`,`IE9`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:enabled`}],description:`Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state.`},{name:`:end`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb.`},{name:`:first`,browsers:[`E12`,`FF116`,`S6`,`C18`,`IE8`,`O9.2`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:first`}],description:`When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context.`},{name:`:first-child`,browsers:[`E12`,`FF3`,`S3.1`,`C4`,`IE7`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:first-child`}],description:`Same as :nth-child(1). Represents an element that is the first child of some other element.`},{name:`:first-of-type`,browsers:[`E12`,`FF3.5`,`S3.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:first-of-type`}],description:`Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element.`},{name:`:focus`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE8`,`O7`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:focus`}],description:`Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input).`},{name:`:fullscreen`,browsers:[`E12`,`FF64`,`S16.4`,`C71`,`IE11`,`O58`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:fullscreen`}],description:`Matches any element that has its fullscreen flag set.`},{name:`:future`,browsers:[`E79`,`S7`,`C23`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:future`}],description:`Represents any element that is defined to occur entirely after a :current element.`},{name:`:horizontal`,browsers:[`C`,`S5`],description:`Non-standard. Applies to any scrollbar pieces that have a horizontal orientation.`},{name:`:host`,browsers:[`E79`,`FF63`,`S10`,`C54`,`O41`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:host`}],description:`When evaluated in the context of a shadow tree, matches the shadow tree's host element.`},{name:`:host()`,browsers:[`C35`,`O22`],description:`When evaluated in the context of a shadow tree, it matches the shadow tree's host element if the host element, in its normal context, matches the selector argument.`},{name:`:host-context()`,browsers:[`C35`,`O22`],description:`Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector.`},{name:`:hover`,browsers:[`E12`,`FF1`,`S2`,`C1`,`IE4`,`O4`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:hover`}],description:`Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element.`},{name:`:increment`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view's position when used.`},{name:`:indeterminate`,browsers:[`E12`,`FF2`,`S3`,`C1`,`IE10`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:indeterminate`}],description:`Applies to UI elements whose value is in an indeterminate state.`},{name:`:in-range`,browsers:[`E13`,`FF29`,`S5.1`,`C10`,`O11`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:in-range`}],description:`Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes.`},{name:`:invalid`,browsers:[`E12`,`FF4`,`S5`,`C10`,`IE10`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:invalid`}],description:`An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification.`},{name:`:lang()`,browsers:[`E`,`C`,`FF1`,`IE8`,`O8`,`S3`],description:`Represents an element that is in language specified.`},{name:`:last-child`,browsers:[`E12`,`FF1`,`S3.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:last-child`}],description:`Same as :nth-last-child(1). Represents an element that is the last child of some other element.`},{name:`:last-of-type`,browsers:[`E12`,`FF3.5`,`S3.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:last-of-type`}],description:`Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element.`},{name:`:left`,browsers:[`E12`,`S5`,`C6`,`IE8`,`O9.2`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:left`}],description:`When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context.`},{name:`:link`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE3`,`O3.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:link`}],description:`Applies to links that have not yet been visited.`},{name:`:matches()`,browsers:[`S9`],description:`Takes a selector list as its argument. It represents an element that is represented by its argument.`},{name:`:-moz-any()`,browsers:[`FF4`],description:`Represents an element that is represented by the selector list passed as its argument. Standardized as :matches().`},{name:`:-moz-any-link`,browsers:[`FF1`],description:`Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links.`},{name:`:-moz-broken`,browsers:[`FF3`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:-moz-broken`}],description:`Non-standard. Matches elements representing broken images.`},{name:`:-moz-drag-over`,browsers:[`FF1`],description:`Non-standard. Matches elements when a drag-over event applies to it.`},{name:`:-moz-first-node`,browsers:[`FF72`],description:`Non-standard. Represents an element that is the first child node of some other element.`},{name:`:-moz-focusring`,browsers:[`FF4`],description:`Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser.`},{name:`:-moz-full-screen`,browsers:[`FF9`],description:`Matches any element that has its fullscreen flag set. Standardized as :fullscreen.`},{name:`:-moz-last-node`,browsers:[`FF72`],description:`Non-standard. Represents an element that is the last child node of some other element.`},{name:`:-moz-loading`,browsers:[`FF3`],description:`Non-standard. Matches elements, such as images, that haven't started loading yet.`},{name:`:-moz-only-whitespace`,browsers:[`FF1`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace`}],description:`The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank.`},{name:`:-moz-placeholder`,browsers:[`FF4`],description:`Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+.`},{name:`:-moz-submit-invalid`,browsers:[`FF88`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid`}],description:`Non-standard. Represents any submit button when the contents of the associated form are not valid.`},{name:`:-moz-suppressed`,browsers:[`FF3`],description:`Non-standard. Matches elements representing images that have been blocked from loading.`},{name:`:-moz-ui-invalid`,browsers:[`FF4`],description:`Non-standard. Represents any validated form element whose value isn't valid `},{name:`:-moz-ui-valid`,browsers:[`FF4`],description:`Non-standard. Represents any validated form element whose value is valid `},{name:`:-moz-user-disabled`,browsers:[`FF3`],description:`Non-standard. Matches elements representing images that have been disabled due to the user's preferences.`},{name:`:-moz-window-inactive`,browsers:[`FF4`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive`}],description:`Non-standard. Matches elements in an inactive window.`},{name:`:-ms-fullscreen`,browsers:[`IE11`],description:`Matches any element that has its fullscreen flag set.`},{name:`:-ms-input-placeholder`,browsers:[`IE10`],description:`Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder.`},{name:`:-ms-keyboard-active`,browsers:[`IE10`],description:`Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar.`},{name:`:-ms-lang()`,browsers:[`E`,`IE10`],description:`Represents an element that is in the language specified. Accepts a comma separated list of language tokens.`},{name:`:no-button`,browsers:[`C`,`S5`],description:`Non-standard. Applies to track pieces. Applies when there is no button at that end of the track.`},{name:`:not()`,browsers:[`E`,`C`,`FF1`,`IE9`,`O9.5`,`S2`],description:`The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument.`},{name:`:nth-child()`,browsers:[`E`,`C`,`FF3.5`,`IE9`,`O9.5`,`S3.1`],description:`Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element.`},{name:`:nth-last-child()`,browsers:[`E`,`C`,`FF3.5`,`IE9`,`O9.5`,`S3.1`],description:`Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element.`},{name:`:nth-last-of-type()`,browsers:[`E`,`C`,`FF3.5`,`IE9`,`O9.5`,`S3.1`],description:`Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element.`},{name:`:nth-of-type()`,browsers:[`E`,`C`,`FF3.5`,`IE9`,`O9.5`,`S3.1`],description:`Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element.`},{name:`:only-child`,browsers:[`E12`,`FF1.5`,`S3.1`,`C2`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:only-child`}],description:`Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity.`},{name:`:only-of-type`,browsers:[`E12`,`FF3.5`,`S3.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:only-of-type`}],description:`Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity.`},{name:`:optional`,browsers:[`E12`,`FF4`,`S5`,`C10`,`IE10`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:optional`}],description:`A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional.`},{name:`:out-of-range`,browsers:[`E13`,`FF29`,`S5.1`,`C10`,`O11`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:out-of-range`}],description:`Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes.`},{name:`:past`,browsers:[`E79`,`S7`,`C23`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:past`}],description:`Represents any element that is defined to occur entirely prior to a :current element.`},{name:`:read-only`,browsers:[`E13`,`FF78`,`S4`,`C1`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:read-only`}],description:`An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only.`},{name:`:read-write`,browsers:[`E13`,`FF78`,`S4`,`C1`,`O9`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:read-write`}],description:`An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only.`},{name:`:required`,browsers:[`E12`,`FF4`,`S5`,`C10`,`IE10`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:required`}],description:`A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional.`},{name:`:right`,browsers:[`E12`,`S5`,`C6`,`IE8`,`O9.2`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:right`}],description:`When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context.`},{name:`:root`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:root`}],description:`Represents an element that is the root of the document. In HTML 4, this is always the HTML element.`},{name:`:scope`,browsers:[`E79`,`FF32`,`S7`,`C27`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:scope`}],description:`Represents any element that is in the contextual reference element set.`},{name:`:single-button`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar.`},{name:`:start`,browsers:[`C`,`S5`],description:`Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb.`},{name:`:target`,browsers:[`E12`,`FF1`,`S1.3`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:target`}],description:`Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier).`},{name:`:valid`,browsers:[`E12`,`FF4`,`S5`,`C10`,`IE10`,`O10`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:valid`}],description:`An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification.`},{name:`:vertical`,browsers:[`C`,`S5`],description:`Non-standard. Applies to any scrollbar pieces that have a vertical orientation.`},{name:`:visited`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE4`,`O3.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:visited`}],description:`Applies once the link has been visited by the user.`},{name:`:-webkit-any()`,browsers:[`C`,`S5`],description:`Represents an element that is represented by the selector list passed as its argument. Standardized as :matches().`},{name:`:-webkit-full-screen`,browsers:[`C`,`S6`],description:`Matches any element that has its fullscreen flag set. Standardized as :fullscreen.`},{name:`:window-inactive`,browsers:[`C`,`S3`],description:`Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active.`},{name:`:current`,status:`experimental`,description:`The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed`},{name:`:blank`,status:`experimental`,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:blank`}],description:`The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>).`},{name:`:defined`,status:`experimental`,browsers:[`E79`,`FF63`,`S10`,`C54`,`O41`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:defined`}],description:`The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method).`},{name:`:dir`,browsers:[`E120`,`FF49`,`S16.4`,`C120`,`O106`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:dir`}],description:`The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them.`},{name:`:focus-visible`,browsers:[`E86`,`FF85`,`S15.4`,`C86`,`O72`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:focus-visible`}],description:`The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element.`},{name:`:focus-within`,browsers:[`E79`,`FF52`,`S10.1`,`C60`,`O47`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:focus-within`}],description:`The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus.`},{name:`:has`,status:`experimental`,browsers:[`E105`,`FF121`,`S15.4`,`C105`,`O91`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:has`}],description:`:The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element.`},{name:`:is`,status:`experimental`,browsers:[`E88`,`FF78`,`S14`,`C88`,`O74`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:is`}],description:`The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form.`},{name:`:local-link`,status:`experimental`,description:`The :local-link CSS pseudo-class represents an link to the same document`},{name:`:paused`,status:`experimental`,browsers:[`S15.4`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:paused`}],description:`The :paused CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “paused”.`},{name:`:placeholder-shown`,status:`experimental`,browsers:[`E79`,`FF51`,`S9`,`C47`,`IE10`,`O34`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown`}],description:`The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text.`},{name:`:playing`,status:`experimental`,browsers:[`S15.4`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:playing`}],description:`The :playing CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “playing”. `},{name:`:target-within`,status:`experimental`,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:target-within`}],description:`The :target-within CSS pseudo-class represents an element that is a target element or contains an element that is a target. A target element is a unique element with an id matching the URL's fragment.`},{name:`:user-invalid`,status:`experimental`,browsers:[`E119`,`FF88`,`S16.5`,`C119`,`O105`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:user-invalid`}],description:`The :user-invalid CSS pseudo-class represents any validated form element whose value isn't valid based on their validation constraints, after the user has interacted with it.`},{name:`:user-valid`,status:`experimental`,browsers:[`E119`,`FF88`,`S16.5`,`C119`,`O105`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:user-valid`}],description:`The :user-valid CSS pseudo-class represents any validated form element whose value validates correctly based on its validation constraints. However, unlike :valid it only matches once the user has interacted with it.`},{name:`:where`,status:`experimental`,browsers:[`E88`,`FF78`,`S14`,`C88`,`O74`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:where`}],description:`The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list.`},{name:`:picture-in-picture`,status:`experimental`,browsers:[`E110`,`S13.1`,`C110`,`O96`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/:picture-in-picture`}],description:`The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode.`}],pseudoElements:[{name:`::after`,browsers:[`E12`,`FF1.5`,`S4`,`C1`,`IE9`,`O7`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::after`}],description:`Represents a styleable child pseudo-element immediately after the originating element's actual content.`},{name:`::backdrop`,browsers:[`E79`,`FF47`,`S15.4`,`C37`,`IE11`,`O24`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::backdrop`}],description:`Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen).`},{name:`::before`,browsers:[`E12`,`FF1.5`,`S4`,`C1`,`IE9`,`O7`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::before`}],description:`Represents a styleable child pseudo-element immediately before the originating element's actual content.`},{name:`::content`,browsers:[`C35`,`O22`],description:`Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility.`},{name:`::cue`,browsers:[`E79`,`FF55`,`S7`,`C26`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::cue`}]},{name:`::cue()`,browsers:[`C`,`O16`,`S6`]},{name:`::cue-region`,browsers:[`C`,`O16`,`S6`]},{name:`::cue-region()`,browsers:[`C`,`O16`,`S6`]},{name:`::first-letter`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE9`,`O7`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::first-letter`}],description:`Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line.`},{name:`::first-line`,browsers:[`E12`,`FF1`,`S1`,`C1`,`IE9`,`O7`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::first-line`}],description:`Describes the contents of the first formatted line of its originating element.`},{name:`::-moz-focus-inner`,browsers:[`FF72`]},{name:`::-moz-focus-outer`,browsers:[`FF4`]},{name:`::-moz-list-bullet`,browsers:[`FF72`],description:`Used to style the bullet of a list element. Similar to the standardized ::marker.`},{name:`::-moz-list-number`,browsers:[`FF72`],description:`Used to style the numbers of a list element. Similar to the standardized ::marker.`},{name:`::-moz-placeholder`,browsers:[`FF19`],description:`Represents placeholder text in an input field`},{name:`::-moz-progress-bar`,browsers:[`FF72`],description:`Represents the bar portion of a progress bar.`},{name:`::-moz-selection`,browsers:[`FF1`],description:`Represents the portion of a document that has been highlighted by the user.`},{name:`::-ms-backdrop`,browsers:[`IE11`],description:`Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen).`},{name:`::-ms-browse`,browsers:[`E`,`IE10`],description:`Represents the browse button of an input type=file control.`},{name:`::-ms-check`,browsers:[`E`,`IE10`],description:`Represents the check of a checkbox or radio button input control.`},{name:`::-ms-clear`,browsers:[`E`,`IE10`],description:`Represents the clear button of a text input control`},{name:`::-ms-expand`,browsers:[`E`,`IE10`],description:`Represents the drop-down button of a select control.`},{name:`::-ms-fill`,browsers:[`E`,`IE10`],description:`Represents the bar portion of a progress bar.`},{name:`::-ms-fill-lower`,browsers:[`E`,`IE10`],description:`Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb.`},{name:`::-ms-fill-upper`,browsers:[`E`,`IE10`],description:`Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb.`},{name:`::-ms-reveal`,browsers:[`E`,`IE10`],description:`Represents the password reveal button of an input type=password control.`},{name:`::-ms-thumb`,browsers:[`E`,`IE10`],description:`Represents the portion of range input control (also known as a slider control) that the user drags.`},{name:`::-ms-ticks-after`,browsers:[`E`,`IE10`],description:`Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb.`},{name:`::-ms-ticks-before`,browsers:[`E`,`IE10`],description:`Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb.`},{name:`::-ms-tooltip`,browsers:[`E`,`IE10`],description:`Represents the tooltip of a slider (input type=range).`},{name:`::-ms-track`,browsers:[`E`,`IE10`],description:`Represents the track of a slider.`},{name:`::-ms-value`,browsers:[`E`,`IE10`],description:`Represents the content of a text or password input control, or a select control.`},{name:`::selection`,browsers:[`E12`,`FF62`,`S1.1`,`C1`,`IE9`,`O9.5`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::selection`}],description:`Represents the portion of a document that has been highlighted by the user.`},{name:`::shadow`,browsers:[`C35`,`O22`],description:`Matches the shadow root if an element has a shadow tree.`},{name:`::-webkit-file-upload-button`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-inner-spin-button`,browsers:[`E79`,`S5`,`C6`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button`}]},{name:`::-webkit-input-placeholder`,browsers:[`C`,`S4`]},{name:`::-webkit-keygen-select`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-meter-bar`,browsers:[`E79`,`S5.1`,`C12`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar`}]},{name:`::-webkit-meter-even-less-good-value`,browsers:[`E79`,`S5.1`,`C12`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value`}]},{name:`::-webkit-meter-optimum-value`,browsers:[`E79`,`S5.1`,`C12`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value`}]},{name:`::-webkit-meter-suboptimum-value`,browsers:[`E79`,`S5.1`,`C12`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value`}]},{name:`::-webkit-outer-spin-button`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-progress-bar`,browsers:[`E79`,`S7`,`C25`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar`}]},{name:`::-webkit-progress-inner-element`,browsers:[`E79`,`S7`,`C23`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element`}]},{name:`::-webkit-progress-value`,browsers:[`E79`,`S7`,`C25`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value`}]},{name:`::-webkit-resizer`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar-button`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar-corner`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar-thumb`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar-track`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-scrollbar-track-piece`,browsers:[`E79`,`S4`,`C2`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar`}]},{name:`::-webkit-search-cancel-button`,browsers:[`E79`,`S3`,`C1`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button`}]},{name:`::-webkit-search-decoration`,browsers:[`C`,`S4`]},{name:`::-webkit-search-results-button`,browsers:[`E79`,`S3`,`C1`,`O15`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button`}]},{name:`::-webkit-search-results-decoration`,browsers:[`C`,`S4`]},{name:`::-webkit-slider-runnable-track`,browsers:[`E83`,`C83`,`O69`]},{name:`::-webkit-slider-thumb`,browsers:[`E83`,`C83`,`O69`]},{name:`::-webkit-textfield-decoration-container`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble-arrow`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble-arrow-clipper`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble-heading`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble-message`,browsers:[`C`,`O`,`S6`]},{name:`::-webkit-validation-bubble-text-block`,browsers:[`C`,`O`,`S6`]},{name:`::target-text`,status:`experimental`,browsers:[`E89`,`C89`,`O75`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::target-text`}],description:`The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports scroll-to-text fragments. It allows authors to choose how to highlight that section of text.`},{name:`::-moz-range-progress`,status:`nonstandard`,browsers:[`FF22`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress`}],description:`The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).`},{name:`::-moz-range-thumb`,status:`nonstandard`,browsers:[`FF21`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb`}],description:`The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.`},{name:`::-moz-range-track`,status:`nonstandard`,browsers:[`FF21`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track`}],description:`The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".`},{name:`::-webkit-progress-inner-value`,status:`nonstandard`,description:`The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.
|
|
88
88
|
|
|
89
|
-
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:`::grammar-error`,status:`experimental`,browsers:[`E121`,`Spreview`,`C121`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::grammar-error`}],description:`The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect.`},{name:`::marker`,browsers:[`E86`,`FF68`,`S11.1`,`C86`,`O72`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::marker`}],description:`The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements.`},{name:`::part`,status:`experimental`,browsers:[`E79`,`FF72`,`S13.1`,`C73`,`O60`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::part`}],description:`The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.`},{name:`::placeholder`,browsers:[`E79`,`FF51`,`S10.1`,`C57`,`O44`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::placeholder`}],description:`The ::placeholder CSS pseudo-element represents the placeholder text of a form element.`},{name:`::slotted`,browsers:[`E79`,`FF63`,`S10`,`C50`,`O37`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::slotted`}],description:`The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template.`},{name:`::spelling-error`,status:`experimental`,browsers:[`E121`,`Spreview`,`C121`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::spelling-error`}],description:`The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled.`},{name:`::view-transition`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition`}],description:`The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content.`},{name:`::view-transition-group`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-group`}],description:`The ::view-transition-group CSS pseudo-element represents a single view transition group.`},{name:`::view-transition-image-pair`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair`}],description:`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states — before and after the transition.`},{name:`::view-transition-new`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-new`}],description:`The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition — a live representation of the new view, after the transition.`},{name:`::view-transition-old`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-old`}],description:`The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition — a static screenshot of the old view, before the transition.`}]};var bf=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(let t of e.properties)xf(t)&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(let t of e.atDirectives)Sf(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(let t of e.pseudoClasses)Cf(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(let t of e.pseudoElements)wf(t)&&this._pseudoElements.push(t)}};function xf(e){return typeof e.name==`string`}function Sf(e){return typeof e.name==`string`}function Cf(e){return typeof e.name==`string`}function wf(e){return typeof e.name==`string`}var Tf=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new bf(yf)),this.dataProviders.push(...t),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(e=>{this._propertySet[e.name]||(this._propertySet[e.name]=e)}),e.provideAtDirectives().forEach(e=>{this._atDirectiveSet[e.name]||(this._atDirectiveSet[e.name]=e)}),e.providePseudoClasses().forEach(e=>{this._pseudoClassSet[e.name]||(this._pseudoClassSet[e.name]=e)}),e.providePseudoElements().forEach(e=>{this._pseudoElementSet[e.name]||(this._pseudoElementSet[e.name]=e)})}),this._properties=su(this._propertySet),this._atDirectives=su(this._atDirectiveSet),this._pseudoClasses=su(this._pseudoClassSet),this._pseudoElements=su(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status===`standard`)}};function Ef(e,t,n){function r(t){let n=i(t),r;for(let t=n.length-1;t>=0;t--)r=tl.create(K.create(e.positionAt(n[t][0]),e.positionAt(n[t][1])),r);return r||=tl.create(K.create(t,t)),r}return t.map(r);function i(t){let r=e.offsetAt(t),i=n.findChildAtOffset(r,!0);if(!i)return[];let a=[];for(;i;){if(i.parent&&i.offset===i.parent.offset&&i.end===i.parent.end){i=i.parent;continue}i.type===R.Declarations&&r>i.offset&&r<i.end&&a.push([i.offset+1,i.end-1]),a.push([i.offset,i.end]),i=i.parent}return a}}var Df=class extends ud{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===R.Use||e.type===R.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){let t=Of(e);for(let e of t)if(await this.fileExists(e))return e}return e}async resolveReference(e,t,n,r=!1){if(!L(e,`sass:`))return super.resolveReference(e,t,n,r)}};function Of(e){if(e.endsWith(`.css`))return[e];if(e.endsWith(`/`))return[e+`index.scss`,e+`_index.scss`];let t=Eu.parse(e.replace(/\.scss$/,``)),n=Du.basename(t),r=Du.dirname(t);return n.startsWith(`_`)?[Du.joinPath(r,n+`.scss`).toString(!0)]:[Du.joinPath(r,n+`.scss`).toString(!0),Du.joinPath(r,`_`+n+`.scss`).toString(!0),e+`/index.scss`,e+`/_index.scss`,Du.joinPath(r,n+`.css`).toString(!0)]}function kf(e){return new bf(e)}function Af(e,t,n,r,i,a,o){return{configure:e=>{a.configure(e),t.configure(e?.completion),n.configure(e?.hover),r.configure(e?.importAliases)},setDataProviders:o.setDataProviders.bind(o),doValidation:a.doValidation.bind(a),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:ff,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findSymbolInformations.bind(r),findDocumentSymbols2:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),prepareRename:r.prepareRename.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:of,getSelectionRanges:Ef}}let jf={};function Mf(e=jf){let t=new Tf(e);return Af(new lu,new Vu(null,e,t),new sd(e&&e.clientCapabilities,t),new ud(e&&e.fileSystemProvider,!1),new wd(t),new Rd(t),t)}function Nf(e=jf){let t=new Tf(e);return Af(new Xd,new Qd(e,t),new sd(e&&e.clientCapabilities,t),new Df(e&&e.fileSystemProvider),new wd(t),new Rd(t),t)}function Pf(e=jf){let t=new Tf(e);return Af(new rf,new af(e,t),new sd(e&&e.clientCapabilities,t),new ud(e&&e.fileSystemProvider,!0),new wd(t),new Rd(t),t)}var Ff=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;let n=t.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(let e in n.dataProviders)i.push(kf(n.dataProviders[e]));let a={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case`css`:this._languageService=Mf(a);break;case`less`:this._languageService=Pf(a);break;case`scss`:this._languageService=Nf(a);break;default:throw Error(`Invalid language id: `+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,t,r);return Promise.resolve(i)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,t,r);return Promise.resolve(i)}async findDefinition(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,t,r);return Promise.resolve(i)}async findReferences(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,t,r);return Promise.resolve(i)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,t,r);return Promise.resolve(i)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(r)}async doCodeActions(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseStylesheet(r),a=this._languageService.doCodeActions(r,t,n,i);return Promise.resolve(a)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseStylesheet(r),a=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(a)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async doRename(e,t,n){let r=this._getTextDocument(e);if(!r)return null;let i=this._languageService.parseStylesheet(r),a=this._languageService.doRename(r,t,n,i);return Promise.resolve(a)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i={...this._languageSettings.format,...n},a=this._languageService.format(r,t,i);return Promise.resolve(a)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Sl.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{Co((e,t)=>new Ff(e,t))}})();
|
|
89
|
+
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:`::grammar-error`,status:`experimental`,browsers:[`E121`,`Spreview`,`C121`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::grammar-error`}],description:`The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect.`},{name:`::marker`,browsers:[`E86`,`FF68`,`S11.1`,`C86`,`O72`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::marker`}],description:`The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements.`},{name:`::part`,status:`experimental`,browsers:[`E79`,`FF72`,`S13.1`,`C73`,`O60`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::part`}],description:`The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.`},{name:`::placeholder`,browsers:[`E79`,`FF51`,`S10.1`,`C57`,`O44`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::placeholder`}],description:`The ::placeholder CSS pseudo-element represents the placeholder text of a form element.`},{name:`::slotted`,browsers:[`E79`,`FF63`,`S10`,`C50`,`O37`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::slotted`}],description:`The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template.`},{name:`::spelling-error`,status:`experimental`,browsers:[`E121`,`Spreview`,`C121`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::spelling-error`}],description:`The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled.`},{name:`::view-transition`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition`}],description:`The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content.`},{name:`::view-transition-group`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-group`}],description:`The ::view-transition-group CSS pseudo-element represents a single view transition group.`},{name:`::view-transition-image-pair`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair`}],description:`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states — before and after the transition.`},{name:`::view-transition-new`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-new`}],description:`The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition — a live representation of the new view, after the transition.`},{name:`::view-transition-old`,status:`experimental`,browsers:[`E109`,`C109`,`O95`],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/::view-transition-old`}],description:`The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition — a static screenshot of the old view, before the transition.`}]};var bf=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(let t of e.properties)xf(t)&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(let t of e.atDirectives)Sf(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(let t of e.pseudoClasses)Cf(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(let t of e.pseudoElements)wf(t)&&this._pseudoElements.push(t)}};function xf(e){return typeof e.name==`string`}function Sf(e){return typeof e.name==`string`}function Cf(e){return typeof e.name==`string`}function wf(e){return typeof e.name==`string`}var Tf=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new bf(yf)),this.dataProviders.push(...t),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(e=>{this._propertySet[e.name]||(this._propertySet[e.name]=e)}),e.provideAtDirectives().forEach(e=>{this._atDirectiveSet[e.name]||(this._atDirectiveSet[e.name]=e)}),e.providePseudoClasses().forEach(e=>{this._pseudoClassSet[e.name]||(this._pseudoClassSet[e.name]=e)}),e.providePseudoElements().forEach(e=>{this._pseudoElementSet[e.name]||(this._pseudoElementSet[e.name]=e)})}),this._properties=su(this._propertySet),this._atDirectives=su(this._atDirectiveSet),this._pseudoClasses=su(this._pseudoClassSet),this._pseudoElements=su(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status===`standard`)}};function Ef(e,t,n){function r(t){let n=i(t),r;for(let t=n.length-1;t>=0;t--)r=tl.create(K.create(e.positionAt(n[t][0]),e.positionAt(n[t][1])),r);return r||=tl.create(K.create(t,t)),r}return t.map(r);function i(t){let r=e.offsetAt(t),i=n.findChildAtOffset(r,!0);if(!i)return[];let a=[];for(;i;)i.parent&&i.offset===i.parent.offset&&i.end===i.parent.end||(i.type===R.Declarations&&r>i.offset&&r<i.end&&a.push([i.offset+1,i.end-1]),a.push([i.offset,i.end])),i=i.parent;return a}}var Df=class extends ud{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===R.Use||e.type===R.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){let t=Of(e);for(let e of t)if(await this.fileExists(e))return e}return e}async resolveReference(e,t,n,r=!1){if(!L(e,`sass:`))return super.resolveReference(e,t,n,r)}};function Of(e){if(e.endsWith(`.css`))return[e];if(e.endsWith(`/`))return[e+`index.scss`,e+`_index.scss`];let t=Eu.parse(e.replace(/\.scss$/,``)),n=Du.basename(t),r=Du.dirname(t);return n.startsWith(`_`)?[Du.joinPath(r,n+`.scss`).toString(!0)]:[Du.joinPath(r,n+`.scss`).toString(!0),Du.joinPath(r,`_`+n+`.scss`).toString(!0),e+`/index.scss`,e+`/_index.scss`,Du.joinPath(r,n+`.css`).toString(!0)]}function kf(e){return new bf(e)}function Af(e,t,n,r,i,a,o){return{configure:e=>{a.configure(e),t.configure(e?.completion),n.configure(e?.hover),r.configure(e?.importAliases)},setDataProviders:o.setDataProviders.bind(o),doValidation:a.doValidation.bind(a),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:ff,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findSymbolInformations.bind(r),findDocumentSymbols2:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),prepareRename:r.prepareRename.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:of,getSelectionRanges:Ef}}let jf={};function Mf(e=jf){let t=new Tf(e);return Af(new lu,new Vu(null,e,t),new sd(e&&e.clientCapabilities,t),new ud(e&&e.fileSystemProvider,!1),new wd(t),new Rd(t),t)}function Nf(e=jf){let t=new Tf(e);return Af(new Xd,new Qd(e,t),new sd(e&&e.clientCapabilities,t),new Df(e&&e.fileSystemProvider),new wd(t),new Rd(t),t)}function Pf(e=jf){let t=new Tf(e);return Af(new rf,new af(e,t),new sd(e&&e.clientCapabilities,t),new ud(e&&e.fileSystemProvider,!0),new wd(t),new Rd(t),t)}var Ff=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;let n=t.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(let e in n.dataProviders)i.push(kf(n.dataProviders[e]));let a={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case`css`:this._languageService=Mf(a);break;case`less`:this._languageService=Pf(a);break;case`scss`:this._languageService=Nf(a);break;default:throw Error(`Invalid language id: `+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,t,r);return Promise.resolve(i)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,t,r);return Promise.resolve(i)}async findDefinition(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,t,r);return Promise.resolve(i)}async findReferences(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,t,r);return Promise.resolve(i)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,t,r);return Promise.resolve(i)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(r)}async doCodeActions(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseStylesheet(r),a=this._languageService.doCodeActions(r,t,n,i);return Promise.resolve(a)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseStylesheet(r),a=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(a)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async doRename(e,t,n){let r=this._getTextDocument(e);if(!r)return null;let i=this._languageService.parseStylesheet(r),a=this._languageService.doRename(r,t,n,i);return Promise.resolve(a)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i={...this._languageSettings.format,...n},a=this._languageService.format(r,t,i);return Promise.resolve(a)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Sl.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{Co((e,t)=>new Ff(e,t))}})();
|